-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (44 loc) · 1.46 KB
/
Copy pathissue-handler.yml
File metadata and controls
48 lines (44 loc) · 1.46 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
name: Issue Handler
on:
issues:
types: [opened, edited, reopened]
schedule:
- cron: '0 3 * * *'
workflow_dispatch:
permissions:
contents: read
issues: write
jobs:
triage:
if: github.event_name == 'issues'
runs-on: ubuntu-latest
steps:
- uses: github/issue-labeler@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/issue-labeler.yml
- if: github.event.action == 'opened'
uses: peter-evans/assign-issue@v3
with:
issue-number: ${{ github.event.issue.number }}
assignees: ${{ github.actor }}
- if: github.event.action == 'opened'
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.issue.number }}
body: |
Thanks for opening this issue! We will take a look soon.
Please add any extra details or logs that might help.
stale:
if: github.event_name != 'issues'
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v10
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 30
days-before-close: 7
stale-issue-label: stale
stale-issue-message: 'This issue has been inactive for 30 days. If this is still relevant, please add a comment.'
close-issue-message: 'Closing due to inactivity. Feel free to reopen with more details.'
exempt-issue-labels: 'pinned,security'