Skip to content

Commit

Permalink
infra: automate issue management (#1798)
Browse files Browse the repository at this point in the history
  • Loading branch information
atilafassina authored Feb 14, 2025
1 parent e3b9073 commit 9b6ba7f
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/close-issue.yml
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
2 changes: 1 addition & 1 deletion .github/workflows/compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
allcontributors[bot]
renovate
renovate[bot]
ignore-team-members: false
ignore-team-members: true
30 changes: 30 additions & 0 deletions .github/workflows/issue-labelled.yml
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"

0 comments on commit 9b6ba7f

Please sign in to comment.