pr-target-staging
PR Target β Staging Branch
Section titled βPR Target β Staging BranchβDefault: a PR targets staging when the remote has a staging branch; otherwise the default branch, unchanged.
- Detect, donβt assume β
git ls-remote --heads origin staging. Non-empty β staging exists. - Staging exists β
--base stagingongh pr create(which otherwise defaults tomaster/main). Wrong base already open βgh pr edit <n> --base staging. - No staging β unchanged. Never alters a repo without staging.
Exception: the deliberate staging β master/main promotion PR targets the default branch on purpose.
Details: docs/pr-target-staging.md. Related: rules/branch-discipline.md, rules/kit-pr-workflow-boundary.md, rules/git-ssh-remotes.md.