rea-ci-tests-audit
MOmorluto/rea485k9,215 new stars in the last 7 days
Use when finished work needs to ship as a pull request, or when creating, syncing, updating metadata, checking status, monitoring CI, or addressing review comments on a PR. Not for reviewing a PR you are not shipping.
The PR lifecycle: ship the workspace's finished work, maintain PR metadata, and keep the PR healthy when requested. One workflow, six phases as sibling docs — enter at the phase the ask names.
Git and GitHub state is concurrent and mutable: the base moves, CI lags, mergeability is computed lazily, and this workflow's own steps dirty the tree they just checked. Four rules hold at every step of every phase:
gh pr create, gh pr edit,
replying to a thread, declaring done — re-checks the exact state it consumes immediately before
running. A gate passed earlier does not survive the mutations made since it passed.--paginate on every listing, git fetch before reasoning
about the base.UNKNOWN merge state, queued checks) is polled until it resolves; done is declared only from
observed affirmative state. In snapshot mode, report it as indeterminate without turning the
phase into a watch.| The ask | Phase doc | Default mode |
|---|---|---|
| Create a PR — the work is finished | creating.md | snapshot |
| Bring the PR up to date / resolve conflicts with its base | syncing.md | snapshot |
| Update the PR title or body | body.md | snapshot |
| Add or refresh screenshots on a PR | screenshots.md | snapshot |
| Report the current checks / merge state once | checks.md | snapshot |
| Monitor CI / investigate or fix failing checks | checks.md | wait |
| Address review comments | review-comments.md | snapshot |
Read and follow the selected phase doc — the gates and mechanics live only there; never run a phase from this spine's summary. Carry the completion mode selected above into that doc; a later push does not change it. A compound ask ("rebase, verify, and create a PR") is one flow: start at the earliest phase named; the docs chain forward on their own. If the work itself isn't finished — the ask bundles new design or implementation before the ship — that part is not this workflow's; route it per choosing-a-workflow first and come back here when it lands.
Ephemeral files this workflow uses, all under the workspace's gitignored .thinkrail/context/:
pr-body.md — the PR body draft; always passed via --body-file, never inline.pr-shots/ — staged before/after screenshots awaiting attachment.Neither is ever deleted: both stay in the user's Artifacts tab. The next body edit overwrites
pr-body.md, and a re-staged shot overwrites its own name.
Every phase ends through checks.md in the completion mode selected above.
MOmorluto/rea485k9,215 new stars in the last 7 days
MOmorluto/rea485k9,215 new stars in the last 7 days
MAmattpocock/skills336k5,004 new stars in the last 7 days
MAmattpocock/skills336k5,004 new stars in the last 7 days
MAmattpocock/skills336k5,004 new stars in the last 7 days
Block dangerous git commands like push and reset --hard before they execute.
MAmattpocock/skills336k5,004 new stars in the last 7 days