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
*`bypass_actors` - (Optional) (Block List) The actors that can bypass the rules in this ruleset. (see [below for nested schema](#bypass_actors))
63
63
64
-
*`conditions` - (Optional) (Block List, Max: 1) Parameters for an organization ruleset ref name condition. (see [below for nested schema](#conditions))
64
+
*`conditions` - (Optional) (Block List, Max: 1) Parameters for an organization ruleset condition. `ref_name` is required alongside one of `repository_name` or `repository_id`. (see [below for nested schema](#conditions))
65
65
66
66
#### Rules ####
67
67
@@ -178,12 +178,18 @@ The `rules` block supports the following:
178
178
179
179
#### bypass_actors ####
180
180
181
-
*`actor_id` - (Required) (Number) The ID of the actor that can bypass a ruleset
181
+
*`actor_id` - (Required) (Number) The ID of the actor that can bypass a ruleset.
182
182
183
183
*`actor_type` (String) The type of actor that can bypass a ruleset. Can be one of: `RepositoryRole`, `Team`, `Integration`, `OrganizationAdmin`.
184
184
185
185
*`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`.
186
186
187
+
~>Note: at the time of writing this, the following actor types correspond to the following actor IDs:
188
+
*`OrganizationAdmin` -> `1`
189
+
*`RepositoryRole` (This is the actor type, the following are the base repository roles and their associated IDs.)
Copy file name to clipboardExpand all lines: website/docs/r/repository_ruleset.html.markdown
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -195,12 +195,19 @@ The `rules` block supports the following:
195
195
196
196
#### bypass_actors ####
197
197
198
-
*`actor_id` - (Required) (Number) The ID of the actor that can bypass a ruleset
198
+
*`actor_id` - (Required) (Number) The ID of the actor that can bypass a ruleset.
199
199
200
200
*`actor_type` (String) The type of actor that can bypass a ruleset. Can be one of: `RepositoryRole`, `Team`, `Integration`, `OrganizationAdmin`.
201
201
202
202
*`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`.
203
203
204
+
~> Note: at the time of writing this, the following actor types correspond to the following actor IDs:
205
+
*`OrganizationAdmin` -> `1`
206
+
*`RepositoryRole` (This is the actor type, the following are the base repository roles and their associated IDs.)
0 commit comments