{"id":19592052,"url":"https://github.com/catalyst/redmine_autolinker","last_synced_at":"2025-10-11T00:32:59.304Z","repository":{"id":66891658,"uuid":"74307639","full_name":"catalyst/redmine_autolinker","owner":"catalyst","description":"Redmine plugin to link patterns in issue descriptions, journal values and formatted custom fields","archived":false,"fork":false,"pushed_at":"2016-12-15T22:31:35.000Z","size":24,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-02-26T14:14:31.912Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/catalyst.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-20T22:48:42.000Z","updated_at":"2023-12-18T23:39:42.000Z","dependencies_parsed_at":"2023-05-13T01:15:31.313Z","dependency_job_id":null,"html_url":"https://github.com/catalyst/redmine_autolinker","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/catalyst/redmine_autolinker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyst%2Fredmine_autolinker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyst%2Fredmine_autolinker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyst%2Fredmine_autolinker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyst%2Fredmine_autolinker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/catalyst","download_url":"https://codeload.github.com/catalyst/redmine_autolinker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyst%2Fredmine_autolinker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005657,"owners_count":26083942,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T08:32:52.286Z","updated_at":"2025-10-11T00:32:59.290Z","avatar_url":"https://github.com/catalyst.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redmine AutoLinker\n\n_Links issue descriptions, journal values and formatted custom fields_\n\nAutolinker will replace patterns in linkable fields of certain models so that they link to a given URL. Match groups in the pattern can be inserted into the URL. The patterns are setup in the plugin config (Administration \u003e Plugins \u003e Redmine Text Autolinker \u003e Configure).\n\n## Creating a link\n\n+ The expression is the regular expression that will be linked on the issue fields.\n+ Don't use catch-alls like .* - they will greedily match the whole description. Instead use the non-greedy version: .*?\n+ To insert part of the matched expression into the URL, capture it in a match group.\n+ Each match group will be added to the URL inside the escaped section with the number of the group. For example ABC(\\d+) will insert the number matched into {{ 1 }} in the URL.\n+ The expression ABC(\\d+) and the URL http://example.com/{{ 1 }} will link the following urls:\n  + ABC123 to http://example.com/123\n  + ABC8 to http://example.com/8\n+ But it will not link\n  + ABC 123 because it has a space. ABC ?(\\d+) will allow for an optional space\n  + ABC because there is no number.\n  + abc321 because the regex is case sensitive.\n\n## Extending the links\n\nIf you want to add new models that can be linked, edit `al_issue_patch.rb` and add the class and fields to the list. For example:\n\n    [\n      [Issue, :description],\n      [Journal, :notes],\n      [MyExtraClass, [:some_field, :another_field]]\n    ]\n\nAn optional third element can be given to define a Proc that will be called with the instance of the class as an argument to determine if the field should be auto-linked. For example the `CustomValue` is only linked if it's custom field type is formatted.\n\n    [CustomValue, :value, if: Proc.new { |this|\n      this.custom_field.format_store.has_key? 'text_formatting'\n    }]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatalyst%2Fredmine_autolinker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatalyst%2Fredmine_autolinker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatalyst%2Fredmine_autolinker/lists"}