pull-request
pull-request copied to clipboard
One PR with auto-merge option enabled
Thanks for the suggestion!
It's not yet available through the API. We will need it to become available there then once our project dependency hub CLI adds it, we can easily include it as an option.
We can monitor the discussions there: https://github.community/t/enabling-auto-merge-on-a-pr-using-the-api/150797?u=wei https://github.community/t/enable-auto-merge-for-repository-via-api-v3/151331?u=wei Doc: https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls
@wei Potentially now possible as per https://github.community/t/enabling-auto-merge-on-a-pr-using-the-api/150797/5 ?
It seems like it's only available over graphql api. https://docs.github.com/en/graphql/reference/mutations#enablepullrequestautomerge
We could use hub api graphql to make the request. PR welcome!
Could you explain a little bit @wei ? What is hub ?
@waghanza sure, it's https://hub.github.com/
You mean this action could use a cli tool ?
@waghanza it already does : )
Have you thought about moving to https://cli.github.com/?
with gh you can use
gh pr merge --auto
https://github.com/cli/cli/issues/2619#issuecomment-976452610
It will result in a rewrite which may affect backwards compatibility. Ideally hub should support this too if gh already does.
Well, I doubt if they will keep support hub for long. It doesn't make too much sense to maintain 2 tools doing the same job
Thank you for opening this issue. Per the updated README, we are in process of archiving this repository, and encourage using gh pr create directly in your workflows instead.