-
-
Notifications
You must be signed in to change notification settings - Fork 44
42 lines (38 loc) · 1.16 KB
/
process-issue.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
name: process issues
on:
issues:
types: [opened]
jobs:
comment:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v4
with:
github-token: ${{secrets.SCRIPTINGTOKEN}}
script: |
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: ":thumbsup: Thank you for reporting this issue"
})
apply-label:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v4
with:
script: |
github.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['needs-classification']
})
# auto-assign:
# runs-on: ubuntu-latest
# steps:
# - name: 'Auto-assign issue'
# uses: pozil/auto-assign-issue@v1
# with:
# repo-token: ${{ secrets.SCRIPTINGTOKEN }}
# assignees: ${{ secrets.DEFAULT_ISSUE_ASSIGNEE }}