Unverified Commit 36a138a4 authored by Sam Ko's avatar Sam Ko Committed by GitHub

chore(github): update how we handle stale issues (#73488)

## Why?

We currently have no automated process for handling stale issues. This PR adds an automated process for this.
parent 77851773
{ {
"private": true, "private": true,
"description": "Notify Next.js team about pending PRs and popular issues", "description": "A variety of functions to help with triaging issues, PRs, and feature requests in the Next.js repo.",
"scripts": { "scripts": {
"build-issues-by-version": "ncc build src/issues-by-version.ts -m -o dist/issues-by-version --license licenses.txt", "build-issues-by-version": "ncc build src/issues-by-version.ts -m -o dist/issues-by-version --license licenses.txt",
"build-issues": "ncc build src/popular-issues.mjs -m -o dist/issues --license licenses.txt", "build-issues": "ncc build src/popular-issues.mjs -m -o dist/issues --license licenses.txt",
......
...@@ -10,6 +10,19 @@ jobs: ...@@ -10,6 +10,19 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository_owner == 'vercel' if: github.repository_owner == 'vercel'
steps: steps:
- uses: actions/stale@v9
id: issue-stale
name: 'Mark stale issues, close stale issues'
with:
repo-token: ${{ secrets.STALE_TOKEN }}
ascending: true
days-before-issue-stale: 730 # issues with no activity in over two years
days-before-issue-close: 7
remove-issue-stale-when-updated: true
stale-issue-label: 'stale'
stale-issue-message: 'This issue has been automatically marked as stale due to two years of inactivity. It will be closed in 7 days unless there’s further input. If you believe this issue is still relevant, please leave a comment or provide updated details. Thank you.'
close-issue-message: 'This issue has been automatically closed due to two years of inactivity. If you’re still experiencing a similar problem or have additional details to share, please open a new issue following our current issue template. Your updated report helps us investigate and address concerns more efficiently. Thank you for your understanding!'
operations-per-run: 300 # 1 operation per 100 issues, the rest is to label/comment/close
- uses: actions/stale@v9 - uses: actions/stale@v9
id: stale-no-repro id: stale-no-repro
name: 'Close stale issues with no reproduction' name: 'Close stale issues with no reproduction'
...@@ -21,7 +34,6 @@ jobs: ...@@ -21,7 +34,6 @@ jobs:
days-before-issue-stale: 2 days-before-issue-stale: 2
days-before-pr-close: -1 days-before-pr-close: -1
days-before-pr-stale: -1 days-before-pr-stale: -1
exempt-issue-labels: 'blocked,must,should,keep'
operations-per-run: 300 # 1 operation per 100 issues, the rest is to label/comment/close operations-per-run: 300 # 1 operation per 100 issues, the rest is to label/comment/close
- uses: actions/stale@v9 - uses: actions/stale@v9
id: stale-simple-repro id: stale-simple-repro
...@@ -34,7 +46,6 @@ jobs: ...@@ -34,7 +46,6 @@ jobs:
days-before-issue-stale: 14 days-before-issue-stale: 14
days-before-pr-close: -1 days-before-pr-close: -1
days-before-pr-stale: -1 days-before-pr-stale: -1
exempt-issue-labels: 'blocked,must,should,keep'
operations-per-run: 300 # 1 operation per 100 issues, the rest is to label/comment/close operations-per-run: 300 # 1 operation per 100 issues, the rest is to label/comment/close
- uses: actions/stale@v9 - uses: actions/stale@v9
id: stale-no-canary id: stale-no-canary
...@@ -47,5 +58,4 @@ jobs: ...@@ -47,5 +58,4 @@ jobs:
days-before-issue-stale: 14 days-before-issue-stale: 14
days-before-pr-close: -1 days-before-pr-close: -1
days-before-pr-stale: -1 days-before-pr-stale: -1
exempt-issue-labels: 'blocked,must,should,keep'
operations-per-run: 300 # 1 operation per 100 issues, the rest is to label/comment/close operations-per-run: 300 # 1 operation per 100 issues, the rest is to label/comment/close
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment