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
* add matrix build check
* All dev and main branches must have policy
* Require status checks to pass before merging
* Require code owner approvals of all changes in main/master and dev branches
* Require re-approval after new commits
* add CodeQL check
---------
Co-authored-by: Michael Mainer <[email protected]>
Copy file name to clipboardExpand all lines: .github/policies/msgraph-sdk-javascript-branch-protection.yml
+29-35
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ configuration:
10
10
branchProtectionRules:
11
11
12
12
- branchNamePattern: dev
13
-
# This branch pattern applies to the following branches as of 06/12/2023 10:31:16:
13
+
# This branch pattern applies to the following branches as of 08/30/2023:
14
14
# dev
15
15
16
16
# Specifies whether this branch can be deleted. boolean
@@ -30,14 +30,13 @@ configuration:
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
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
37
requiredStatusChecks:
38
-
- build (16.x)
39
-
- build (18.x)
40
-
- build (20.x)
38
+
- check-build-matrix
39
+
- CodeQL
41
40
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
42
41
requiresStrictStatusChecks: true
43
42
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
@@ -46,7 +45,7 @@ configuration:
46
45
restrictsReviewDismissals: false
47
46
48
47
- branchNamePattern: master
49
-
# This branch pattern applies to the following branches as of 06/12/2023 10:31:16:
48
+
# This branch pattern applies to the following branches as of 08/30/2023:
50
49
# master
51
50
52
51
# Specifies whether this branch can be deleted. boolean
@@ -66,14 +65,13 @@ configuration:
66
65
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
67
66
requiresCommitSignatures: false
68
67
# Are conversations required to be resolved before merging? boolean
69
-
requiresConversationResolution: false
68
+
requiresConversationResolution: true
70
69
# Are merge commits prohibited from being pushed to this branch. boolean
71
70
requiresLinearHistory: false
72
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
73
72
requiredStatusChecks:
74
-
- build (16.x)
75
-
- build (18.x)
76
-
- build (20.x)
73
+
- check-build-matrix
74
+
- CodeQL
77
75
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
78
76
requiresStrictStatusChecks: true
79
77
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
@@ -82,30 +80,29 @@ configuration:
82
80
restrictsReviewDismissals: false
83
81
84
82
- branchNamePattern: 3.0.0
85
-
# This branch pattern applies to the following branches as of 06/12/2023 10:31:16:
83
+
# This branch pattern applies to the following branches as of 08/30/2023:
86
84
# 3.0.0
87
85
88
86
# Specifies whether this branch can be deleted. boolean
89
87
allowsDeletions: false
90
88
# Specifies whether forced pushes are allowed on this branch. boolean
91
89
allowsForcePushes: false
92
90
# Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean
93
-
dismissStaleReviews: false
91
+
dismissStaleReviews: true
94
92
# Specifies whether admins can overwrite branch protection. boolean
95
93
isAdminEnforced: false
96
94
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
97
-
requireCodeOwnersReview: false
95
+
requireCodeOwnersReview: true
98
96
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
99
97
requiresCommitSignatures: false
100
98
# Are conversations required to be resolved before merging? boolean
101
-
requiresConversationResolution: false
99
+
requiresConversationResolution: true
102
100
# Are merge commits prohibited from being pushed to this branch. boolean
103
101
requiresLinearHistory: false
104
102
# 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
105
103
requiredStatusChecks:
106
-
- build (16.x)
107
-
- build (18.x)
108
-
- build (20.x)
104
+
- check-build-matrix
105
+
- CodeQL
109
106
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
110
107
requiresStrictStatusChecks: true
111
108
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
@@ -114,34 +111,33 @@ configuration:
114
111
restrictsReviewDismissals: false
115
112
116
113
- branchNamePattern: support/v2
117
-
# This branch pattern applies to the following branches as of 06/12/2023 10:31:16:
114
+
# This branch pattern applies to the following branches as of 08/30/2023:
118
115
# support/v2
119
116
120
117
# Specifies whether this branch can be deleted. boolean
121
118
allowsDeletions: false
122
119
# Specifies whether forced pushes are allowed on this branch. boolean
123
120
allowsForcePushes: false
124
121
# Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean
125
-
dismissStaleReviews: false
122
+
dismissStaleReviews: true
126
123
# Specifies whether admins can overwrite branch protection. boolean
127
124
isAdminEnforced: false
128
125
# Indicates whether "Require a pull request before merging" is enabled. boolean
129
126
requiresPullRequestBeforeMerging: true
130
127
# Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required
131
128
requiredApprovingReviewsCount: 1
132
129
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
133
-
requireCodeOwnersReview: false
130
+
requireCodeOwnersReview: true
134
131
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
135
132
requiresCommitSignatures: false
136
133
# Are conversations required to be resolved before merging? boolean
137
-
requiresConversationResolution: false
134
+
requiresConversationResolution: true
138
135
# Are merge commits prohibited from being pushed to this branch. boolean
139
136
requiresLinearHistory: false
140
137
# 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
141
138
requiredStatusChecks:
142
-
- build (16.x)
143
-
- build (18.x)
144
-
- build (20.x)
139
+
- check-build-matrix
140
+
- CodeQL
145
141
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
146
142
requiresStrictStatusChecks: true
147
143
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
@@ -150,7 +146,7 @@ configuration:
150
146
restrictsReviewDismissals: false
151
147
152
148
- branchNamePattern: v2/dev
153
-
# This branch pattern applies to the following branches as of 06/12/2023 10:31:16:
149
+
# This branch pattern applies to the following branches as of 08/30/2023:
154
150
# v2/dev
155
151
156
152
# Specifies whether this branch can be deleted. boolean
@@ -175,9 +171,8 @@ configuration:
175
171
requiresLinearHistory: false
176
172
# 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
177
173
requiredStatusChecks:
178
-
- build (16.x)
179
-
- build (18.x)
180
-
- build (20.x)
174
+
- check-build-matrix
175
+
- CodeQL
181
176
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
182
177
requiresStrictStatusChecks: false
183
178
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
@@ -186,34 +181,33 @@ configuration:
186
181
restrictsReviewDismissals: false
187
182
188
183
- branchNamePattern: main
189
-
# This branch pattern applies to the following branches as of 06/12/2023 10:31:16:
184
+
# This branch pattern applies to the following branches as of 08/30/2023:
190
185
# main
191
186
192
187
# Specifies whether this branch can be deleted. boolean
193
188
allowsDeletions: false
194
189
# Specifies whether forced pushes are allowed on this branch. boolean
195
190
allowsForcePushes: false
196
191
# Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean
197
-
dismissStaleReviews: false
192
+
dismissStaleReviews: true
198
193
# Specifies whether admins can overwrite branch protection. boolean
199
194
isAdminEnforced: false
200
195
# Indicates whether "Require a pull request before merging" is enabled. boolean
201
196
requiresPullRequestBeforeMerging: true
202
197
# Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required
203
198
requiredApprovingReviewsCount: 1
204
199
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
205
-
requireCodeOwnersReview: false
200
+
requireCodeOwnersReview: true
206
201
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
207
202
requiresCommitSignatures: false
208
203
# Are conversations required to be resolved before merging? boolean
209
-
requiresConversationResolution: false
204
+
requiresConversationResolution: true
210
205
# Are merge commits prohibited from being pushed to this branch. boolean
211
206
requiresLinearHistory: false
212
207
# 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
213
208
requiredStatusChecks:
214
-
- build (16.x)
215
-
- build (18.x)
216
-
- build (20.x)
209
+
- check-build-matrix
210
+
- CodeQL
217
211
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
218
212
requiresStrictStatusChecks: true
219
213
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
0 commit comments