Skip to content

Commit 37044e8

Browse files
committed
Add 'exempt' bypass type
1 parent 9fceeda commit 37044e8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

github/resource_github_organization_ruleset.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func resourceGithubOrganizationRuleset() *schema.Resource {
6464
"bypass_mode": {
6565
Type: schema.TypeString,
6666
Required: true,
67-
ValidateFunc: validation.StringInSlice([]string{"always", "pull_request"}, false),
67+
ValidateFunc: validation.StringInSlice([]string{"always", "pull_request", "exempt"}, false),
6868
Description: "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`.",
6969
},
7070
},

github/resource_github_repository_ruleset.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func resourceGithubRepositoryRuleset() *schema.Resource {
6969
"bypass_mode": {
7070
Type: schema.TypeString,
7171
Required: true,
72-
ValidateFunc: validation.StringInSlice([]string{"always", "pull_request"}, false),
72+
ValidateFunc: validation.StringInSlice([]string{"always", "pull_request", "exempt"}, false),
7373
Description: "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`.",
7474
},
7575
}},

0 commit comments

Comments
 (0)