Skip to content

Detect linked issues at the end of PR bodies in provider testing issue#70396

Open
shahar1 wants to merge 1 commit into
apache:mainfrom
shahar1:worktree-fix-linked-issue-regex
Open

Detect linked issues at the end of PR bodies in provider testing issue#70396
shahar1 wants to merge 1 commit into
apache:mainfrom
shahar1:worktree-fix-linked-issue-regex

Conversation

@shahar1

@shahar1 shahar1 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

The provider testing issue generator (breeze release-management generate-issue-content-providers) silently missed linked issues whose reference is the last thing in the PR body — a common shape, since Fixes #NNNNN often sits on the final line. ISSUE_MATCH_IN_BODY (r" #([0-9]+)[^0-9]") requires a non-digit character after the number, which doesn't exist at end of string after the body's lines are joined.

Concrete occurrence: in the google 22.3.0rc1 testing issue (#70355), PR #69161 (body ending with Fixes #53843) was rendered with no linked issues, and the release manager had to add #53843 by hand.

Replacing the trailing [^0-9] with a negative lookahead (?![0-9]) matches the same references without requiring a trailing character. Verified against the real #69161 body: the old pattern finds nothing, the new one finds 53843; mid-body references behave identically.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Fable 5)

Generated-by: Claude Code (Fable 5) following the guidelines

The provider testing issue generator missed linked issues when the
reference was the last thing in the PR body (a common shape: "Fixes
character after the number, which does not exist at end of string, so
the reference was silently dropped and the release manager had to add
the issue to the testing issue by hand (e.g. apache#53843 for the google
22.3.0rc1 issue). A negative lookahead matches the same references
without needing a trailing character.
@shahar1
shahar1 force-pushed the worktree-fix-linked-issue-regex branch from 0924b00 to f21538d Compare July 24, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant