android-components icon indicating copy to clipboard operation
android-components copied to clipboard

Update Issue Linker regex to only include issues from the same repo

Open jonalmeida opened this issue 3 years ago • 0 comments

We're using a simple regex here for grabbing the linked issue that will find any issue ID, regardless of repo: https://github.com/mozilla-mobile/android-components/blob/86112e3b34c959e9b47f1503d7f7ee3534203938/.github/workflows/issue-linker.yml#L20

We can update this to only link an ID when it's not part of the same repo. The below expression translates to: do not match if the preceding token is a string value.

(?<![A-Za-z\-\_]+)#(\d+)+

Regex evaluator with tests: https://regexr.com/6rg2v

┆Issue is synchronized with this Jira Task

jonalmeida avatar Aug 09 '22 15:08 jonalmeida