Skip to content

Conversation

oscarbc96
Copy link

@oscarbc96 oscarbc96 commented May 13, 2025

Resolves #ISSUE_NUMBER

Discoveted while implementing: #2658


Before the change?

The do_not_enforce_on_create parameter was not implemented for the required_status_checks and required_workflows blocks in either the github_organization_ruleset or github_repository_ruleset resources. Although this option was documented in the github_repository_ruleset resource (reference), it was not actually supported by the provider implementation.

Tests are already implemented:

After the change?

This PR implements support for the do_not_enforce_on_create parameter in:

  • required_status_checks
  • required_workflows

for the github_organization_ruleset and github_repository_ruleset resource. It also ensures that the documentation reflects this capability, aligning the implementation with the existing documentation.

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?

Please see our docs on breaking changes to help!

  • Yes
  • No

@Ali-Dalal
Copy link

Hello,
can this PR be merged?
thanks

@starhawking
Copy link
Contributor

+1 I just ran into this issue as well

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.

4 participants