-
Couldn't load subscription status.
- Fork 7.3k
PR merge improvements: auto-merge, edit commit body #2980
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
Conversation
For single-commit PRs, the commit subject will be the subject of the head commit and the PR number. For multi-commit PRs, the commit subject will be the PR title and PR number. Instead of trying to replicate this logic client-side, omit the `commitHeadline` param and let the server apply defaults appropriately. Reverts #1627
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good to me!
The confirmation checkmark for merge --auto is green. Should it be purple?
The confirmation checkmark for merge --disable-auto is green. Should it be red?
I actually think it makes sense for these to be green, since neither of these result in something merging or closing right then and there. 👍
| @@ -0,0 +1,100 @@ | |||
| package merge | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the extraction of the API code into this new file.
Co-authored-by: Amanda Pinsker <[email protected]>
GHE versions 2.22 and older will not have this GraphQL field. Avoid the resulting error and have the command proceeed with empty text as the default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, nice work!
pr merge --auto,pr merge --disable-automodesQuestions:
merge --autois green. Should it be purple?merge --disable-autois green. Should it be red?Fixes #2619
Fixes #1023
Reverts #1627, reasoning #2954 (comment), ref. #1621
TODO:
--auto--disable-autoviewerMergeBodyTextGraphQL field