-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (35 loc) · 1.2 KB
/
github-actions-issue-labeler.yml
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
name: Issue Labeler
on:
issues:
types: [ opened ]
jobs:
label-issue-type:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
- name: Parse issue form
uses: stefanbuck/github-issue-praser@v2
id: issue-parser
with:
template-path: .github/ISSUE_TEMPLATE/UPDATED-BUG-FORM.yml
- name: Set labels based on issue_type field
uses: redhat-plumbers-in-action/advanced-issue-labeler@v1
with:
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
section: issue_type
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set labels based on priority field
uses: redhat-plumbers-in-action/advanced-issue-labeler@v1
with:
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
section: priority
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set labels based on components
uses: redhat-plumbers-in-action/advanced-issue-labeler@v1
with:
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
section: components
token: ${{ secrets.GITHUB_TOKEN }}