Skip to content

Make autolinks more sophisticated #1903

Open
@adambadura

Description

@adambadura

Current support for autolinks as

"gitlens.autolinks": [{ "prefix": "JIRA-", "url": "https://jira.company.com/issue?query=<num>" }]

is quite limited. And it seems to me there are more requirements where is this matched in the text, that are not clearly visible - I have had instances where the rule didn't seem to trigger and make a link.

How about changing this so that we have a list of regexes, and the link can use capturing groups from the regex? While those would be matched in the entire commit message. Gerrit's configuration of [commentlink] could be a nice base of the idea.

Metadata

Metadata

Assignees

Labels

area-autolinksIssues or features related to autolinks

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions