forked from grafana/helm-charts
-
Notifications
You must be signed in to change notification settings - Fork 45
56 lines (51 loc) · 1.81 KB
/
issue-triage.yaml
File metadata and controls
56 lines (51 loc) · 1.81 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Issue Triage
permissions: {}
on:
issues:
types:
- opened
- edited
jobs:
label-and-assign:
runs-on: ubuntu-24.04
permissions:
contents: read
issues: write
steps:
- name: Checkout Code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Parse issue form
if: contains(github.event.issue.labels.*.name, 'bug') || contains(github.event.issue.labels.*.name, 'enhancement')
uses: stefanbuck/github-issue-parser@10dcc54158ba4c137713d9d69d70a2da63b6bda3 # v3.2.3
id: issue-parser
with:
template-path: >-
.github/ISSUE_TEMPLATE/${{
contains(github.event.issue.labels.*.name, 'bug')
&& 'bug_report.yml' || 'feature_request.yml'
}}
- name: Create chart labels
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
for chart in $(find charts/ -mindepth 1 -maxdepth 1 -type d -printf '%f\n' | sort); do
gh label create "chart/${chart}" \
--color ec6d13 \
--description "Issues related to the ${chart} Helm Chart" \
--force
done
- name: Label issue by chart name
if: steps.issue-parser.outputs.jsonString
uses: redhat-plumbers-in-action/advanced-issue-labeler@b80ae64e3e156e9c111b075bfa04b295d54e8e2e # v3.2.4
with:
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
template: >-
${{
contains(github.event.issue.labels.*.name, 'bug')
&& 'bug_report.yml' || 'feature_request.yml'
}}
section: chart-name
config-path: .github/advanced-issue-labeler.yml
token: ${{ github.token }}