Skip to content

pr-body-contract refuses a fix for an issue in another portfolio repository #5086

Open

Description

@devantler

🤖 Generated by the Agentic Engineer

Description

.claude/scripts/pr-body-contract.sh check accepts an issue relationship only in the same-repository form Fixes #N / Part of #N. In this portfolio the issue a change resolves often lives in a different repository from the fix: a platform issue whose producer-side fix belongs in devantler-tech/.github, for example. The contract then refuses Fixes devantler-tech/platform#6378, the only link GitHub would honour across repositories. The engineer has to file a duplicate local issue just to pass the check.

Steps to Reproduce

  1. Seed a body for a devantler-tech/.github PR, then set its relationship line to Fixes devantler-tech/platform#6378.
  2. Run pr-body-contract.sh check --repo devantler-tech/.github --body-file <file>.
  3. It fails with body must contain exactly one issue relationship.

This happened on 2026-11-16. The workaround was local issue devantler-tech/.github#948, a child of platform#6378, for PR devantler-tech/.github#949.

Expected Behavior

A relationship to an issue in another devantler-tech repository (Fixes devantler-tech/<repo>#N, and the same for Part of) satisfies the single-relationship rule. Issues outside the organisation are still refused.

Acceptance Criteria

  • check accepts exactly one Fixes/Part of line that names a devantler-tech/<repo>#N issue, with the existing pairing rule for one Fixes plus one Part of.
  • Another owner, or a malformed reference, is still refused; the self-test covers both.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Priority

    None yet

    Effort

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions