fj pr merge --auto: schedule a merge once required checks pass #164
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
fj pr mergeis immediate-only. CI-gated merges force you to poll (fj pr checks/fj run watch) and merge after green, or babysit the PR.gh pr merge --autoandglab mr merge --when-pipeline-succeedshand the wait to the server.Acceptance criteria
fj pr merge <n> --autoregisters a scheduled merge the server completes when all required checks pass; honors--style,--delete-branch,--title/--message.fj pr merge <n> --disable-autocancels a pending scheduled merge.--autoon an already-green PR merges immediately instead of erroring.fj pr view/fj pr checksshow pending state (e.g.Auto-merge: scheduled (squash)), reusing theMergeable:line from #162.Value
Removes the poll/babysit loop at the center of every CI-gated merge; an agent or human can fire-and-forget a merge.
Priority
p1 (highest absolute value).
Dependencies / sequencing
Builds on the
pr merge+ mergeability surfacing shipped in #162. START with a short spike to confirm the Forgejo build exposes scheduled auto-merge (merge_when_checks_succeedon the merge endpoint + DELETE to cancel); that spike gates the rest.Overlap
None. Shares the
pr view/pr checksrendering touched by #159 / #160 / #162.