File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,11 @@ func TestOrganizationsService_CreateRepositoryRuleset_RepoNames(t *testing.T) {
130
130
{
131
131
"actor_id": 234,
132
132
"actor_type": "Team"
133
+ },
134
+ {
135
+ "actor_id": 345,
136
+ "actor_type": "Team",
137
+ "bypass_mode": "exempt"
133
138
}
134
139
],
135
140
"conditions": {
@@ -274,6 +279,11 @@ func TestOrganizationsService_CreateRepositoryRuleset_RepoNames(t *testing.T) {
274
279
ActorID : Ptr (int64 (234 )),
275
280
ActorType : Ptr (BypassActorTypeTeam ),
276
281
},
282
+ {
283
+ ActorID : Ptr (int64 (345 )),
284
+ ActorType : Ptr (BypassActorTypeTeam ),
285
+ BypassMode : Ptr (BypassModeExempt ),
286
+ },
277
287
},
278
288
Conditions : & RepositoryRulesetConditions {
279
289
RefName : & RepositoryRulesetRefConditionParameters {
@@ -371,6 +381,11 @@ func TestOrganizationsService_CreateRepositoryRuleset_RepoNames(t *testing.T) {
371
381
ActorID : Ptr (int64 (234 )),
372
382
ActorType : Ptr (BypassActorTypeTeam ),
373
383
},
384
+ {
385
+ ActorID : Ptr (int64 (345 )),
386
+ ActorType : Ptr (BypassActorTypeTeam ),
387
+ BypassMode : Ptr (BypassModeExempt ),
388
+ },
374
389
},
375
390
Conditions : & RepositoryRulesetConditions {
376
391
RefName : & RepositoryRulesetRefConditionParameters {
Original file line number Diff line number Diff line change @@ -58,8 +58,9 @@ type BypassMode string
58
58
// This is the set of GitHub ruleset bypass modes.
59
59
const (
60
60
BypassModeAlways BypassMode = "always"
61
- BypassModePullRequest BypassMode = "pull_request "
61
+ BypassModeExempt BypassMode = "exempt "
62
62
BypassModeNever BypassMode = "never"
63
+ BypassModePullRequest BypassMode = "pull_request"
63
64
)
64
65
65
66
// RepositoryRuleType represents a GitHub ruleset rule type.
You can’t perform that action at this time.
0 commit comments