Open
Description
We can set up branch protection, maintainers, and other repository settings using a pull request.
Options:
- https://github.com/repository-settings/app - Pull Requests for GitHub repository settings. The advantage of this is that many projects have adopted it, and the settings are stored in the repo.
Examples:
- https://github.com/rust-cli/env_logger/blob/main/.github/settings.yml
- https://github.com/cncf/tag-runtime/blob/c6de67c5e69884d9d8087440903cc7013a93cc5e/.github/settings.yml
-
https://github.com/github/safe-settings is a fork of the above project and stores settings in a separate repo. The con is it needs more management work to set up a separate repo. The adoption is not much
-
We could start a new project for this, which uses Terraform. Terraform is very popular. One of the cons is that it requires maintaining a separate state.