Update stale workflow

This commit is contained in:
Roman Zabaluev 2022-03-10 11:17:02 +03:00 committed by GitHub
parent a8fc61dcff
commit d13d4dc327
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 22 deletions

22
.github/stale.yml vendored
View file

@ -1,22 +0,0 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 7
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 3
# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
onlyLabels:
- 'status/pending'
# Issues with these labels will never be considered stale
exemptLabels:
- 'status/on-hold'
- 'status/blocked'
- 'status/triage'
- 'type/security'
# Label to use when marking an issue as stale
staleLabel: 'status/stale'
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false

19
.github/workflows/stale.yaml vendored Normal file
View file

@ -0,0 +1,19 @@
name: 'Close stale issues'
on:
schedule:
- cron: '30 1 * * *'
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
with:
days-before-stale: 0
days-before-close: 0
days-before-issue-stale: 7
days-before-issue-close: 3
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
stale-issue-label: 'status/stale'
only-labels: 'status/pending'
remove-issue-stale-when-updated: true