From 70ae50239367600bca23954226f99e5461f23144 Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Mon, 8 Jul 2024 08:13:57 -0300 Subject: [PATCH] Do not manage branches (#246) --- terraform-scripts/quarkus-config-extensions.tf | 12 ------------ terraform-scripts/quarkus-cucumber.tf | 12 ------------ terraform-scripts/quarkus-cxf.tf | 6 ------ terraform-scripts/quarkus-jgit.tf | 12 ------------ terraform-scripts/quarkus-jsch.tf | 12 ------------ 5 files changed, 54 deletions(-) diff --git a/terraform-scripts/quarkus-config-extensions.tf b/terraform-scripts/quarkus-config-extensions.tf index 8267f1b..e3f251e 100644 --- a/terraform-scripts/quarkus-config-extensions.tf +++ b/terraform-scripts/quarkus-config-extensions.tf @@ -33,18 +33,6 @@ resource "github_team_membership" "quarkus_config_extensions" { role = "maintainer" } -# Create main branch -resource "github_branch" "quarkus_config_extensions" { - repository = github_repository.quarkus_config_extensions.name - branch = "main" -} - -# Set default branch -resource "github_branch_default" "quarkus_config_extensions" { - repository = github_repository.quarkus_config_extensions.name - branch = github_branch.quarkus_config_extensions.branch -} - # Add admin users resource "github_repository_collaborator" "quarkus_config_extensions" { for_each = { for tm in ["radcortez"] : tm => tm } diff --git a/terraform-scripts/quarkus-cucumber.tf b/terraform-scripts/quarkus-cucumber.tf index 1f3f5c5..9f7026a 100644 --- a/terraform-scripts/quarkus-cucumber.tf +++ b/terraform-scripts/quarkus-cucumber.tf @@ -32,15 +32,3 @@ resource "github_team_membership" "quarkus_cucumber" { username = each.value role = "maintainer" } - -# Create main branch -resource "github_branch" "quarkus_cucumber" { - repository = github_repository.quarkus_cucumber.name - branch = "main" -} - -# Set default branch -resource "github_branch_default" "quarkus_cucumber" { - repository = github_repository.quarkus_cucumber.name - branch = github_branch.quarkus_cucumber.branch -} diff --git a/terraform-scripts/quarkus-cxf.tf b/terraform-scripts/quarkus-cxf.tf index 1934183..b935dc1 100644 --- a/terraform-scripts/quarkus-cxf.tf +++ b/terraform-scripts/quarkus-cxf.tf @@ -43,12 +43,6 @@ resource "github_team_membership" "quarkus_cxf" { role = "maintainer" } -# Set default branch -resource "github_branch_default" "quarkus_cxf" { - repository = github_repository.quarkus_cxf.name - branch = "main" -} - # Enable apps in repository resource "github_app_installation_repository" "quarkus_cxf" { for_each = { for app in [local.applications.lgtm, local.applications.renovate] : app => app } diff --git a/terraform-scripts/quarkus-jgit.tf b/terraform-scripts/quarkus-jgit.tf index dfaea4a..59d9b33 100644 --- a/terraform-scripts/quarkus-jgit.tf +++ b/terraform-scripts/quarkus-jgit.tf @@ -33,15 +33,3 @@ resource "github_team_membership" "quarkus_jgit" { username = each.value role = "maintainer" } - -# Create main branch -resource "github_branch" "quarkus_jgit" { - repository = github_repository.quarkus_jgit.name - branch = "main" -} - -# Set main branch as default -resource "github_branch_default" "quarkus_jgit" { - repository = github_repository.quarkus_jgit.name - branch = github_branch.quarkus_jgit.branch -} diff --git a/terraform-scripts/quarkus-jsch.tf b/terraform-scripts/quarkus-jsch.tf index 418c0c5..b075991 100644 --- a/terraform-scripts/quarkus-jsch.tf +++ b/terraform-scripts/quarkus-jsch.tf @@ -33,15 +33,3 @@ resource "github_team_membership" "quarkus_jsch" { username = each.value role = "maintainer" } - -# Create main branch -resource "github_branch" "quarkus_jsch" { - repository = github_repository.quarkus_jsch.name - branch = "main" -} - -# Set main branch as default -resource "github_branch_default" "quarkus_jsch" { - repository = github_repository.quarkus_jsch.name - branch = github_branch.quarkus_jsch.branch -}