Skip to content

Commit

Permalink
ci: add stale bot for github
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismaille committed Mar 12, 2024
1 parent 04307c4 commit e4f457e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: 'Close stale issues and PRs'

on:
schedule:
- cron: '30 1 * * *' # Runs once a day at 01:30

permissions:
issues: write
pull-requests: write

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
with:
days-before-stale: 60 # Mark as stale after 60 days
days-before-close: 7 # Close 7 days after being marked as stale
stale-issue-message: 'This issue has been marked as stale due to lack of activity. It will be closed in 7 days if no further activity occurs.'
stale-pr-message: 'This pull request has been marked as stale due to lack of activity. It will be closed in 7 days if no further activity occurs.'
close-issue-message: "This issue has been closed due to lack of activity. Feel free to reopen it if you believe it's still relevant."
close-pr-message: "This pull request has been closed due to lack of activity. Feel free to reopen it if you believe it's still relevant."
exempt-issue-labels: 'never-stale' # Issues with this label will not be marked as stale
exempt-pr-labels: 'never-stale' # PRs with this label will not be marked as stale
only-labels: '' # Process only issues/PRs with these labels
operations-per-run: 30 # Number of operations per run
remove-stale-when-updated: true # Remove stale label when issue/PR is updated
delete-branch: false # Delete the branch of closed PRs
stale-issue-label: 'stale' # Label to mark stale issues
stale-pr-label: 'stale' # Label to mark stale PRs

0 comments on commit e4f457e

Please sign in to comment.