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:
Tomasz 'CeDeROM' CEDRO 2025-05-06 15:05:31 +02:00 committed by Xiang Xiao
parent 1e053ee936
commit fa0e073baf

View file

@ -1,10 +1,9 @@
# Reference: https://github.com/apache/infrastructure-asfyaml.
github: github:
description: "Apache NuttX Apps is a collection of tools, shells, network utilities, libraries, interpreters and can be used with the NuttX RTOS" description: "Apache NuttX Apps is a collection of tools, shells, network utilities, libraries, interpreters and can be used with the NuttX 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 merge: false
# disable merge button: rebase: true
merge: false protected_branches:
# enable rebase button: master:
rebase: true 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