Is there a way to store my github repo's settings "as-code" rather than interacting with the settings via UI? Aka these things:
I would like to do this so that:
- We can keep a history of changes
- Changes can be PR reviewed
Right now our team has several admins and people frequently update settings. This makes it hard to understand why settings are setup a certain way. This is paticularly an issue with branch protection rules:
I would like some way to store all of these settings in a text file, either in YAML or Terraform or something else. Is this possible?

