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 documentation for the new required_reviewers nested block
in both organization_ruleset and repository_ruleset resources.
Documents the reviewer, file_patterns, and minimum_approvals
attributes with their types and requirements.
Copy file name to clipboardExpand all lines: website/docs/r/organization_ruleset.html.markdown
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -211,6 +211,22 @@ The `rules` block supports the following:
211
211
212
212
*`required_review_thread_resolution` - (Optional) (Boolean) All conversations on code must be resolved before a pull request can be merged. Defaults to `false`.
213
213
214
+
*`required_reviewers` - (Optional) (Block List) Require specific reviewers to approve pull requests. Note: This feature is in beta. (see [below for nested schema](#rules.pull_request.required_reviewers))
215
+
216
+
#### rules.pull_request.required_reviewers ####
217
+
218
+
*`reviewer` - (Required) (Block List, Max: 1) The reviewer that must review matching files. (see [below for nested schema](#rules.pull_request.required_reviewers.reviewer))
219
+
220
+
*`file_patterns` - (Required) (List of String) File patterns (fnmatch syntax) that this reviewer must approve.
221
+
222
+
*`minimum_approvals` - (Required) (Number) Minimum number of approvals required from this reviewer. Set to 0 to make approval optional.
*`id` - (Required) (Number) The ID of the reviewer (Team ID).
227
+
228
+
*`type` - (Required) (String) The type of reviewer. Currently only `Team` is supported.
229
+
214
230
#### rules.required_status_checks ####
215
231
216
232
*`required_check` - (Required) (Block Set, Min: 1) Status checks that are required. Several can be defined. (see [below for nested schema](#rules.required_status_checks.required_check))
Copy file name to clipboardExpand all lines: website/docs/r/repository_ruleset.html.markdown
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -217,6 +217,22 @@ The `rules` block supports the following:
217
217
218
218
*`required_review_thread_resolution` - (Optional) (Boolean) All conversations on code must be resolved before a pull request can be merged. Defaults to `false`.
219
219
220
+
*`required_reviewers` - (Optional) (Block List) Require specific reviewers to approve pull requests. Note: This feature is in beta. (see [below for nested schema](#rules.pull_request.required_reviewers))
221
+
222
+
#### rules.pull_request.required_reviewers ####
223
+
224
+
*`reviewer` - (Required) (Block List, Max: 1) The reviewer that must review matching files. (see [below for nested schema](#rules.pull_request.required_reviewers.reviewer))
225
+
226
+
*`file_patterns` - (Required) (List of String) File patterns (fnmatch syntax) that this reviewer must approve.
227
+
228
+
*`minimum_approvals` - (Required) (Number) Minimum number of approvals required from this reviewer. Set to 0 to make approval optional.
*`id` - (Required) (Number) The ID of the reviewer (Team ID).
233
+
234
+
*`type` - (Required) (String) The type of reviewer. Currently only `Team` is supported.
235
+
220
236
#### rules.required_deployments ####
221
237
222
238
*`required_deployment_environments` - (Required) (List of String) The environments that must be successfully deployed to before branches can be merged.
0 commit comments