https://github.com/repository-settings/app is an elegant use of GitHub apps: you can define a .toml for repository settings, which lets you change these settings with a commit!