Skip to content

feat/fix: Add missing do_not_enforce_on_create parameter to required rules #2659

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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

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.

2 participants