Add Gitea PR skill and branch cleanup notes
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -11,6 +11,13 @@ After merging a pull request in this repository:
|
||||
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`.
|
||||
Prefer in order:
|
||||
|
||||
1. `tea pulls clean <pr> --ignore-sha` (may fail if tea expects HTTPS `origin`)
|
||||
2. `git push origin --delete <feature-branch>` via SSH remote
|
||||
3. `git branch -d <feature-branch>`
|
||||
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`.
|
||||
|
||||
Reference in New Issue
Block a user