Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nkalupahana/branchprotection
A GitHub Actions-based branch protection system.
https://github.com/nkalupahana/branchprotection
Last synced: 5 days ago
JSON representation
A GitHub Actions-based branch protection system.
- Host: GitHub
- URL: https://github.com/nkalupahana/branchprotection
- Owner: nkalupahana
- Created: 2021-02-23T19:32:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-04-19T06:24:31.000Z (over 3 years ago)
- Last Synced: 2023-03-03T23:30:59.238Z (over 1 year ago)
- Language: JavaScript
- Size: 51.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Codeowners: codeowners.json
Awesome Lists containing this project
README
# Branch Protection
A GitHub Actions-based branch protection system.[![Branch Protection](https://github.com/nkalupahana/branchProtection/actions/workflows/branchprotection.yml/badge.svg)](https://github.com/nkalupahana/branchProtection/actions/workflows/branchprotection.yml)
## Model
- `codeowners.json` defines who can merge into which branch. These are the people who must merge in PRs into those branches.
- People who don't have permission to add commits to some branch will have their commits reverted by the action. The action will then return a non-zero exit code to send an email to the commiter that their code got rejected.