-
-
Notifications
You must be signed in to change notification settings - Fork 598
Add merge by squash option #380
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
$params = array( | ||
'commit_message' => $message, | ||
'sha' => $sha, | ||
'squash' => $squash, |
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.
Does this break if not using the preview API?
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.
Or does GitHub ignore the invalid extra field?
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.
If you don't use the preview API, GitHub will just make a classic 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.
It would be safer to only pass through squash
if it's set to true, otherwise omit it, wouldn't it?
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 would change nothing. If the parameter is not managed by GitHub API v3, it is simply ignored.
@cursedcoder I fixed the tests. 👍 |
Thanks! Any ETA for the 1.7? 😄 |
Does this actually work for you? I can't get it to work for me. Yes, I am using the |
nvm |
Refs: