Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for deleting a branch on merge in BitBucket Server #1792

Merged
merged 6 commits into from
Sep 27, 2021
Merged

Add support for deleting a branch on merge in BitBucket Server #1792

merged 6 commits into from
Sep 27, 2021

Conversation

wpbeckwith
Copy link
Contributor

This PR adds the support for the delete_source_branch_on_merge attribute of a atlantis.yaml file for the BitBucket Server.

@wpbeckwith wpbeckwith requested a review from a team as a code owner September 4, 2021 16:32
@wpbeckwith
Copy link
Contributor Author

Can we get a review on this PR?

@jamengual
Copy link
Contributor

Thanks for your contribution!
you will need to add some tests to your PR before we can merge it

@wpbeckwith
Copy link
Contributor Author

I just looked through all the server/events/vcs clients and none of them actual test for DeleteSourceBranchOnMerge. If they have it then the value is always set to false. So how would I write a portable test for this. Do you all have a specific version BitBucket server in place?

@wpbeckwith
Copy link
Contributor Author

Nvm, I think I see a path forward on how to write a test.

@jamengual jamengual merged commit da7e042 into runatlantis:master Sep 27, 2021
@wpbeckwith wpbeckwith deleted the feature/bitbucketserver-delete-branch branch September 28, 2021 14:26
krrrr38 pushed a commit to krrrr38/atlantis that referenced this pull request Dec 16, 2022
…lantis#1792)

* Add support for deleting a branch on merge in BitBucket Server

* Add support for deleting a branch on merge in BitBucket Server

* Making linter happy although the code would fall through and return err anyway.

* Add client_test for deleting source branch

* Added err check

Co-authored-by: Wendell Beckwith <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants