feat(ci): run daily job to mark and close stale issues (#5470)

This commit is contained in:
Max Revitt 2022-09-22 11:42:57 +01:00 committed by GitHub
parent fb0f811f19
commit 1c349d9d47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

23
.github/workflows/stale-issues.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '30 1 * * *'
permissions:
issues: write
pull-requests: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v6
with: # core team are exempt
exempt-issue-assignees: 'AskAlexSharov,realLedgerwatch,AndreaLanfranchi,yperbasis,vorot93,b00ris,JekaMas,mandrigin,Giulio2002,tjayrush,revitteth,hexoscott'
exempt-pr-assignees: 'AskAlexSharov,realLedgerwatch,AndreaLanfranchi,yperbasis,vorot93,b00ris,JekaMas,mandrigin,Giulio2002,tjayrush,revitteth,hexoscott'
stale-issue-message: 'This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days.'
stale-pr-message: 'This PR is stale because it has been open for 40 days with no activity.'
close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.'
days-before-stale: 40
days-before-close: 7
days-before-pr-close: -1 # don't close PRs