Repository navigation
fix(gh-issues): detect Refs: #N in PR bodies for cross-refs (#121) - #150
Merged
Merged
Conversation
Refs: #121 Co-authored-by: Cursor <[email protected]>
Refs: #121 Co-authored-by: Cursor <[email protected]>
Refs: #121 Co-authored-by: Cursor <[email protected]>
Signed-off-by: gerchowl <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes the
gh_issuescross-reference logic so PRs linked viaRefs: #N(the project's standard format per CLAUDE.md) are detected. Previously onlyCloses/Fixes/Resolvesand branch-name matching were supported. GitHub does not auto-linkRefs:, so the gh-issues table showed empty PR columns for such PRs.Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
scripts/gh_issues.py: Added_REFS_REregex and parsing logic in_build_cross_refsto detectRefs: #102and comma-separated variants (Refs: #102, #103)tests/test_gh_issues.py: Addedtest_refs_keyword_matchandtest_refs_comma_separatedunit testsCHANGELOG.md: Added Fixed entry for [BUG] gh_issues.py cross-ref misses PRs linked via Refs: instead of Closes/Fixes #121Changelog Entry
Fixed
_build_cross_refsnow parsesRefs: #102and comma-separated variants (Refs: #102, #103) alongside Closes/Fixes/ResolvesTesting
just test)Manual Testing Details
N/A — unit tests cover the new behavior. Run
just gh-issuesafter merge to verify PR↔issue links appear for PRs withRefs:in body.Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
N/A
Refs: #121