Skip to content

Commit 9b6ba7f

Browse files
authored
infra: automate issue management (#1798)
1 parent e3b9073 commit 9b6ba7f

File tree

3 files changed

+50
-1
lines changed

3 files changed

+50
-1
lines changed

.github/workflows/close-issue.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# CronJob
2+
name: ⏱️ Issue Close Require
3+
4+
on:
5+
schedule:
6+
- cron: "0 0 * * *"
7+
8+
jobs:
9+
close-issues:
10+
if: github.repository == 'solidjs/solid-start'
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: needs reproduction
14+
uses: actions-cool/issues-helper@v3
15+
with:
16+
actions: "close-issues"
17+
token: ${{ secrets.GITHUB_TOKEN }}
18+
labels: "needs reproduction"
19+
inactive-day: 3

.github/workflows/compliance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ jobs:
2727
allcontributors[bot]
2828
renovate
2929
renovate[bot]
30-
ignore-team-members: false
30+
ignore-team-members: true

.github/workflows/issue-labelled.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: 🔖 Issue Labelled
2+
3+
on:
4+
issues:
5+
types: [labeled]
6+
7+
jobs:
8+
reply-labeled:
9+
if: github.repository == 'vitejs/vite'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: contribution welcome
13+
if: github.event.label.name == 'contribution welcome' || github.event.label.name == 'help wanted' || github.event.label.name == 'good first issue'
14+
uses: actions-cool/issues-helper@v3
15+
with:
16+
actions: "remove-labels"
17+
token: ${{ secrets.GITHUB_TOKEN }}
18+
issue-number: ${{ github.event.issue.number }}
19+
labels: "pending triage, needs reproduction"
20+
21+
- name: needs reproduction
22+
if: github.event.label.name == 'needs reproduction'
23+
uses: actions-cool/issues-helper@v3
24+
with:
25+
actions: "create-comment, remove-labels"
26+
token: ${{ secrets.GITHUB_TOKEN }}
27+
issue-number: ${{ github.event.issue.number }}
28+
body: |
29+
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://stackblitz.com/). Issues marked with `needs reproduction` will be closed if they have no activity within 3 days.
30+
labels: "pending triage"

0 commit comments

Comments
 (0)