Repository navigation
Pin every generated GitHub PR to an explicit base repository - #327
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
trillium
force-pushed
the
fm/fix-pr-base-repo-pin
branch
from
November 5, 2026 03:31
1178c9c to
171795e
Compare
trillium
force-pushed
the
fm/fix-pr-base-repo-pin
branch
from
November 5, 2026 10:07
171795e to
94f0097
Compare
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.
Summary
A fork clone with an
upstreamremote and no gh default repository made a baregh pr createopen its PR on the third-party upstream, because gh ranksupstreamaboveorigin.Every generated brief that opens a GitHub PR now names the exact PR base repository and requires
--repo <owner>/<repo>on everygh-axi prcommand (create, list, view, checks, ready, edit, merge).bin/fm-dod-lib.sh.Visual evidence
Behavior in plain words: before, a ship brief told the worker to open a PR with a bare command, so gh picked the upstream fork parent; after, the brief hands the worker the exact repository and the worker passes it on every PR command.
flowchart LR subgraph Before A1[ship brief] --> B1["gh pr create (no repo)"] --> C1[gh ranks upstream above origin] --> D1[PR opens on kcosr/herdr-web] end subgraph After A2[ship brief] --> B2{consent target?} B2 -- yes --> C2[consent repo] B2 -- no --> C3[clone origin repo] C2 --> E2["gh-axi pr create --repo owner/repo"] C3 --> E2 B2 -- cannot derive --> F2[brief refuses] endTesting
upstreamremote names origin; upstream-consent task names the consent target; refusal without a derivable origin; promotion pins the same repository.bin/fm-lint.shis clean.