This repository has been archived by the owner on Feb 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
54 lines (48 loc) · 1.7 KB
/
labels-refine.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# This is a basic workflow to help you get started with Actions
name: K3ai Triage Labeling Workflow
on:
issue_comment:
types: [created]
env:
MY_GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
jobs:
add_ena_label:
# Now we add a basic label called "needs-triage" to the issue and move on
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.comment.body, '/ena') }}
with:
github_token: ${{ secrets.MY_GITHUB_TOKEN }}
labels: ena
add_bug_label:
# Now we add a basic label called "needs-triage" to the issue and move on
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.comment.body, '/bug') }}
with:
github_token: ${{ secrets.MY_GITHUB_TOKEN }}
labels: bug
add_question_label:
# Now we add a basic label called "needs-triage" to the issue and move on
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.comment.body, '/question') }}
with:
github_token: ${{ secrets.MY_GITHUB_TOKEN }}
labels: question
add_docs_label:
# Now we add a basic label called "needs-triage" to the issue and move on
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.comment.body, '/docs') }}
with:
github_token: ${{ secrets.MY_GITHUB_TOKEN }}
labels: documentation