Repository navigation
40 lines (36 loc) · 2.04 KB
/
Copy pathmoderate-setup.yml
File metadata and controls
40 lines (36 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# One-time (idempotent) label bootstrap for the issue-moderation pipeline
# -- see ../workflows/README.md's "Issue moderation" section for the
# design. Run manually
# after adding the ANTHROPIC_API_KEY secret; safe to re-run any time (each
# label is created or left alone, never removed).
name: Moderate setup
on:
workflow_dispatch:
permissions:
issues: write
jobs:
labels:
# renovate: datasource=github-runners depName=ubuntu
runs-on: ${{ vars.CI_RUNNER || 'ubuntu-24.04' }}
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Create moderation labels
run: |
create() {
gh label create "$1" --color "$2" --description "$3" --force
}
create "bug:needs-info" "d4c5f9" "Bug triage needs more information from the reporter"
create "bug:repro-ready" "d4c5f9" "Bug triage pushed a failing-test repro, awaiting a maintainer's bug:confirm label"
create "bug:confirm" "d4c5f9" "Maintainer action: confirm the repro and start the fix (removed when the fix run starts)"
create "bug:fixed" "d4c5f9" "Fix PR opened, awaiting human review/merge"
create "enhancement:not-a-fit" "c5def5" "Feature triage judged this out of scope"
create "enhancement:plan-ready" "c5def5" "Feature triage pushed a plan doc, awaiting a maintainer's enhancement:confirm label"
create "enhancement:confirm" "c5def5" "Maintainer action: confirm the plan and start the build (removed when the build run starts)"
create "enhancement:built" "c5def5" "Build PR opened, awaiting human review/merge"
create "claude:ok" "0e8a16" "Maintainer opt-in: moderate this issue although the reporter is not a collaborator"
create "needs-human" "b60205" "The moderation pipeline got stuck and needs a maintainer"