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

RFW: Setting for GitHub PR auto-merge #22

Open
davegaeddert opened this issue Feb 9, 2021 · 0 comments
Open

RFW: Setting for GitHub PR auto-merge #22

davegaeddert opened this issue Feb 9, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers RFW Requests for Work

Comments

@davegaeddert
Copy link
Member

A new setting can be added called github_automerge. This would enable (or disable) the auto-merge option on a PR after it is created (or updated). At this point, it would need to use the GraphQL API because auto-merge isn't a part of the REST API yet:
https://docs.github.com/en/graphql/reference/mutations#enablepullrequestautomerge

The end of this function would be the place to start:

func (pr *PullRequest) CreateOrUpdate() error {

I don't think a GraphQL library/dependency is needed.


This RFW is currently worth $250 and you'll be paid when we merge your PR. You can find more information and other RFWs on the Dropseed website.

Any questions can be asked here or through our private contact page!

@davegaeddert davegaeddert added enhancement New feature or request good first issue Good for newcomers RFW Requests for Work labels Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers RFW Requests for Work
Projects
None yet
Development

No branches or pull requests

1 participant