ci(stale): added workflow

This commit is contained in:
Stan Girard 2023-08-07 00:18:32 +02:00
parent 9dc483bb1e
commit 642e345435

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

@ -0,0 +1,23 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '30 1 * * *'
permissions:
contents: write # only for delete-branch option
issues: write
pull-requests: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
exempt-all-pr-assignees: true
exempt-issue-assignees: true
exempt-draft-pr: true
days-before-stale: 20
days-before-close: 5
stale-issue-message: "Thanks for your contributions, we'll be closing this issue as it has gone stale. Feel free to reopen if you'd like to continue the discussion."
stale-pr-message: "Thanks for your contributions, we'll be closing this PR as it has gone stale. Feel free to reopen if you'd like to continue the discussion."