Skip to content

Commit 89460b9

Browse files
committed
docs: Add copilot_code_review to repository_ruleset documentation
1 parent aa1a0ff commit 89460b9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

website/docs/r/repository_ruleset.html.markdown

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ The `rules` block supports the following:
124124

125125
* `pull_request` - (Optional) (Block List, Max: 1) Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. (see [below for nested schema](#rulespull_request))
126126

127+
* `copilot_code_review` - (Optional) (Block List, Max: 1) Automatically request Copilot code review for new pull requests if the author has access to Copilot code review and their premium requests quota has not reached the limit. (see [below for nested schema](#rulescopilot_code_review))
128+
127129
* `required_deployments` - (Optional) (Block List, Max: 1) Choose which environments must be successfully deployed to before branches can be merged into a branch that matches this rule. (see [below for nested schema](#rulesrequired_deployments))
128130

129131
* `required_linear_history` - (Optional) (Boolean) Prevent merge commits from being pushed to matching branches.
@@ -215,6 +217,12 @@ The `rules` block supports the following:
215217

216218
* `required_review_thread_resolution` - (Optional) (Boolean) All conversations on code must be resolved before a pull request can be merged. Defaults to `false`.
217219

220+
#### rules.copilot_code_review ####
221+
222+
* `review_on_push` - (Optional) (Boolean) Copilot automatically reviews each new push to the pull request. Defaults to `false`.
223+
224+
* `review_draft_pull_requests` - (Optional) (Boolean) Copilot automatically reviews draft pull requests before they are marked as ready for review. Defaults to `false`.
225+
218226
#### rules.required_deployments ####
219227

220228
* `required_deployment_environments` - (Required) (List of String) The environments that must be successfully deployed to before branches can be merged.

0 commit comments

Comments
 (0)