Add support for delete_source_branch_on_merge configuration option#418
Open
Smirl wants to merge 1 commit intotranscend-io:masterfrom
Open
Add support for delete_source_branch_on_merge configuration option#418Smirl wants to merge 1 commit intotranscend-io:masterfrom
Smirl wants to merge 1 commit intotranscend-io:masterfrom
Conversation
Implements support for the Atlantis `delete_source_branch_on_merge` configuration option to automatically delete source branches after merging. Changes: - Add DeleteSourceBranchOnMerge field to AtlantisConfig struct - Add --delete-source-branch-on-merge CLI flag (defaults to false) - Update README with flag documentation - Add test case and golden file for the new feature - All existing tests pass Fixes transcend-io#417 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Author
|
Hey @Almenon |
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
closes #417
This pull request adds support for a new CLI flag and configuration option to automatically delete the source branch after merging, enhancing workflow automation. It updates the documentation, command-line interface, configuration struct, and tests to include this new feature.
New feature: Delete source branch on merge
--delete-source-branch-on-mergeCLI flag to thegeneratecommand, allowing users to enable automatic deletion of the source branch after a merge.AtlantisConfigstruct to include aDeleteSourceBranchOnMergefield, and ensured this value is set when generating configuration. [1] [2]README.mdCLI options table.Testing and test data
TestEnablingDeleteSourceBranchOnMerge) to verify that the new flag and configuration option work as expected.withDeleteSourceBranchOnMerge.yaml) to support automated testing of this feature.