Skip to content

Commit e2b56cd

Browse files
committed
Add Prow configuration for kubernetes/contributor-site Call for Help
Add approve plugin and trigger configuration for the Call for Help workflow. Also add labels for call-for-help, sig-contribex-nco, and call-for-help-approved. Add periodic job for Community Resilience Lottery Factor data update. This enables the Community Resilience Dashboard feature where SIGs can request assistance and get approved by SIG leads.
1 parent d299b4a commit e2b56cd

2 files changed

Lines changed: 54 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
periodics:
2+
- name: pull-contributor-site-lottery-factor
3+
cluster: eks-prow-build-cluster
4+
annotations:
5+
testgrid-dashboards: sig-contribex-contributor-website
6+
testgrid-tab-name: pull-contributor-site-lottery-factor
7+
decorate: true
8+
extra_refs:
9+
- repo: kubernetes/contributor-site
10+
base_ref: master
11+
spec:
12+
containers:
13+
- image: us-docker.pkg.dev/k8s-infra-prow/images/build/go-runner:v2.1.1
14+
command:
15+
- /bin/bash
16+
- -c
17+
- |
18+
set -e
19+
cd hack
20+
go mod init hack || true
21+
go mod tidy
22+
go run gen-lottery-factor.go
23+
env:
24+
- name: GITHUB_TOKEN
25+
valueFrom:
26+
secretKeyRef:
27+
name: github-token
28+
key: token
29+
resources:
30+
limits:
31+
cpu: "2"
32+
memory: 2Gi
33+
requests:
34+
cpu: "1"
35+
memory: 1Gi
36+
cron: "0 0 * * 1" # Every Monday at midnight UTC
37+
labels:
38+
preset-dind-enabled: "true"

config/prow/plugins.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ approve:
6464
- repos:
6565
- kubernetes/cluster-registry
6666
- kubernetes/contrib
67+
- kubernetes/contributor-site
6768
- kubernetes/dashboard
6869
- kubernetes/dns
6970
- kubernetes/examples
@@ -155,6 +156,17 @@ approve:
155156
lgtm_acts_as_approve: false
156157
ignore_review_state: true
157158

159+
trigger:
160+
- repos:
161+
- kubernetes/contributor-site
162+
events:
163+
- issue_comment
164+
- issues
165+
require_approval: true
166+
approval_restriction: >-
167+
approve from approvers in OWNERS file or
168+
sig-contributor-experience-leads
169+
158170
help:
159171
help_guidelines_url: https://www.kubernetes.dev/docs/guide/help-wanted/
160172
help_guidelines_summary: |
@@ -188,6 +200,10 @@ label:
188200
- ci-short
189201
- ci-extended
190202
- ci-full
203+
# Call for Help labels for kubernetes/contributor-site
204+
- call-for-help
205+
- sig-contribex-nco
206+
- call-for-help-approved
191207

192208
restricted_labels:
193209
kubernetes/kubernetes:

0 commit comments

Comments
 (0)