feat(pulls/merge): add --delete-branch flag #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "maximus/feat/delete-branch-flag-v2"
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?
Re-targets the same change from closed #1 onto
release/mirusper the model-A architecture.Summary
Surfaces the existing
DeleteBranchAfterMergefield from the Gitea SDK'sMergePullRequestOptionontea pr merge. Mirrors the web UI's "Delete branch after merge" checkbox.tea pr merge 42default_delete_branch_after_mergesetting.tea pr merge 42 --delete-branchtea pr merge --delete-branch(interactive)Pointer-to-bool semantics keep "omitted" distinct from "explicitly false".
Why on release/mirus and not main
Per the fork's model-A architecture:
mainis a clean upstream mirror; local Mirus patches accumulate on the long-livedrelease/mirusbranch which is what release tagsv*+mirus.*build from. Closed PR #1 was retargeted here.Test plan
make testpasses (CI on release/mirus runsmake clean && make vet && make buildper the just-added.forgejo/workflows/check.yml).