Skip to content

Commit

Permalink
Move from stale bot to stale action
Browse files Browse the repository at this point in the history
  • Loading branch information
mathomp4 committed Aug 23, 2024
1 parent d4b541e commit 94cecd4
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .github/stale.yml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/cron-stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: 'Close stale issues and PR'
on:
schedule:
- cron: '30 1 * * *'

permissions:
contents: read
issues: write
pull-requests: write

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
days-before-issue-stale: 60
stale-issue-message: >
This issue has been automatically marked as stale because it
has not had activity in the last 60 days. If there are no
updates within 7 days, it will be closed. You can add the
":hourglass: Long Term" label to prevent the stale action
from closing this issue.
days-before-issue-close: 7
close-issue-message: >
This issue was closed because it has been stalled for 7 days with no activity.
You can reopen this issue if you are still working on it.
stale-issue-label: ':snowflake: Stale'
exempt-issue-labels: ':hourglass: Long Term'

days-before-pr-stale: 60
stale-pr-message: >
This PR has been automatically marked as stale because it
has not had activity in the last 60 days. If there are no
updates within 7 days, it will be closed. You can add the
":hourglass: Long Term" label to prevent the stale action
from closing this issue.
days-before-pr-close: 30
close-pr-message: >
This PR was closed because it has been stalled for 30 days with no activity.
You can reopen this PR if you are still working on it.
stale-pr-label: ':snowflake: Stale'
exempt-pr-labels: ':hourglass: Long Term'

0 comments on commit 94cecd4

Please sign in to comment.