Skip to content

Commit bba0b99

Browse files
cliffhallclaude
andcommitted
docs(pr-flow): push the catch-up only when the gate passes
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
1 parent 24b8f86 commit bba0b99

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎.claude/skills/pr-flow/SKILL.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -465,16 +465,16 @@ code another PR was adding.
465465
git fetch origin v2/main
466466
git merge --no-edit origin/v2/main
467467
npm install # the merge may have moved package-lock.json
468-
npm run local:gate; echo "EXIT=$?"
469-
git push
468+
npm run local:gate && git push # the push runs only on a green gate
470469
```
471470
472471
- **Merge, never rebase.** A rebase rewrites the commits that were reviewed,
473472
outdates every review thread and needs a force-push. The merge commit is
474473
exempt from the DCO check (step 3).
475474
- **The gate runs on the merged tree before the push**, as before any push
476-
(step 4). A red stage here is the interaction this step exists to find: fix
477-
it on the branch, signed off, and run the gate again.
475+
(step 4), and a red gate pushes nothing. A red stage here is the interaction
476+
this step exists to find: fix it on the branch, signed off, and run that
477+
last line again.
478478
- **Then wait for CI on the new head**, with one backgrounded command, as
479479
`AGENTS.md` **Waiting on long-running work** says. The `sleep` gives the push
480480
runs time to register; `--watch` on a head with no checks yet exits at once.

0 commit comments

Comments
 (0)