Skip to content

fix: ignore cross-repository associated pull requests - #1292

Open
sjh9714 wants to merge 1 commit into
semantic-release:masterfrom
sjh9714:codex/20260904-1092-ignore-cross-repo-prs
Open

fix: ignore cross-repository associated pull requests#1292
sjh9714 wants to merge 1 commit into
semantic-release:masterfrom
sjh9714:codex/20260904-1092-ignore-cross-repo-prs

Conversation

@sjh9714

@sjh9714 sjh9714 commented Sep 4, 2026

Copy link
Copy Markdown

Summary

Fixes #1092.

Ignore pull requests that GitHub associates with a release commit through a different repository. This prevents an unrelated pull request number from being looked up in the release repository and failing the success step with a 404.

Changes

  • Include repository identity in associated pull request queries and filter cross-repository results before REST lookups
  • Add regression coverage for a commit associated with a pull request from another repository

Testing

  • node_modules/.bin/ava --verbose test/success.test.js --match='Do not add comment and labels for PRs from another repository'
  • npm run test:unit
  • npm test

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.

[@semantic-release/github] step fails with 404 error when trying to access non-existent PR # 1

1 participant