fj pr merge --auto: schedule a merge once required checks pass #178
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/164-pr-merge-auto"
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?
Closes #164.
Spike first: confirmed the rasterhub Forgejo build (15.0.2 / gitea-1.22) exposes scheduled auto-merge via
merge_when_checks_succeedonPOST .../pulls/{n}/mergeand aDELETE .../mergeto cancel. Built on that.fj pr merge N --autoschedules a server-side merge that completes once all required checks pass; an already-green PR merges immediately. Honors--style/--title/--message/--delete-branch.fj pr merge N --disable-autocancels a pending schedule; a clean message when nothing is scheduled instead of a bare 404.pr view/pr checksshowAuto-merge: scheduledwhile one is pending. Forgejo records the schedule on the issue timeline only (not the PR object) and the comment carries no style, so the line is best-effort and omits the style; the lookup degrades silently on error.--autodid not schedule.Tests: unit coverage for the timeline pending-state logic and merge-body serialization; wiremock coverage for scheduling, cancel, the cancel-404 path, and timeline detection. Docs and CHANGELOG updated.
4d57b1fdf622b252d9a8