-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
infra: automate issue management (#1798)
- Loading branch information
1 parent
e3b9073
commit 9b6ba7f
Showing
3 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# CronJob | ||
name: ⏱️ Issue Close Require | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
close-issues: | ||
if: github.repository == 'solidjs/solid-start' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: needs reproduction | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: "close-issues" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
labels: "needs reproduction" | ||
inactive-day: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,4 @@ jobs: | |
allcontributors[bot] | ||
renovate | ||
renovate[bot] | ||
ignore-team-members: false | ||
ignore-team-members: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: 🔖 Issue Labelled | ||
|
||
on: | ||
issues: | ||
types: [labeled] | ||
|
||
jobs: | ||
reply-labeled: | ||
if: github.repository == 'vitejs/vite' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: contribution welcome | ||
if: github.event.label.name == 'contribution welcome' || github.event.label.name == 'help wanted' || github.event.label.name == 'good first issue' | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: "remove-labels" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-number: ${{ github.event.issue.number }} | ||
labels: "pending triage, needs reproduction" | ||
|
||
- name: needs reproduction | ||
if: github.event.label.name == 'needs reproduction' | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: "create-comment, remove-labels" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
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. | ||
labels: "pending triage" |