Skip to content

Commit

Permalink
Do not manage branches (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi authored Jul 8, 2024
1 parent 099adb9 commit 70ae502
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 54 deletions.
12 changes: 0 additions & 12 deletions terraform-scripts/quarkus-config-extensions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
12 changes: 0 additions & 12 deletions terraform-scripts/quarkus-cucumber.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
6 changes: 0 additions & 6 deletions terraform-scripts/quarkus-cxf.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
12 changes: 0 additions & 12 deletions terraform-scripts/quarkus-jgit.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
12 changes: 0 additions & 12 deletions terraform-scripts/quarkus-jsch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 70ae502

Please sign in to comment.