Skip to content

Commit fa0e073

Browse files
cederomxiaoxiang781216
authored andcommitted
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 <[email protected]>
1 parent 1e053ee commit fa0e073

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

.asf.yaml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1+
# Reference: https://github.com/apache/infrastructure-asfyaml.
12
github:
23
description: "Apache NuttX Apps is a collection of tools, shells, network utilities, libraries, interpreters and can be used with the NuttX RTOS"
34
homepage: https://nuttx.apache.org/
45
features:
5-
# Enable issues management
66
issues: true
7-
# Enable project for project management boards
87
projects: true
98
labels:
109
- nuttx
@@ -14,9 +13,21 @@ github:
1413
- mcu
1514
- microcontroller
1615
enabled_merge_buttons:
17-
# disable squash button:
18-
squash: false
19-
# disable merge button:
20-
merge: false
21-
# enable rebase button:
22-
rebase: true
16+
squash: false
17+
merge: false
18+
rebase: true
19+
protected_branches:
20+
master:
21+
required_status_checks:
22+
strict: true
23+
contexts:
24+
- Check
25+
- Lint
26+
- Build
27+
required_pull_request_reviews:
28+
dismiss_stale_reviews: true
29+
require_last_push_approval: true
30+
required_approving_review_count: 2
31+
required_linear_history: true
32+
required_signatures: true
33+
required_conversation_resolution: true

0 commit comments

Comments
 (0)