-
Notifications
You must be signed in to change notification settings - Fork 343
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
Add auto-merge feature for GitHub and GitLab #903
Conversation
👋 @Skn0tt thanks for the contribution. |
@0x2b3bfa0 do you know of any way to programmatically enable auto-merge on GitHub? couldn't find anything in their API Docs |
It's only available through GraphQL as far as I know. See |
Would probably imply using |
The equivalent of what you do using octokit |
This comment was marked as off-topic.
This comment was marked as off-topic.
But @Skn0tt is doing a synthetic "auto-merge" feature in GL using const endpoint = `/projects/${projectPath}/merge_requests/${mergeRequestId}/merge`; The equivalent is just merge as it is doing right now? |
This pull request makes use of |
@0x2b3bfa0 Are they the same? It seems that in GL merges if pipeline succeed I cant find that specs in the GH docs, maybe they are expecting to to additionally setup branch protection? |
All these features sound pretty similar to me. 🤔 GitHubGitLabBitbucket |
The issue that I see is that you must to upgrade then to use the feature? |
We should do a trial to see if it works as expected beforehand |
If not maybe just synthetic PR may work taking into account that merge would be the last op without having fail at least the current step in the workflow (not yet a successfully workflow) |
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.
Looks good to me! Should we keep JSDoc comments? There is no precedent in our code base, although it's a tempting improvement.
Good question. |
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.
lgtm - test failing due to unrelated #914
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.
👍
opens #916 |
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.
CML is a great tool! We're using it to automatically pull in new data into our repository daily. Currently, we're reviewing + merging every PR manually. We'd like to automate this, and would like to use Gitlab's auto-merge feature to do so. This PR is a first iteration on supporting this. We'll test internally, and if it works, possibly extend the feature to the GitHub driver.