Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions modules/common_repository/main.tf
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
resource "github_repository" "repo" {
name = var.name
archived = var.archived
visibility = var.visibility
description = var.description
auto_init = true
allow_auto_merge = var.visibility == "private" ? false : true
allow_merge_commit = var.allow_merge_commit
allow_squash_merge = var.allow_squash_merge
allow_rebase_merge = var.allow_rebase_merge
name = var.name
archived = var.archived
visibility = var.visibility
description = var.description
auto_init = true
allow_auto_merge = var.visibility == "private" ? false : true
allow_merge_commit = var.allow_merge_commit
allow_squash_merge = var.allow_squash_merge
allow_rebase_merge = var.allow_rebase_merge
squash_merge_commit_title = "PR_TITLE"
squash_merge_commit_message = "PR_BODY"
has_issues = true
has_downloads = false
has_projects = false
has_wiki = false
is_template = var.is_template
vulnerability_alerts = var.vulnerability_alerts
has_issues = true
has_downloads = false
has_projects = false
has_wiki = false
is_template = var.is_template
vulnerability_alerts = var.vulnerability_alerts

dynamic "template" {
# Use the public_template repository as a template unless the repository is
Expand Down
18 changes: 18 additions & 0 deletions repositories.tf
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ module "repo_osac" {
{
team_id = "infrastructure"
permission = "push"
},
{
team_id = "wg-osac-storage"
permission = "push"
}
]
# Prow plugins handle approval via OWNERS (lgtm/approved labels), not native
Expand Down Expand Up @@ -329,6 +333,12 @@ module "repo_enhancement_proposals" {
{ context = "pre-commit", integration_id = 15368 },
]
ruleset_bypass_team_ids = [github_team.all["wg-infra"].id]
teams = [
{
team_id = "wg-osac-storage"
permission = "push"
}
]
}

module "repo_osac_test_infra" {
Expand All @@ -348,6 +358,10 @@ module "repo_osac_test_infra" {
{
team_id = "infrastructure"
permission = "push"
},
{
team_id = "wg-osac-storage"
permission = "push"
}
]
required_approvals = null
Expand Down Expand Up @@ -403,6 +417,10 @@ module "repo_osac_ui" {
{
team_id = "fulfillment-wg"
permission = "push"
},
{
team_id = "wg-osac-storage"
permission = "push"
}
]
}
Expand Down
1 change: 1 addition & 0 deletions team-members/wg-osac-storage.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ username,role
akshaynadkarni,maintainer
avishayt,member
DanNiESh,member
ElayAharoni,member
rgolangh,member
ronniel1,member
wgordon17,member
Expand Down
Loading