Skip to content

Conversation

joshhunt
Copy link

@joshhunt joshhunt commented Sep 30, 2025

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?

  • bypass_mode exempt is now supported!

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

  • Yes
  • No (I don't think so)

@krische
Copy link

krische commented Oct 2, 2025

Maybe don't replace the * with - in the markdown files? It makes it look like there are a lot more changes than there really are.

@joshhunt
Copy link
Author

joshhunt commented Oct 3, 2025

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`.",
Copy link

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:

Suggested change
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`.",
Copy link

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:

Suggested change
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`.",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT]: github_repository_ruleset - support bypass_mode "exempt"

3 participants