diff --git a/.github/actions/next-repo-actions/package.json b/.github/actions/next-repo-actions/package.json index 42c76a0d1bf04..fcfc1bf2d06c5 100644 --- a/.github/actions/next-repo-actions/package.json +++ b/.github/actions/next-repo-actions/package.json @@ -1,6 +1,6 @@ { "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": { "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", diff --git a/.github/workflows/issue_stale.yml b/.github/workflows/issue_stale.yml index 4cc667475eb39..e4e67f56a584b 100644 --- a/.github/workflows/issue_stale.yml +++ b/.github/workflows/issue_stale.yml @@ -10,6 +10,19 @@ jobs: runs-on: ubuntu-latest if: github.repository_owner == 'vercel' 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 id: stale-no-repro name: 'Close stale issues with no reproduction' @@ -21,7 +34,6 @@ jobs: days-before-issue-stale: 2 days-before-pr-close: -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 - uses: actions/stale@v9 id: stale-simple-repro @@ -34,7 +46,6 @@ jobs: days-before-issue-stale: 14 days-before-pr-close: -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 - uses: actions/stale@v9 id: stale-no-canary @@ -47,5 +58,4 @@ jobs: days-before-issue-stale: 14 days-before-pr-close: -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