-
Notifications
You must be signed in to change notification settings - Fork 860
Add support for 'exempt' github_repository_ruleset bypass_mode #2764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Maybe don't replace the |
Ahh, thanks for catching that @krische. My IDE auto-formatted the markdown upon save and I didn't catch it 😅 |
Required: true, | ||
ValidateFunc: validation.StringInSlice([]string{"always", "pull_request"}, false), | ||
ValidateFunc: validation.StringInSlice([]string{"always", "pull_request", "exempt"}, false), | ||
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`.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the description needs to be updated too:
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`.", | |
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`, `exempt`.", |
Required: true, | ||
ValidateFunc: validation.StringInSlice([]string{"always", "pull_request"}, false), | ||
ValidateFunc: validation.StringInSlice([]string{"always", "pull_request", "exempt"}, false), | ||
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`.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the description needs to be updated too:
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`.", | |
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`, `exempt`.", |
Resolves #2755
I'm not familiar with terraform provider development, so I'm not sure if there's anything else I'm missing, but this looked right to me.
Before the change?
After the change?
Pull request checklist
Does this introduce a breaking change?