google / go-github

Go library for accessing the GitHub v3 API
https://pkg.go.dev/github.com/google/go-github/v63/github
BSD 3-Clause "New" or "Revised" License
10.28k stars 2.04k forks source link

Add support for merge queue parameters for organization and repository ruleset #3225

Closed zhpeng811 closed 1 week ago

zhpeng811 commented 1 month ago

GitHub recently added full support for merge queue configurations in REST API for organization and repository ruleset

organization: https://docs.github.com/en/rest/orgs/rules?apiVersion=2022-11-28#create-an-organization-repository-ruleset repository: https://docs.github.com/en/rest/orgs/rules?apiVersion=2022-11-28#create-an-organization-repository-ruleset

Example Screenshot from GitHub's API doc

![image](https://github.com/user-attachments/assets/6bbe1dd4-8246-48f8-aea4-bf9bbb2f6201)

merge queue support was previously added in https://github.com/google/go-github/pull/3131, however at that time the REST API did not officially support merge queue, and no parameter support was added at that time.


this issue is related to https://github.com/integrations/terraform-provider-github/issues/1481

I'm willing to take this issue and implement it

gmlewis commented 1 month ago

Thank you, @zhpeng811 ! It's yours.

icep87 commented 1 month ago

@zhpeng811 how is the progress on this?