diff --git a/.cursor/rules/delete-branch-after-merge.mdc b/.cursor/rules/delete-branch-after-merge.mdc deleted file mode 100644 index 4201393..0000000 --- a/.cursor/rules/delete-branch-after-merge.mdc +++ /dev/null @@ -1,23 +0,0 @@ ---- -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: - -1. `tea pulls clean --ignore-sha` (may fail if tea expects HTTPS `origin`) -2. `git push origin --delete ` via SSH remote -3. `git branch -d ` -4. `git fetch --prune origin` - -Do this automatically after every merge unless the user explicitly says to keep the branch. - -Full PR workflow (create/merge/push): see `.cursor/skills/gitea-prs/SKILL.md`.