81dd7f8077
### What? Adding a new label comment for "please simplify reproduction". ### Why? During triaging, a lot of time is gone into trying to isolate the actual bug being reported. Reproductions sometimes contain unrelated code - that sometimes can be the actual cause of an issue, reported as a bug in Next.js, or require third-party services, secrets, setting up databases, and other tasks that take up much of the resources before the issue can even be verified. ### How? Similar to the `please add a complete reproduction` and `please verify canary` labels, if a maintainer adds the `please simplify reproduction` label, an automatic comment will appear on the issue, asking for a minimal reproduction [Slack thread](https://vercel.slack.com/archives/C04DUD7EB1B/p1685527818400339)
38 lines
1.9 KiB
YAML
38 lines
1.9 KiB
YAML
name: 'Stale issue handler'
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
# This runs every day 20 minutes before midnight: https://crontab.guru/#40_23_*_*_*
|
|
- cron: '40 23 * * *'
|
|
|
|
jobs:
|
|
stale:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository_owner == 'vercel'
|
|
steps:
|
|
- uses: actions/stale@v4
|
|
id: stale-no-repro
|
|
name: 'Close stale issues with no reproduction'
|
|
with:
|
|
repo-token: ${{ secrets.STALE_TOKEN }}
|
|
only-labels: 'please add a complete reproduction,please simplify reproduction'
|
|
close-issue-message: 'This issue has been automatically closed because it received no activity for a month and had no reproduction to investigate. If you think it was closed by accident, please leave a comment. If you are running into a similar issue, please open a new issue with a reproduction. Thank you.'
|
|
days-before-issue-close: 1
|
|
days-before-issue-stale: 30
|
|
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@v4
|
|
id: stale-no-canary
|
|
name: 'Close issues not verified on canary'
|
|
with:
|
|
repo-token: ${{ secrets.STALE_TOKEN }}
|
|
only-labels: 'please verify canary'
|
|
close-issue-message: "This issue has been automatically closed because it wasn't verified against next@canary. If you think it was closed by accident, please leave a comment. If you are running into a similar issue, please open a new issue with a reproduction. Thank you."
|
|
days-before-issue-close: 1
|
|
days-before-issue-stale: 30
|
|
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
|