Skip to content

#1190 - limit merge methods#2224

Merged
vilmibm merged 9 commits intocli:trunkfrom
divbhasin:1190-limit-merge-methods
Jan 22, 2021
Merged

#1190 - limit merge methods#2224
vilmibm merged 9 commits intocli:trunkfrom
divbhasin:1190-limit-merge-methods

Conversation

@divbhasin
Copy link
Contributor

@divbhasin divbhasin commented Oct 18, 2020

Fix #1190. I plan to address the bonus points mentioned in the issue but the trouble I am having is how to modify the TestPRMerge_interactive (in /pkg/cmd/pr/merge/merge_test.go) to work with this modified code. The repo REPO we use to test does not have any of the 3 options enabled, so the prompt never appears and the 2nd HTTP stub does not get matched. How do I make sure that at the time REPO is created, it is created with at least 1 of the merge PR options?

Copy link
Contributor

@mislav mislav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good! Thank you for spiking this out. We can look into how to best update the test. 🙇

@vilmibm vilmibm marked this pull request as ready for review January 19, 2021 17:51
@cli cli deleted a comment Jan 21, 2021
@cli cli deleted a comment Jan 21, 2021
@cli cli deleted a comment Jan 21, 2021
@cli cli deleted a comment Jan 21, 2021
@cli cli deleted a comment Jan 21, 2021
@cli cli deleted a comment Jan 21, 2021
@cli cli deleted a comment Jan 21, 2021
@cli cli deleted a comment Jan 21, 2021
@samcoe
Copy link
Contributor

samcoe commented Jan 21, 2021

@divbhasin Thanks for your contribution. I went ahead and merged in the latest trunk, updated some of the functionality to properly handle when a repository does not have all merge options available, and cleaned up the tests a bit. It should be good to go now 🥳

@samcoe samcoe requested review from mislav and vilmibm January 21, 2021 23:02
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.

Limit merge methods to merge button settings

5 participants