-
Notifications
You must be signed in to change notification settings - Fork 221
Open
Labels
featureNew feature or requestNew feature or request
Description
Feature Request
Description
Add a setting to automatically delete remote branches when a task is archived or deleted, so users don't have to manually clean up branches on GitHub.
Current Behavior
When a task is archived or deleted, the remote branch remains on GitHub. Users have to manually go to GitHub to delete stale branches.
Expected Behavior
A configurable setting that handles remote branch cleanup:
Options
- Ask every time — Prompt the user at archive/delete: "Also delete remote branch?"
- Always delete — Automatically delete the remote branch on archive/delete
- Never delete — Current behavior, no cleanup (default)
- Auto-delete after X days — Delete stale remote branches after a configurable time period
Setting location
Project settings or global settings — can be buried, just needs to be accessible without leaving Emdash.
Implementation
- On task archive/delete, run
git push origin --delete <branch>(orgh apiequivalent) - Respect the user's configured preference
- Handle gracefully if the branch was already deleted or never pushed
Why This Matters
Stale branches accumulate quickly when using Emdash for many parallel tasks. Manual cleanup on GitHub is tedious and easy to forget. Automating this keeps the remote repo clean.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or request