Matching Jira remote link to GitHub Pull Request #8235
Replies: 1 comment
-
Hey @jonmattgray! I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this together! To match Jira issues with GitHub pull requests, you can use the (?mi)Closes[\s]*.*(((and)?https://\S+.atlassian.net/browse/\S+[ ]*)+) This pattern is designed to match Jira issue keys in the format 'Closes DI-123' within pull request titles or descriptions [1]. For a more specific pattern to match GitHub pull requests, you might consider using a pattern like this: https://github.com/{namespace}/{repo_name}/pull/{pull_number} This pattern would match the URL structure of a GitHub pull request. You can customize the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
I'm following the docs to match Jira issue remote links and GitHub commits. I understand you end up with a pattern like
https://github.com/{namespace}/{repo_name}/commit/{commit_sha}
. Is it possible to match with pull requests (example of one in Jira below) rather than commits? What would the pattern look like?Beta Was this translation helpful? Give feedback.
All reactions