Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move from stale bot to stale action #2990

Merged
merged 2 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'