docs: add branch cleanup audit#182
Closed
ProfRandom92 wants to merge 2 commits into
Closed
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a new documentation file, docs/reports/branch-cleanup-audit.md, which provides an audit of local repository branches and identifies candidates for deletion. The review feedback suggests improving the syntax of the included GitHub CLI command by using {owner} and {repo} placeholders for automatic interpolation, which reduces the need for manual editing.
| None. | ||
|
|
||
| <!-- Safe-delete commands (commented out): | ||
| # gh api repos/:owner/:repo/git/refs/heads/<branch> -X DELETE |
Contributor
There was a problem hiding this comment.
The gh CLI automatically interpolates {owner} and {repo} from the current repository context. Using these placeholders instead of :owner and :repo allows the command to be executed with less manual editing and fewer errors.
Suggested change
| # gh api repos/:owner/:repo/git/refs/heads/<branch> -X DELETE | |
| # gh api repos/{owner}/{repo}/git/refs/heads/<branch> -X DELETE |
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.
Summary:
docs/reports/branch-cleanup-audit.mdcontaining a snapshot inventory of visible branches, classification buckets (likely safe-delete, manual-review, keep), commented-outghdelete template for safe-delete candidates, and an explicit note that no branches or PRs were modified.Changed files:
docs/reports/branch-cleanup-audit.mdTesting:
python scripts/run_checks.pywhich completed and wrotedocs/reports/check-report.md.git branch -a --no-colorwhich showed only theworkbranch, and checked workspace state withgit status --short.Risks:
Next:
Codex Task