2022-09-10 07:39:55 +03:00
name : "Stale issue handler"
2022-05-16 03:40:46 +03:00
on :
workflow_dispatch :
schedule :
# This runs every day 20 minutes before midnight: https://crontab.guru/#40_23_*_*_*
2022-09-10 07:39:55 +03:00
- cron : "40 23 * * *"
2022-05-16 03:40:46 +03:00
jobs :
stale :
runs-on : ubuntu-latest
if : github.repository_owner == 'swc-project'
steps :
- uses : actions/stale@v4
id : stale
2022-09-10 07:39:55 +03:00
name : "Close stale issues with no reproduction"
2022-05-16 03:40:46 +03:00
with :
repo-token : ${{ secrets.GH_TOKEN }}
2022-09-10 07:39:55 +03:00
only-labels : "Need more info"
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 this 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."
2022-05-16 03:40:46 +03:00
days-before-issue-close : 1
2022-09-10 07:39:55 +03:00
days-before-issue-stale : 5
2022-05-16 03:40:46 +03:00
days-before-pr-close : -1
days-before-pr-stale : -1
2022-09-10 07:39:55 +03:00
exempt-issue-labels : "blocked,must,should,keep"
operations-per-run : 300 # 1 operation per 100 issues, the rest is to label/comment/close