forked from NA-MIC/ProjectWeek
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 874 Bytes
/
Copy pathissue-labeler.yml
File metadata and controls
36 lines (29 loc) · 874 Bytes
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
name: Issue labeler
on:
issues:
types: [ opened ]
permissions:
contents: read
jobs:
label-component:
if: contains(github.event.issue.labels.*.name, 'project')
runs-on: ubuntu-latest
permissions:
# required for all workflows
issues: write
steps:
- uses: actions/checkout@v3
- name: Parse issue form
uses: stefanbuck/github-issue-parser@v3
id: issue-parser
with:
template-path: .github/ISSUE_TEMPLATE/project.yml
- name: Set labels based on draft status field
uses: redhat-plumbers-in-action/advanced-issue-labeler@v2
with:
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
section: draft-status
block-list: |
None
Other
token: ${{ secrets.GITHUB_TOKEN }}