-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Labels
enhancementa request to improve CLIa request to improve CLImore-info-neededMore info needed from user/contributorMore info needed from user/contributor
Description
Describe the feature or problem you’d like to solve
I'm using:
gh version 1.5.0 (2021-01-21)
https://github.com/cli/cli/releases/tag/v1.5.0I think it will be a good feature to make the cli take the repository configuration under consideration.
For instance, the Merge button configuration, the following configuration:
Will prevent merging commits in the UI,
but if one were to merge using the cli,
then this configuration is ignored.
Today, I had a typo while working with cli:
(extra space between the pr number and the squash parameter)
gh pr merge 22 --squashThat caused the pr to be merged without being squashed first.
Proposed solution
My expectation was for an error message to be displayed,
letting me know that merging commits is disallowed.
Fixing it required me to fetch, pull, amend and force push the repository.
Additional context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementa request to improve CLIa request to improve CLImore-info-neededMore info needed from user/contributorMore info needed from user/contributor
