17 lines
542 B
Plaintext
17 lines
542 B
Plaintext
---
|
|
description: Delete feature branches after merging PRs in this repo
|
|
alwaysApply: true
|
|
---
|
|
|
|
# Delete branch after merge
|
|
|
|
After merging a pull request in this repository:
|
|
|
|
1. Delete the **remote** feature branch.
|
|
2. Delete the **local** feature branch if it exists.
|
|
3. Prune stale remote-tracking refs (`git fetch --prune` or equivalent).
|
|
|
|
Prefer in order: `tea pulls clean <pr>`, then Gitea API / `git push --delete`, then local `git branch -d`.
|
|
|
|
Do this automatically after every merge unless the user explicitly says to keep the branch.
|