Skip to content

Commit ee2cd7a

Browse files
mnasiadkaAlex-Welsh
authored andcommitted
Add gate label
If a project approver adds a ,,gate'' label to the PR - Zuul will gate it and merge it.
1 parent 8e1ec55 commit ee2cd7a

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

terraform/github/repositories.tf

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ resource "github_issue_label" "automated_label" {
4848
description = "Automated action performed by GitHub Actions"
4949
}
5050

51-
resource "github_issue_label" "workflows_label" {
51+
resource "github_issue_label" "gate_label" {
5252
for_each = toset(flatten(values(var.repositories)))
5353
repository = each.value
54-
name = "workflows"
55-
color = "638475"
56-
description = "Workflow files have been modified"
54+
name = "gate"
55+
color = "5C55FB"
56+
description = "Zuul: Gate this patch"
5757
}
5858

5959
resource "github_issue_label" "community_files_label" {
@@ -84,3 +84,11 @@ data "github_repository" "repositories" {
8484
for_each = toset(flatten(values(var.repositories)))
8585
full_name = format("%s/%s", var.owner, each.value)
8686
}
87+
88+
resource "github_issue_label" "workflows_label" {
89+
for_each = toset(flatten(values(var.repositories)))
90+
repository = each.value
91+
name = "workflows"
92+
color = "638475"
93+
description = "Workflow files have been modified"
94+
}

0 commit comments

Comments
 (0)