diff options
| author | Matt Pocock <mattpocockvoice@gmail.com> | 2026-10-05 13:04:30 +0100 |
|---|---|---|
| committer | Matt Pocock <mattpocockvoice@gmail.com> | 2026-10-05 13:04:30 +0100 |
| commit | 423ed08ea2185f951ea9d3a8c68911bbbd3e8d88 (patch) | |
| tree | 809d32e3f9c45dde63d1d9d0fb9c20e0658d6c8b | |
| parent | 4588b32ecab9ecc9fc8cc6b6c5e7d675b6004b0d (diff) | |
Add issue triage workflowsissue-triage-action
New issues get needs-triage. Issues labelled needs-info close after
14 days with no reply; a reply puts them back in needs-triage.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| -rw-r--r-- | .github/workflows/needs-info.yml | 38 | ||||
| -rw-r--r-- | .github/workflows/triage-label.yml | 23 |
2 files changed, 61 insertions, 0 deletions
diff --git a/.github/workflows/needs-info.yml b/.github/workflows/needs-info.yml new file mode 100644 index 0000000..02dc891 --- /dev/null +++ b/.github/workflows/needs-info.yml @@ -0,0 +1,38 @@ +name: Close needs-info + +# Closes issues labelled `needs-info` after 14 days with no reply. +# Touches only issues with that label. Never marks anything stale on its own. +# A comment after the label goes on removes `needs-info` and puts the issue +# back in `needs-triage`, so add the label after you ask your question. + +on: + schedule: + - cron: "30 1 * * *" + workflow_dispatch: + +permissions: {} + +jobs: + close: + runs-on: ubuntu-latest + permissions: + issues: write + actions: write # the action keeps its state in the Actions cache + steps: + - uses: actions/stale@v10 + with: + only-issue-labels: needs-info + stale-issue-label: needs-info + days-before-issue-stale: -1 + days-before-issue-close: 14 + days-before-pr-stale: -1 + days-before-pr-close: -1 + remove-issue-stale-when-updated: true + labels-to-add-when-unstale: needs-triage + close-issue-reason: not_planned + close-issue-message: > + Closing this because we asked for more information 14 days ago + and have not heard back. Thank you for the report. If you can add + the details, comment here and we will reopen it. + See [CONTRIBUTING.md](https://github.com/mattpocock/skills/blob/main/CONTRIBUTING.md) + for what a good report includes. diff --git a/.github/workflows/triage-label.yml b/.github/workflows/triage-label.yml new file mode 100644 index 0000000..3e88fae --- /dev/null +++ b/.github/workflows/triage-label.yml @@ -0,0 +1,23 @@ +name: Triage label + +# Every new issue gets `needs-triage`, so nothing skips the queue. +# The issue forms already add it; this catches issues opened any other way. + +on: + issues: + types: [opened] + +permissions: {} + +jobs: + label: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - name: Add needs-triage + run: gh issue edit "$NUMBER" --add-label needs-triage + env: + GH_TOKEN: ${{ github.token }} + GH_REPO: ${{ github.repository }} + NUMBER: ${{ github.event.issue.number }} |
