Skip to content

Commit

Permalink
Add mono repo push allowances, fixes #85
Browse files Browse the repository at this point in the history
  • Loading branch information
sprankhub committed Jun 9, 2024
1 parent 2b26852 commit ea3a4d0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ resource "github_branch_protection" "repositories" {
github_team.teams["tech-lead"].node_id,
]
}

restrict_pushes {
push_allowances = try(each.value.mono_repository, false) ? [data.github_user.mage-os-ci.node_id] : []
}
}

resource "github_branch_default" "repositories" {
Expand Down
21 changes: 12 additions & 9 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -328,21 +328,24 @@ variable "repositories" {
}

mageos-async-events-aws = {
description = "This module provides events integrations to AWS."
teams = ["distribution", "async-events"]
topics = ["mage-os", "magento", "ecommerce", "magento2", "adobecommerce", "aws"]
description = "This module provides events integrations to AWS."
teams = ["distribution", "async-events"]
topics = ["mage-os", "magento", "ecommerce", "magento2", "adobecommerce", "aws"]
mono_repository = true
}

mageos-async-events-azure = {
description = "This module provides events integrations to Azure."
teams = ["distribution", "async-events"]
topics = ["mage-os", "magento", "ecommerce", "magento2", "adobecommerce", "azure"]
description = "This module provides events integrations to Azure."
teams = ["distribution", "async-events"]
topics = ["mage-os", "magento", "ecommerce", "magento2", "adobecommerce", "azure"]
mono_repository = true
}

mageos-async-events-gcp = {
description = "This module provides events integrations to GCP."
teams = ["distribution", "async-events"]
topics = ["mage-os", "magento", "ecommerce", "magento2", "adobecommerce", "gcp"]
description = "This module provides events integrations to GCP."
teams = ["distribution", "async-events"]
topics = ["mage-os", "magento", "ecommerce", "magento2", "adobecommerce", "gcp"]
mono_repository = true
}

mageos-async-events-admin-ui = {
Expand Down

0 comments on commit ea3a4d0

Please sign in to comment.