Skip to content

Commit

Permalink
Add actions/stale workflow (#4653)
Browse files Browse the repository at this point in the history
* Add actions/stale workflow

Signed-off-by: Kenta Kozuka <kenta.kozuka@gmail.com>

* Except some labels

Signed-off-by: Kenta Kozuka <kenta.kozuka@gmail.com>

* Add not-auto-close

Signed-off-by: Kenta Kozuka <kenta.kozuka@gmail.com>

---------

Signed-off-by: Kenta Kozuka <kenta.kozuka@gmail.com>
  • Loading branch information
kentakozuka committed Nov 11, 2023
1 parent 3a45126 commit 2fdd32d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '0 0 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
# Issues
stale-issue-message: 'This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity. Feel free to reopen if still applicable.'
days-before-issue-stale: 180
days-before-issue-close: 7
exempt-issue-labels: 'not-auto-close,kind/bug,good first issue'
# PRs
stale-pr-message: 'This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
close-pr-message: 'This PR was closed because it has been stalled for 7 days with no activity. Feel free to reopen if still applicable.'
days-before-pr-stale: 30
days-before-pr-close: 7
delete-branch: true

0 comments on commit 2fdd32d

Please sign in to comment.