Skip to content

fix: handle multiple potential PR numbers in commit message#33

Merged
DerekRoberts merged 2 commits intomainfrom
fix/regex
Feb 25, 2026
Merged

fix: handle multiple potential PR numbers in commit message#33
DerekRoberts merged 2 commits intomainfrom
fix/regex

Conversation

@DerekRoberts
Copy link
Member

@DerekRoberts DerekRoberts commented Feb 25, 2026

Summary

This PR enforces stricter PR extraction from commit messages by matching only the PR number at the end of the line, trimming any trailing whitespace. This ensures maximum reliability and aligns with GitHub’s squash merge standard.

  • Uses end-of-line regex for PR extraction
  • Trims whitespace for robustness
  • Prevents accidental issue number matches earlier in the commit

@DerekRoberts DerekRoberts changed the title fix: robust PR extraction from commit message (#2364) fix: handle multiple potential PR numbers in commit message Feb 25, 2026
@DerekRoberts DerekRoberts self-assigned this Feb 25, 2026
@DerekRoberts DerekRoberts moved this from New to Active in DevOps (NR) Feb 25, 2026
@DerekRoberts DerekRoberts merged commit bfa713a into main Feb 25, 2026
5 checks passed
@DerekRoberts DerekRoberts deleted the fix/regex branch February 25, 2026 19:08
@github-project-automation github-project-automation bot moved this from Active to Done in DevOps (NR) Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants