You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/policies/msgraph-sdk-powershell-branch-protection.yml
+56-16
Original file line number
Diff line number
Diff line change
@@ -9,40 +9,44 @@ resource: repository
9
9
configuration:
10
10
branchProtectionRules:
11
11
12
-
- branchNamePattern: main
13
-
# This branch pattern applies to the following branches as of 06/12/2023 10:31:18:
14
-
#main
12
+
- branchNamePattern: dev
13
+
# This branch pattern applies to the following branches as of approximately 08/25/2023 14:07:25:
14
+
#dev
15
15
16
16
# Specifies whether this branch can be deleted. boolean
17
17
allowsDeletions: false
18
18
# Specifies whether forced pushes are allowed on this branch. boolean
19
19
allowsForcePushes: false
20
20
# Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean
21
-
dismissStaleReviews: false
21
+
dismissStaleReviews: true
22
22
# Specifies whether admins can overwrite branch protection. boolean
23
23
isAdminEnforced: false
24
24
# Indicates whether "Require a pull request before merging" is enabled. boolean
25
25
requiresPullRequestBeforeMerging: true
26
26
# Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required
27
27
requiredApprovingReviewsCount: 1
28
28
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
29
-
requireCodeOwnersReview: false
29
+
requireCodeOwnersReview: true
30
30
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
31
31
requiresCommitSignatures: false
32
32
# Are conversations required to be resolved before merging? boolean
33
-
requiresConversationResolution: false
33
+
requiresConversationResolution: true
34
34
# Are merge commits prohibited from being pushed to this branch. boolean
35
35
requiresLinearHistory: false
36
+
# 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
37
+
requiredStatusChecks:
38
+
- license/cla
39
+
- GitOps/AdvancedSecurity
36
40
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
37
41
requiresStrictStatusChecks: true
38
42
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
39
43
restrictsPushes: false
40
44
# Restrict who can dismiss pull request reviews. boolean
41
45
restrictsReviewDismissals: false
42
46
43
-
- branchNamePattern: dev
44
-
# This branch pattern applies to the following branches as of 06/12/2023 10:31:18:
45
-
#dev
47
+
- branchNamePattern: features/[0-9]*
48
+
# This branch pattern applies to the following branches as of approximately 08/25/2023 14:07:25:
49
+
#features/2.0
46
50
47
51
# Specifies whether this branch can be deleted. boolean
48
52
allowsDeletions: false
@@ -61,22 +65,22 @@ configuration:
61
65
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
62
66
requiresCommitSignatures: false
63
67
# Are conversations required to be resolved before merging? boolean
64
-
requiresConversationResolution: false
68
+
requiresConversationResolution: true
65
69
# Are merge commits prohibited from being pushed to this branch. boolean
66
70
requiresLinearHistory: false
67
71
# 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
68
72
requiredStatusChecks:
69
-
- license/cla
73
+
- GitOps/AdvancedSecurity
70
74
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
71
75
requiresStrictStatusChecks: true
72
76
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
73
77
restrictsPushes: false
74
78
# Restrict who can dismiss pull request reviews. boolean
75
79
restrictsReviewDismissals: false
76
80
77
-
- branchNamePattern: features/[0-9]*
78
-
# This branch pattern applies to the following branches as of 06/12/2023 10:31:18:
79
-
#features/2.0
81
+
- branchNamePattern: main
82
+
# This branch pattern applies to the following branches as of approximately 08/25/2023 14:07:25:
83
+
#main
80
84
81
85
# Specifies whether this branch can be deleted. boolean
82
86
allowsDeletions: false
@@ -91,18 +95,54 @@ configuration:
91
95
# Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required
92
96
requiredApprovingReviewsCount: 1
93
97
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
94
-
requireCodeOwnersReview: false
98
+
requireCodeOwnersReview: true
95
99
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
96
100
requiresCommitSignatures: false
97
101
# Are conversations required to be resolved before merging? boolean
98
-
requiresConversationResolution: false
102
+
requiresConversationResolution: true
99
103
# Are merge commits prohibited from being pushed to this branch. boolean
100
104
requiresLinearHistory: false
101
105
# 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
102
106
requiredStatusChecks:
107
+
- GitOps/AdvancedSecurity
103
108
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
104
109
requiresStrictStatusChecks: true
105
110
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
106
111
restrictsPushes: false
107
112
# Restrict who can dismiss pull request reviews. boolean
108
113
restrictsReviewDismissals: false
114
+
115
+
- branchNamePattern: support/*
116
+
# This branch pattern applies to the following branches as of approximately 08/25/2023 14:07:25:
117
+
# support/1.x
118
+
119
+
# Specifies whether this branch can be deleted. boolean
120
+
allowsDeletions: false
121
+
# Specifies whether forced pushes are allowed on this branch. boolean
122
+
allowsForcePushes: false
123
+
# Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean
124
+
dismissStaleReviews: true
125
+
# Specifies whether admins can overwrite branch protection. boolean
126
+
isAdminEnforced: false
127
+
# Indicates whether "Require a pull request before merging" is enabled. boolean
128
+
requiresPullRequestBeforeMerging: true
129
+
# Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required
130
+
requiredApprovingReviewsCount: 1
131
+
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
132
+
requireCodeOwnersReview: true
133
+
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
134
+
requiresCommitSignatures: false
135
+
# Are conversations required to be resolved before merging? boolean
136
+
requiresConversationResolution: true
137
+
# Are merge commits prohibited from being pushed to this branch. boolean
138
+
requiresLinearHistory: false
139
+
# 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
140
+
requiredStatusChecks:
141
+
- GitOps/AdvancedSecurity
142
+
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
143
+
requiresStrictStatusChecks: true
144
+
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
145
+
restrictsPushes: false
146
+
# Restrict who can dismiss pull request reviews. boolean
0 commit comments