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
Description: "Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed. Defaults to `60`.",
Description: "When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge. Can be one of: ALLGREEN, HEADGREEN. Defaults to `ALLGREEN`.",
Description: "The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged. Defaults to `5`.",
*`branch_name_pattern` - (Optional) (Block List, Max: 1) Parameters to be used for the branch_name_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with `tag_name_pattern` as it only applied to rulesets with target `branch`. (see [below for nested schema](#rules.branch_name_pattern))
79
78
80
79
*`commit_author_email_pattern` - (Optional) (Block List, Max: 1) Parameters to be used for the commit_author_email_pattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. (see [below for nested schema](#rules.commit_author_email_pattern))
@@ -89,6 +88,8 @@ The `rules` block supports the following:
89
88
90
89
*`non_fast_forward` - (Optional) (Boolean) Prevent users with push access from force pushing to branches.
91
90
91
+
*`merge_queue` - (Optional) (Block List, Max: 1) Merges must be performed via a merge queue.
92
+
92
93
*`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](#rules.pull_request))
93
94
94
95
*`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](#rules.required_deployments))
@@ -117,7 +118,6 @@ The `rules` block supports the following:
117
118
118
119
*`negate` - (Optional) (Boolean) If true, the rule will fail if the pattern matches.
119
120
120
-
121
121
#### rules.commit_author_email_pattern ####
122
122
123
123
*`operator` - (Required) (String) The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`.
@@ -128,7 +128,6 @@ The `rules` block supports the following:
128
128
129
129
*`negate` - (Optional) (Boolean) If true, the rule will fail if the pattern matches.
130
130
131
-
132
131
#### rules.commit_message_pattern ####
133
132
134
133
*`operator` - (Required) (String) The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`.
@@ -139,7 +138,6 @@ The `rules` block supports the following:
139
138
140
139
*`negate` - (Optional) (Boolean) If true, the rule will fail if the pattern matches.
141
140
142
-
143
141
#### rules.committer_email_pattern ####
144
142
145
143
*`operator` - (Required) (String) The operator to use for matching. Can be one of: `starts_with`, `ends_with`, `contains`, `regex`.
@@ -150,6 +148,21 @@ The `rules` block supports the following:
150
148
151
149
*`negate` - (Optional) (Boolean) If true, the rule will fail if the pattern matches.
152
150
151
+
#### rules.merge_queue ####
152
+
153
+
*`check_response_timeout_minutes` - (Required) (Number)Maximum time for a required status check to report a conclusion. After this much time has elapsed, checks that have not reported a conclusion will be assumed to have failed. Defaults to `60`.
154
+
155
+
*`grouping_strategy` - (Required) (String)When set to ALLGREEN, the merge commit created by merge queue for each PR in the group must pass all required checks to merge. When set to HEADGREEN, only the commit at the head of the merge group, i.e. the commit containing changes from all of the PRs in the group, must pass its required checks to merge. Can be one of: ALLGREEN, HEADGREEN. Defaults to `ALLGREEN`.
156
+
157
+
*`max_entries_to_build` - (Required) (Number) Limit the number of queued pull requests requesting checks and workflow runs at the same time. Defaults to `5`.
158
+
159
+
*`max_entries_to_merge` - (Required) (Number) Limit the number of queued pull requests requesting checks and workflow runs at the same time. Defaults to `5`.
160
+
161
+
*`merge_method` - (Required) (String) Method to use when merging changes from queued pull requests. Can be one of: MERGE, SQUASH, REBASE. Defaults to `MERGE`.
162
+
163
+
*`min_entries_to_merge` - (Required) (Number) The minimum number of PRs that will be merged together in a group. Defaults to `1`.
164
+
165
+
*`min_entries_to_merge_wait_minutes` - (Required) (Number) The time merge queue should wait after the first PR is added to the queue for the minimum group size to be met. After this time has elapsed, the minimum group size will be ignored and a smaller group will be merged. Defaults to `5`.
153
166
154
167
#### rules.pull_request ####
155
168
@@ -163,12 +176,10 @@ The `rules` block supports the following:
163
176
164
177
*`required_review_thread_resolution` - (Optional) (Boolean) All conversations on code must be resolved before a pull request can be merged. Defaults to `false`.
165
178
166
-
167
179
#### rules.required_deployments ####
168
180
169
181
*`required_deployment_environments` - (Required) (List of String) The environments that must be successfully deployed to before branches can be merged.
170
182
171
-
172
183
#### rules.required_status_checks ####
173
184
174
185
*`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))
@@ -214,13 +225,13 @@ The `rules` block supports the following:
214
225
*`bypass_mode` - (Optional) (String) When the specified actor can bypass the ruleset. pull_request means that an actor can only bypass rules on pull requests. Can be one of: `always`, `pull_request`.
215
226
216
227
~> Note: at the time of writing this, the following actor types correspond to the following actor IDs:
228
+
217
229
*`OrganizationAdmin` -> `1`
218
230
*`RepositoryRole` (This is the actor type, the following are the base repository roles and their associated IDs.)
219
231
*`maintain` -> `2`
220
232
*`write` -> `4`
221
233
*`admin` -> `5`
222
234
223
-
224
235
#### conditions ####
225
236
226
237
*`ref_name` - (Required) (Block List, Min: 1, Max: 1) (see [below for nested schema](#conditions.ref_name))
@@ -235,14 +246,12 @@ The `rules` block supports the following:
235
246
236
247
The following additional attributes are exported:
237
248
238
-
239
249
*`etag` (String)
240
250
241
251
*`node_id` (String) GraphQL global node id for use with v4 API.
242
252
243
253
*`ruleset_id` (Number) GitHub ID for the ruleset.
244
254
245
-
246
255
## Import
247
256
248
257
GitHub Repository Rulesets can be imported using the GitHub repository name and ruleset ID e.g.
0 commit comments