Skip to content

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

Closed
oscarbc96 wants to merge 1 commit intointegrations:mainfrom
oscarbc96:fix-do-not-enforce-on-create
Closed

feat/fix: Add missing do_not_enforce_on_create parameter to required rules#2659
oscarbc96 wants to merge 1 commit intointegrations:mainfrom
oscarbc96:fix-do-not-enforce-on-create

Conversation

@oscarbc96
Copy link
Copy Markdown

@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
Copy Markdown

Hello,
can this PR be merged?
thanks

@starhawking
Copy link
Copy Markdown
Contributor

+1 I just ran into this issue as well

@deiga
Copy link
Copy Markdown
Collaborator

deiga commented Dec 7, 2025

Duplicate of #2488 and resolved by it

@github-project-automation github-project-automation Bot moved this from 👀 In review to ✅ Done in 🧰 Octokit Active Dec 8, 2025
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.

8 participants