Skip to content

ci: match seed proposals by head repository - #235

Merged
p-linnane merged 1 commit into
mainfrom
ci/seed-proposal-head-repository
Nov 9, 2026
Merged

p-linnane merged 1 commit into
mainfrom
ci/seed-proposal-head-repository

Conversation

@p-linnane

Copy link
Copy Markdown
Member

The seed propose jobs looked up the open proposal with gh pr list --head, which matches the branch name alone, so a fork pull request named after the automation branch would have received the bot's title and body while the real proposal was never opened. Both workflows now resolve the proposal through the pulls API with the owner-qualified head and the same head-repository filter scripts/seed-proposal-needed.rb applies, fail closed when the count cannot be read or more than one proposal matches, and the workflow spec pins the lookup shape.

AI disclosure: Claude Mythos 5.1 with just check on this commit and scripted reproductions of the proposal lookup against a failing jq and zero, one and two open proposals.

The propose job looked up the open pull request with gh pr list --head,
which filters on the branch name alone, so a fork branch named after the
automation branch would have received the bot's title and body while the
real proposal was never opened. Resolve the proposal through the pulls
API with the owner-qualified head and the same head-repository filter the
unprivileged pre-check applies, and fail closed on more than one match.

Signed-off-by: Patrick Linnane <patrick@linnane.io>
@p-linnane
p-linnane merged commit 6711dad into main Nov 9, 2026
47 of 58 checks passed
@p-linnane
p-linnane deleted the ci/seed-proposal-head-repository branch November 9, 2026 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant