feat(cleanup): delete dangling branches + auto-close PRs on requirement completion#79
Merged
Merged
Conversation
…uirement completion Ports the VXD cleanup step (vortex-dispatch #85). NXD cleaned merged branches but left non-merged story branches — and their open PRs — dangling. New cleanupDanglingBranches (monitor_cleanup.go) runs in the requirement- completion path (dispatchNextWave, before REQ_COMPLETED): for every story that did NOT merge, it deletes the local + remote branch. Deleting the remote branch auto-closes its PR, so a completed requirement leaves no dangling branches/PRs. - Pure selector danglingBranchesToClean(stories, baseBranch): skips merged + split, never deletes the base branch, dedups. Best-effort executor. - Config cleanup.delete_dangling_branches (default true; opt-out per project). - 3 unit tests; example YAML updated. Full suite green. Git-based cleanup — applies cleanly to NXD's offline-first core (no cloud deps).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports vortex-dispatch #85. On requirement completion, delete the local + remote branches of non-merged stories (deleting the remote branch auto-closes its open PR), leaving no dangling branches/PRs. Pure selector + best-effort executor; config
cleanup.delete_dangling_branches(default true). Git-based — safe for NXD's offline-first core. 3 unit tests, full suite green.🤖 Generated with Claude Code