hub4j / github-api

Java API for GitHub
https://github-api.kohsuke.org/
MIT License
1.12k stars 718 forks source link

Implement API for retrieving and managing rulesets on a repository #1811

Open FHannes opened 4 months ago

FHannes commented 4 months ago

As far as I can tell, the library currently supports managing branch protection, but not rulesets. The use of rulesets has some advantages over using branch protection as listed in the documentation, so it might be useful to add support for them. API reference: https://docs.github.com/en/rest/repos/rules?apiVersion=2022-11-28