Enabling auto merge on a PR using the API #24719
-
Hi, We’re very excited with the new Beta Auto merge feature for pull requests. I did not see any way to enable auto merge on a pull request using the REST API at https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls - is that already available? Many thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 2 replies
-
Still no news regarding this. We are also interested in such API. Just in case, another topic being duplicate of this one: enable-auto-merge-for-repository-via-api-v3 |
Beta Was this translation helpful? Give feedback.
-
As far as I can see this one is about the flag in the pull request itself and the other one is about the setting in the repository. So to me they are not actually duplicates, but maybe I got that wrong? |
Beta Was this translation helpful? Give feedback.
-
By now the auto-merge is also not in beta anymore, so I would have expected a flag in the API by now 🤔 |
Beta Was this translation helpful? Give feedback.
-
Enabling auto-merge for a PR is now possible through the GraphQL API using the However, there doesn’t seem to be an API endpoint to enable this feature at repository level. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to auto-merge PRs using this API that automatically pass all checks? |
Beta Was this translation helpful? Give feedback.
-
How can I use it for auto-merge my PR via code? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Enabling / disabling the "Allow auto-merge" repository setting can now be set at the repository level via the REST API, using the https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#update-a-repository |
Beta Was this translation helpful? Give feedback.
-
Is this already possible trough the REST API? |
Beta Was this translation helpful? Give feedback.
Enabling auto-merge for a PR is now possible through the GraphQL API using the
enablePullRequestAutoMerge
mutation.However, there doesn’t seem to be an API endpoint to enable this feature at repository level.