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

#1190 - limit merge methods #2224

Merged
merged 9 commits into from Jan 22, 2021
Merged

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
@samcoe samcoe added this to Backlog 🗒 in The GitHub CLI via automation Jan 21, 2021
@samcoe samcoe moved this from Backlog 🗒 to Needs review 🤔 in The GitHub CLI Jan 21, 2021
The GitHub CLI automation moved this from Needs review 🤔 to Needs to be merged 🎉 Jan 21, 2021
@vilmibm vilmibm merged commit 6e2c1b3 into cli:trunk Jan 22, 2021
The GitHub CLI automation moved this from Needs to be merged 🎉 to Pending Release 🥚 Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
The GitHub CLI
  
Done 💤
Development

Successfully merging this pull request may close these issues.

Limit merge methods to merge button settings
5 participants