Skip to content

Commit 34181cf

Browse files
committed
added triage automation
1 parent 7efc8c0 commit 34181cf

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

.github/workflows/closing-issues.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Closing Issues For Inactivity
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
7+
jobs:
8+
close-issues:
9+
if: github.repository == 'qwikifiers/qwik-ui'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: needs reproduction
13+
uses: actions-cool/issues-helper@v3
14+
with:
15+
actions: 'close-issues'
16+
token: ${{ secrets.GITHUB_TOKEN }}
17+
labels: 'STATUS-2: needs reproduction'
18+
inactive-day: 14
19+
20+
- name: missing info
21+
uses: actions-cool/issues-helper@v3
22+
with:
23+
actions: 'close-issues'
24+
token: ${{ secrets.GITHUB_TOKEN }}
25+
labels: 'STATUS-2: missing info'
26+
inactive-day: 14

.github/workflows/labeling-issues.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Labling Issues
2+
3+
on:
4+
issues:
5+
types: [labeled]
6+
7+
jobs:
8+
handle-labeled:
9+
if: github.repository == 'qwikifiers/qwik-ui'
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: needs reproduction time limit
14+
if: contains(github.event.label.name, 'needs reproduction')
15+
uses: actions-cool/issues-helper@v3
16+
with:
17+
actions: 'create-comment'
18+
token: ${{ secrets.GITHUB_TOKEN }}
19+
issue-number: ${{ github.event.issue.number }}
20+
body: |
21+
Hello @${{ github.event.issue.user.login }}. Please provide a [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) using a GitHub repository or [StackBlitz](https://qwik.new).
22+
Issues marked with `STATUS-2: needs reproduction` will be automatically closed if they have no activity within 14 days.
23+
Thanks 🙏
24+
25+
- name: missing info time limit
26+
if: contains(github.event.label.name, 'missing info')
27+
uses: actions-cool/issues-helper@v3
28+
with:
29+
actions: 'create-comment'
30+
token: ${{ secrets.GITHUB_TOKEN }}
31+
issue-number: ${{ github.event.issue.number }}
32+
body: |
33+
Hello @${{ github.event.issue.user.login }}. Please provide the missing information requested above.
34+
Issues marked with `STATUS-2: missing info` will be automatically closed if they have no activity within 14 days.
35+
Thanks 🙏

0 commit comments

Comments
 (0)