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

Add a command to enable auto merge #489

Open
tjenkinson opened this issue Feb 27, 2021 · 2 comments
Open

Add a command to enable auto merge #489

tjenkinson opened this issue Feb 27, 2021 · 2 comments
Labels
type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@tjenkinson
Copy link

Is your feature request related to a problem? Please describe.
It would be nice to queue a merge once required status checks had passed.

Describe the solution you'd like
Now that GitHub supports auto merge it would be great if there was a new command repo automerge ... that enabled it. Maybe this could also attempt to enable the option on the repo if it's disabled too.

Not sure if it's possible to enable from the API yet, but it probably will be soon

@yoshi-automation yoshi-automation added the triage me I really want to be triaged. label Feb 28, 2021
@bcoe bcoe added the type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. label Mar 2, 2021
@yoshi-automation yoshi-automation removed the triage me I really want to be triaged. label Mar 2, 2021
@alexwilson
Copy link

Hey! I recently built a Github Action which allows enabling auto-merge in workflows, which may help.

If you're interested in how to enable auto-merge programmatically, it isn't exposed via REST (that I could see) but it is exposed via a graphQL mutations, and there's a working example here: https://github.com/alexwilson/enable-github-automerge-action/blob/main/src/enable-github-automerge-action.ts#L115-L135

Documentation on the mutation in question here: https://docs.github.com/en/graphql/reference/mutations#enablepullrequestautomerge

@tjenkinson
Copy link
Author

Nice thanks for the info!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

4 participants