New CLI command for removing orphaned local branches - #144
Merged
Merged
Conversation
- Deleted unused Markdown guidance and Azure DevOps documentation references from `.claude` and `.github` paths. - Removed concurrency control and dependency injection patterns documentation. - Cleaned up `.github` agent and instruction files unused in the project setup.
…unit tests - Introduced `RemoveOrphanedLocalBranchesCommand` to delete local branches without remote counterparts interactively or automatically. - Added `IOrphanedLocalBranchesProvider` to determine orphaned branches. - Developed comprehensive unit tests for orphaned branch detection and command execution scenarios. - Enhanced options with a skip fetch prune mode and an "all" option for non-interactive operations.
- Added `SonarAnalyzer.CSharp` package for enhanced static code analysis. - Centralized NuGet package version for `SonarAnalyzer.CSharp` in `Directory.Packages.props`. - Improved MSBuild property inheritance with imports in `Directory.Build.props` across projects. - Suppressed specific code analysis warnings with `SuppressMessage` attributes for clarity and maintainability. - Optimized regex usage with timeout configurations.
…s.props` to `6.9.0` and reformat file structure
…an detection - Default mode now identifies orphaned branches using tracking information instead of name matching. - Introduced `--include-untracked` (`-u`) option to restore legacy name-matching behavior. - Updated `README` with usage examples for the new option. - Refactored `OrphanedLocalBranchesProvider` with support for both tracking-based and name-matching modes. - Added comprehensive unit tests for both detection modes and CLI integration.
- Added a test to isolate SPEC §3.1 rule 3 (`IsTracking == true`) and ensure independent validation in `GetOrphanedLocalBranches`. - Enhanced tracking-based orphan detection to address gaps in test coverage identified in review findings. - Introduced helper methods for logical separation of tracking-based and name-matching orphan detection. - Refined test utilities with an overload for constructing commands, reducing redundancy in related tests.
… feature - Removed outdated uncommitted review files related to the `feature/removeobsoletelocalbranches` implementation. - Cleaned review artifacts no longer relevant to the current state of the branch.
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.
No description provided.