sindresorhus/refined-github


The issue has been closed
Configuration as code: Configure repo-settings with a yml-file #3601
fkirc posted onGitHub
In my organization, we have many repositories with similar settings. Those settings include:
- Only allow squash-merging
- Automatically delete branches after PR-merges
- The default-branch is
develop
- Force-pushes and deletion are forbidden for the
develop
-branch - A required check
ci
must pass before merging anything intodevelop
- A few other settings...
Now the problem is that those settings become very difficult to manage for a large number of repos.
Ideally, I would like to have a "yml-template" that enforces all those settings for my organization.
It would be much easier to put such a "yml-template" into .github
, instead of manually updating GitHub-settings.
After all, "configuration as code" is a common best-practice in many industries.