Skip to content

Add missed parameter to the github_organization_ruleset #2545

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 2 commits into
base: main
Choose a base branch
from

Conversation

yurii-kysel
Copy link

Resolves #2542


Before the change?

  • No parameter in github_organization_ruleset that cause an error, as it's required in respository_rules_utils.expandRules

After the change?

  • The parameter is added to the github_organization_ruleset with the default value

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

@psalaberria002
Copy link

It would be nice to have this merged. Can someone review it?

@nickfloyd nickfloyd moved this from 🆕 Triage to 👀 In review in 🧰 Octokit Active Feb 27, 2025
@awendt
Copy link

awendt commented Mar 17, 2025

@kfcampbell Can we please get this fix merged and released?

@adan-babbel
Copy link

Hi @kfcampbell can you please review and merge this?

@grimm26
Copy link

grimm26 commented Apr 3, 2025

@yurii-kysel Should probably also update https://github.com/integrations/terraform-provider-github/blob/main/website/docs/r/organization_ruleset.html.markdown in this PR, too

@CpuID
Copy link

CpuID commented Apr 28, 2025

fairly sure this PR fixes #2597 - would be great to have it approved/merged :)

@CpuID
Copy link

CpuID commented Apr 28, 2025

oh and #2542 would get closed out too (already linked)

@@ -261,6 +261,12 @@ func resourceGithubOrganizationRuleset() *schema.Resource {
Optional: true,
Description: "Whether pull requests targeting a matching branch must be tested with the latest code. This setting will not take effect unless at least one status check is enabled. Defaults to `false`.",
},
"do_not_enforce_on_create": {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We actually also need it on the required_workflows struct too

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.

[BUG]: github provider 6.5.0 is failing on updating github_organization_ruleset
7 participants