Actions: merge, approve, close, comment, open, refresh, bulk merge #9
Loading…
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
Browsing without acting isn't the product. v1 needs the action keys:
mmerge,aapprove,xclose,ccomment (in$EDITOR),oopen in browser,rrefresh, with confirm dialogs for merge and close, andspaceto mark PRs for bulk merge.Plan
m,x,athrough core → forge, with the result (or error) shown in the status bar and the cache updated so the list reflects the change at once.c: open$EDITORon a temp file viatea.ExecProcess; empty content cancels.o: open the item's web URL with the platform opener (xdg-open/open).spacemarks andescclears marks;mwith marks bulk-merges. Bulk results are reported per PR, because partial failure is expected.forge.Approver).Plan-review additions (#17): the merge contract
head_commit_id), so a PR that gained commits after confirmation is refused, not merged.escduring a bulk merge stops starting new merges; in-flight ones finish and report.Context
docs/design.md→ Keymap (the confirm-dialog rule).PM decisions (2026-10-02, #13)
mretries just those after a re-check. Replaces the open question in the plan-review section.Ropens the run's page in the browser (Forgejo has no re-run API, #1). Add it to the keys in this ticket.🤖 Plan approved (engineering lead). Two parts in order: (1) the merge, approve, close and comment plumbing, with the safety rules (each target is re-checked before merging, a PR that changed since you confirmed is refused rather than merged, and every PR gets its own result: merged, refused with the forge's reason, failed, unknown, or not started); (2) the keys and dialogs (m, a, x, c, o, R, r, space, esc), with the confirm dialog naming the repo's merge style and warning on red or running CI (or refusing when 'only merge when green' is on). PRs that didn't merge stay marked, so m retries just those. Branch: feature/9-actions.
🤖 Scope correction: the plan said
c(comment) is hidden when you can only read a repo. Forgejo lets readers comment, socfollows what the forge allows. If the forge refuses, its reason shows in the status bar.🤖 Merged in #31. The action keys are in: m, a, x, c (in $EDITOR), o, R, r, plus space/esc marks and bulk merge. Every merge re-checks first and refuses a PR that changed after you confirmed. Each PR gets its own result, and PRs that didn't merge stay marked so m retries just those. The dialog warns on red or running CI, or refuses when 'only merge when green' is on.