ci: introducing cncf/prow-github-actions (#3536)

Signed-off-by: Jan Larwig <jan@larwig.com>
This commit is contained in:
Jan Larwig
2026-09-24 08:18:51 +02:00
committed by GitHub
parent 6420aae790
commit 4238ee1b32
16 changed files with 505 additions and 214 deletions
+20
View File
@@ -0,0 +1,20 @@
name: Sync Prow Labels
on:
workflow_dispatch:
push:
branches: [master]
paths: [.github/prow.yaml]
permissions:
contents: read
issues: write
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: oauth2-proxy/prow-github-actions@c5ba2c6994ab70e129b5d028ba885f02ba44db65 # main
with:
jobs: label-sync
github-token: ${{ secrets.GITHUB_TOKEN }}
+50
View File
@@ -0,0 +1,50 @@
name: Prow
on:
issue_comment:
types: [created]
issues:
types: [opened, reopened, labeled, unlabeled]
pull_request_target:
types: [opened, reopened, synchronize, ready_for_review, labeled, unlabeled]
permissions:
contents: read
issues: write
pull-requests: write
jobs:
public-commands:
if: github.event_name == 'issue_comment'
runs-on: ubuntu-latest
steps:
- uses: oauth2-proxy/prow-github-actions@c5ba2c6994ab70e129b5d028ba885f02ba44db65 # main
with:
prow-commands: /assign /unassign /area /kind /provider /help
github-token: ${{ secrets.GITHUB_TOKEN }}
review-commands:
if: github.event_name == 'issue_comment' && github.event.issue.pull_request != null
runs-on: ubuntu-latest
steps:
- uses: oauth2-proxy/prow-github-actions@c5ba2c6994ab70e129b5d028ba885f02ba44db65 # main
with:
prow-commands: /lgtm
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-label-requirements:
if: github.event_name == 'issues'
runs-on: ubuntu-latest
steps:
- uses: oauth2-proxy/prow-github-actions@c5ba2c6994ab70e129b5d028ba885f02ba44db65 # main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
pull-request-labels:
if: github.event_name == 'pull_request_target'
runs-on: ubuntu-latest
steps:
- uses: oauth2-proxy/prow-github-actions@c5ba2c6994ab70e129b5d028ba885f02ba44db65 # main
with:
jobs: lgtm
github-token: ${{ secrets.GITHUB_TOKEN }}
+2
View File
@@ -15,6 +15,8 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 180
days-before-close: 14
stale-issue-label: lifecycle/stale
stale-pr-label: lifecycle/stale
stale-issue-message: 'This issue has been inactive for 180 days. If the issue is still relevant please comment to re-activate the issue. If no action is taken within 14 days, the issue will be marked closed.'
stale-pr-message: 'This pull request has been inactive for 180 days. If the pull request is still relevant please comment to re-activate the pull request. If no action is taken within 14 days, the pull request will be marked closed.'
exempt-issue-labels: bug,high-priority