Skip to content
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

Fix required workflows for organization rulesets #2253

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

Conversation

o-sama
Copy link
Contributor

@o-sama o-sama commented May 4, 2024

Resolves #2113


Before the change?

  • When you apply the Terraform plan, you have the following: "required_workflows": [] in state. This happens because there was no code that flattens this specific rule.

After the change?

  • Added the required code to flatten this rule when flattening the ruleset's rules. When you apply the Terraform plan, you have the following in state if successful:
                "required_workflows": [
                  {
                    "required_workflow": [
                      {
                        "path": "<PATH>",
                        "ref": "<REF>",
                        "repository_id": <REPO_ID>
                      }
                    ]
                  }
                ]

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
1 participant