Skip to content

Conversation

@BanarJoomPro
Copy link
Contributor

Added parsing of the Jira ID from the branch name, not only from the PR title:

 if (typeof pr.head?.ref === 'string') {
    extractIssueNumbers(pr.head.ref).map((id) => ids.add(id));
  }

const ISSUE_PATTERN_RE = /(?<![a-zA-Z0-9])[A-Z][A-Z0-9]{1,}-\d+(?![a-zA-Z0-9])/gi;
i (case-insensitive) - added to support Branch and PR names in lower case

result.add(issue.toUpperCase()));
issue.toUpperCase - required to avoid accidentally getting duplicates from the same number with different letter casing

@BanarJoomPro BanarJoomPro merged commit 8718578 into main Dec 30, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants