google / go-github

Go library for accessing the GitHub v3 API

Home Page:https://pkg.go.dev/github.com/google/go-github/v62/github

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for merge queues.

mikhail-khodorovskiy opened this issue · comments

What's the PullRequest's method to achieve the click on that "Merge When Ready" button to submit the PR onto the merge queue? Are the APIs from Github are still missing to make this happen - is that way the library does not yet support it?
Screenshot 2024-05-14 at 9 34 55 AM

By looking in the developer console in the UI it looks like the browser submits a form POST to https://github.com/owner/repo/pull/pr-id/auto_merge_requests.

I don't know. You might want to contact the GitHub v3 API tech support team and ask them.
Feel free to report back here once you have an answer.

https://docs.github.com/en/graphql/reference/mutations#enablepullrequestautomerge - they say this is the API to add PR to merge queue. Is this something that can be added to the library?

No, unfortunately that is the GitHub v4 GraphQL API, not the v3 RESTful API.
Please see our README.md for more information about the GraphQL API.

Closing as not possible in this repo.