Skip to content

fix(gh-issues): detect Refs: #N in PR bodies for cross-refs (#121) - #150

Merged
gerchowl merged 4 commits into
devfrom
bugfix/121-cross-ref-misses-refs-linked-prs
Feb 23, 2026
Merged

gerchowl merged 4 commits into
devfrom
bugfix/121-cross-ref-misses-refs-linked-prs

Conversation

@gerchowl

Copy link
Copy Markdown
Contributor

Description

Fixes the gh_issues cross-reference logic so PRs linked via Refs: #N (the project's standard format per CLAUDE.md) are detected. Previously only Closes/Fixes/Resolves and branch-name matching were supported. GitHub does not auto-link Refs:, so the gh-issues table showed empty PR columns for such PRs.

Type of Change

  • feat -- New feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

Changelog Entry

Fixed

  • gh-issues cross-ref detects Refs: #N in PR bodies (#121)
    • _build_cross_refs now parses Refs: #102 and comma-separated variants (Refs: #102, #103) alongside Closes/Fixes/Resolves

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

N/A — unit tests cover the new behavior. Run just gh-issues after merge to verify PR↔issue links appear for PRs with Refs: in body.

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

N/A

Refs: #121

@gerchowl
gerchowl merged commit 204716b into dev Feb 23, 2026
12 checks passed
@gerchowl
gerchowl deleted the bugfix/121-cross-ref-misses-refs-linked-prs branch February 23, 2026 07:45
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.

1 participant