Skip to content

Commit cb19c41

Browse files
authored
Merge pull request #180 from microsoft/bugfix/missing-branch-policy
ci: adds missing branch policy
2 parents 13560e2 + 1222596 commit cb19c41

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.
3+
4+
name: kiota-abstractions-go-branch-protection
5+
description: Branch protection policy for the kiota-abstractions-go repository
6+
resource: repository
7+
configuration:
8+
branchProtectionRules:
9+
10+
- branchNamePattern: main
11+
# This branch pattern applies to the following branches as of 06/09/2023 14:08:44:
12+
# dev
13+
14+
# Specifies whether this branch can be deleted. boolean
15+
allowsDeletions: false
16+
# Specifies whether forced pushes are allowed on this branch. boolean
17+
allowsForcePushes: false
18+
# Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean
19+
dismissStaleReviews: true
20+
# Specifies whether admins can overwrite branch protection. boolean
21+
isAdminEnforced: false
22+
# Indicates whether "Require a pull request before merging" is enabled. boolean
23+
requiresPullRequestBeforeMerging: true
24+
# Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required
25+
requiredApprovingReviewsCount: 1
26+
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
27+
requireCodeOwnersReview: true
28+
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
29+
requiresCommitSignatures: false
30+
# Are conversations required to be resolved before merging? boolean
31+
requiresConversationResolution: true
32+
# Are merge commits prohibited from being pushed to this branch. boolean
33+
requiresLinearHistory: false
34+
# Required status checks to pass before merging. Values can be any string, but if the value does not correspond to any existing status check, the status check will be stuck on pending for status since nothing exists to push an actual status
35+
requiredStatusChecks:
36+
- license/cla
37+
- CodeQL
38+
- build
39+
# Require branches to be up to date before merging. This should be false since the repo contains autogenerated files. boolean
40+
requiresStrictStatusChecks: false
41+
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
42+
restrictsPushes: false
43+
# Restrict who can dismiss pull request reviews. boolean
44+
restrictsReviewDismissals: false

0 commit comments

Comments
 (0)