github: Setup protection for master branch.
* We do not have "Settings" tab in the Apache's owned repository, thus we need to update .asf.yaml file with repository settings. * No direct push to master branch is possible. * Require status checks to pass before merge. * Setup reviews parameters. * Require signatures. * Require conversation resolution. * Require linear history. Signed-off-by: Tomasz 'CeDeROM' CEDRO <tomek@cedro.info>
This commit is contained in:
parent
559a278ddb
commit
358469e5bb
1 changed files with 16 additions and 5 deletions
21
.asf.yaml
21
.asf.yaml
|
|
@ -1,10 +1,9 @@
|
||||||
|
# Reference: https://github.com/apache/infrastructure-asfyaml.
|
||||||
github:
|
github:
|
||||||
description: "Apache NuttX is a mature, real-time embedded operating system (RTOS)"
|
description: "Apache NuttX is a mature, real-time embedded operating system (RTOS)"
|
||||||
homepage: https://nuttx.apache.org/
|
homepage: https://nuttx.apache.org/
|
||||||
features:
|
features:
|
||||||
# Enable issues management
|
|
||||||
issues: true
|
issues: true
|
||||||
# Enable project for project management boards
|
|
||||||
projects: true
|
projects: true
|
||||||
labels:
|
labels:
|
||||||
- nuttx
|
- nuttx
|
||||||
|
|
@ -14,9 +13,21 @@ github:
|
||||||
- mcu
|
- mcu
|
||||||
- microcontroller
|
- microcontroller
|
||||||
enabled_merge_buttons:
|
enabled_merge_buttons:
|
||||||
# disable squash button:
|
|
||||||
squash: false
|
squash: false
|
||||||
# disable merge button:
|
|
||||||
merge: false
|
merge: false
|
||||||
# enable rebase button:
|
|
||||||
rebase: true
|
rebase: true
|
||||||
|
protected_branches:
|
||||||
|
master:
|
||||||
|
required_status_checks:
|
||||||
|
strict: true
|
||||||
|
contexts:
|
||||||
|
- Check
|
||||||
|
- Lint
|
||||||
|
- Build
|
||||||
|
required_pull_request_reviews:
|
||||||
|
dismiss_stale_reviews: true
|
||||||
|
require_last_push_approval: true
|
||||||
|
required_approving_review_count: 2
|
||||||
|
required_linear_history: true
|
||||||
|
required_signatures: true
|
||||||
|
required_conversation_resolution: true
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue