+
Skip to content

A add main branch all-repository ruleset #14

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

Merged
merged 1 commit into from
Jul 4, 2025

Conversation

bruzina
Copy link
Contributor

@bruzina bruzina commented Jul 4, 2025

No description provided.

@bruzina bruzina self-assigned this Jul 4, 2025
Copy link

github-actions bot commented Jul 4, 2025

Terraform Initialization ⚙️success

Terraform Plan 📖success

Show Plan

terraform
Acquiring state lock. This may take a few moments...
github_repository.repo["hetzner-iac-cac"]: Refreshing state... [id=hetzner-iac-cac]
github_repository.repo["infra"]: Refreshing state... [id=infra]
github_repository.repo["github-organization-as-code"]: Refreshing state... [id=github-organization-as-code]
github_repository.repo[".github"]: Refreshing state... [id=.github]
github_repository.repo["github-actions-and-workflows"]: Refreshing state... [id=github-actions-and-workflows]
github_repository.repo["ansible-collection"]: Refreshing state... [id=ansible-collection]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # github_repository_ruleset.all_repositories[".github/main_branch"] will be created
  + resource "github_repository_ruleset" "all_repositories" {
      + enforcement = "active"
      + etag        = (known after apply)
      + id          = (known after apply)
      + name        = "Main Branch"
      + node_id     = (known after apply)
      + repository  = ".github"
      + ruleset_id  = (known after apply)
      + target      = "branch"

      + conditions {
          + ref_name {
              + exclude = []
              + include = [
                  + "~DEFAULT_BRANCH",
                ]
            }
        }

      + rules {
          + creation                      = true
          + deletion                      = true
          + required_linear_history       = true
          + required_signatures           = true
          + update                        = true
          + update_allows_fetch_and_merge = false

          + pull_request {
              + dismiss_stale_reviews_on_push     = false
              + require_code_owner_review         = false
              + require_last_push_approval        = false
              + required_approving_review_count   = 0
              + required_review_thread_resolution = false
            }
        }
    }

  # github_repository_ruleset.all_repositories["ansible-collection/main_branch"] will be created
  + resource "github_repository_ruleset" "all_repositories" {
      + enforcement = "active"
      + etag        = (known after apply)
      + id          = (known after apply)
      + name        = "Main Branch"
      + node_id     = (known after apply)
      + repository  = "ansible-collection"
      + ruleset_id  = (known after apply)
      + target      = "branch"

      + conditions {
          + ref_name {
              + exclude = []
              + include = [
                  + "~DEFAULT_BRANCH",
                ]
            }
        }

      + rules {
          + creation                      = true
          + deletion                      = true
          + required_linear_history       = true
          + required_signatures           = true
          + update                        = true
          + update_allows_fetch_and_merge = false

          + pull_request {
              + dismiss_stale_reviews_on_push     = false
              + require_code_owner_review         = false
              + require_last_push_approval        = false
              + required_approving_review_count   = 0
              + required_review_thread_resolution = false
            }
        }
    }

  # github_repository_ruleset.all_repositories["github-actions-and-workflows/main_branch"] will be created
  + resource "github_repository_ruleset" "all_repositories" {
      + enforcement = "active"
      + etag        = (known after apply)
      + id          = (known after apply)
      + name        = "Main Branch"
      + node_id     = (known after apply)
      + repository  = "github-actions-and-workflows"
      + ruleset_id  = (known after apply)
      + target      = "branch"

      + conditions {
          + ref_name {
              + exclude = []
              + include = [
                  + "~DEFAULT_BRANCH",
                ]
            }
        }

      + rules {
          + creation                      = true
          + deletion                      = true
          + required_linear_history       = true
          + required_signatures           = true
          + update                        = true
          + update_allows_fetch_and_merge = false

          + pull_request {
              + dismiss_stale_reviews_on_push     = false
              + require_code_owner_review         = false
              + require_last_push_approval        = false
              + required_approving_review_count   = 0
              + required_review_thread_resolution = false
            }
        }
    }

  # github_repository_ruleset.all_repositories["github-organization-as-code/main_branch"] will be created
  + resource "github_repository_ruleset" "all_repositories" {
      + enforcement = "active"
      + etag        = (known after apply)
      + id          = (known after apply)
      + name        = "Main Branch"
      + node_id     = (known after apply)
      + repository  = "github-organization-as-code"
      + ruleset_id  = (known after apply)
      + target      = "branch"

      + conditions {
          + ref_name {
              + exclude = []
              + include = [
                  + "~DEFAULT_BRANCH",
                ]
            }
        }

      + rules {
          + creation                      = true
          + deletion                      = true
          + required_linear_history       = true
          + required_signatures           = true
          + update                        = true
          + update_allows_fetch_and_merge = false

          + pull_request {
              + dismiss_stale_reviews_on_push     = false
              + require_code_owner_review         = false
              + require_last_push_approval        = false
              + required_approving_review_count   = 0
              + required_review_thread_resolution = false
            }
        }
    }

  # github_repository_ruleset.all_repositories["hetzner-iac-cac/main_branch"] will be created
  + resource "github_repository_ruleset" "all_repositories" {
      + enforcement = "active"
      + etag        = (known after apply)
      + id          = (known after apply)
      + name        = "Main Branch"
      + node_id     = (known after apply)
      + repository  = "hetzner-iac-cac"
      + ruleset_id  = (known after apply)
      + target      = "branch"

      + conditions {
          + ref_name {
              + exclude = []
              + include = [
                  + "~DEFAULT_BRANCH",
                ]
            }
        }

      + rules {
          + creation                      = true
          + deletion                      = true
          + required_linear_history       = true
          + required_signatures           = true
          + update                        = true
          + update_allows_fetch_and_merge = false

          + pull_request {
              + dismiss_stale_reviews_on_push     = false
              + require_code_owner_review         = false
              + require_last_push_approval        = false
              + required_approving_review_count   = 0
              + required_review_thread_resolution = false
            }
        }
    }

  # github_repository_ruleset.all_repositories["infra/main_branch"] will be created
  + resource "github_repository_ruleset" "all_repositories" {
      + enforcement = "active"
      + etag        = (known after apply)
      + id          = (known after apply)
      + name        = "Main Branch"
      + node_id     = (known after apply)
      + repository  = "infra"
      + ruleset_id  = (known after apply)
      + target      = "branch"

      + conditions {
          + ref_name {
              + exclude = []
              + include = [
                  + "~DEFAULT_BRANCH",
                ]
            }
        }

      + rules {
          + creation                      = true
          + deletion                      = true
          + required_linear_history       = true
          + required_signatures           = true
          + update                        = true
          + update_allows_fetch_and_merge = false

          + pull_request {
              + dismiss_stale_reviews_on_push     = false
              + require_code_owner_review         = false
              + require_last_push_approval        = false
              + required_approving_review_count   = 0
              + required_review_thread_resolution = false
            }
        }
    }

Plan: 6 to add, 0 to change, 0 to destroy.

─────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.
Releasing state lock. This may take a few moments...

*Pushed by: @bruzina, Action: `pull_request`*

@bruzina bruzina merged commit ee1c579 into main Jul 4, 2025
1 check passed
@bruzina bruzina deleted the feature/main-branch-ruleset branch July 4, 2025 16:23
Copy link

🎉 This PR is included in version 0.9.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载