Skip to content
Merged
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
15 changes: 15 additions & 0 deletions modules/common_repository/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,21 @@ resource "github_branch_protection" "repo_protection" {
}
}

# Prow's tide derives its merge-gating required contexts only from this
# (classic) branch-protection API, not from rulesets (pkg/config/tide.go:
# FromBranchProtection reads bp.RequiredStatusChecks). This field was
# never set here, so tide merged on labels alone, blind to e2e status.
# Mirror the same contexts already enforced by the ruleset below, from
# the same var.required_status_checks, so there's one list to maintain.
dynamic "required_status_checks" {
for_each = length(var.required_status_checks) > 0 ? [1] : []

content {
strict = true
contexts = [for check in var.required_status_checks : check.context]
}
}

depends_on = [github_repository.repo, github_repository_collaborators.repo_collaborators]
}

Expand Down
Loading