Skip to content

Commit

Permalink
Merge pull request #2990 from GEOS-ESM/feature/mathomp4/replace-stalebot
Browse files Browse the repository at this point in the history
Move from stale bot to stale action
  • Loading branch information
mathomp4 committed Sep 6, 2024
2 parents d4b541e + ffa9277 commit 0735be7
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .github/stale.yml

This file was deleted.

47 changes: 47 additions & 0 deletions .github/workflows/cron-stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Based on examples from the stale action site:
# https://github.com/actions/stale

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 0735be7

Please sign in to comment.