Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Trigger auto-merge through the Github API #317

Open
joao-paulo-parity opened this issue Oct 8, 2021 · 2 comments
Open

Trigger auto-merge through the Github API #317

joao-paulo-parity opened this issue Oct 8, 2021 · 2 comments

Comments

@joao-paulo-parity
Copy link
Contributor

joao-paulo-parity commented Oct 8, 2021

Github implemented auto-merging this year and according to https://github.community/t/enabling-auto-merge-on-a-pr-using-the-api/150797/5 it is possible to enable it through the GraphQL API.

Instead of having processbot tell if the statuses are passing through Webhook Events, which is e.g. susceptible to webhook delivery failures, it would be more reliable to enable/disable auto-merge through the GraphQL API.

@joao-paulo-parity
Copy link
Contributor Author

@Vovke Vovke added duplicate This issue or pull request already exists and removed duplicate This issue or pull request already exists labels Apr 12, 2022
@joao-paulo-parity
Copy link
Contributor Author

I don't think this would work as we're hoping for because some jobs spontaneously fail, as per #374 (comment), and that would cancel the automerge. Then, to re-enable the automerge in those scenarios we'd still rely on webhook deliveries.

I don't know if using automerge would provide a better flow than what we have currently, but I guess it's relevant to keep this issue open until a decision has been made about this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants