Skip to content

Commit

Permalink
Replace the defunct stale bot with actions/stale
Browse files Browse the repository at this point in the history
  • Loading branch information
bbatsov committed Jan 17, 2025
1 parent e95d2af commit ead9a0d
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 62 deletions.
62 changes: 0 additions & 62 deletions .github/stale.yml

This file was deleted.

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

jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
days-before-issue-stale: 30
days-before-issue-close: 30
stale-issue-label: "stale"
exempt-issue-labels:
- "high priority"
- "good first issue"
- "pinned"
stale-issue-message: >-
This issue has been automatically marked as stale because it has not
had any recent activity. It will be closed soon if no further
activity occurs. Thank you for your contribution and understanding!
close-issue-message: >-
This issue been automatically closed due to lack of activity. Feel free to re-open it
if you ever come back to it.
days-before-pr-stale: 30
days-before-pr-close: 30
exempt-pr-labels:
- "high priority"
- "good first issue"
- "pinned"
stale-pr-message: >-
This pull request has been automatically marked as stale because it has not
had any recent activity. It will be closed soon if no further
activity occurs. Thank you for your contribution and understanding!
close-pr-message: >-
This issue been automatically closed due to lack of activity. Feel free to re-open it
if you ever come back to it.
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ead9a0d

Please sign in to comment.