Skip to content

Commit

Permalink
Initial stale bot setup
Browse files Browse the repository at this point in the history
  • Loading branch information
kkawula committed Jan 11, 2025
1 parent 7ebb054 commit 615d5c4
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/automate-stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: 'Automation - Stale issues and PRs'

on:
schedule:
- cron: '0 7 * * 1-5'

env:
DAYS_BEFORE_STALE: 60
DAYS_BEFORE_CLOSE: 7

jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
# General settings
days-before-stale: ${{ env.DAYS_BEFORE_STALE }}
days-before-close: ${{ env.DAYS_BEFORE_CLOSE }}
operations-per-run: 3000
exempt-all-milestones: true
exempt-all-assignees: true
enable-statistics: true # This is only useful if secret ACTIONS_STEP_DEBUG=true
start-date: '2025-01-17'
remove-stale-when-updated: true

# Issue settings
exempt-issue-labels: 'new,bug,good first issue,help wanted'
stale-issue-label: stale
stale-issue-message: |
Hi! This issue hasn't had any action for a while, so I am marking
it as stale. It will close in ${{ env.DAYS_BEFORE_CLOSE }} days
unless something changes. Thanks for helping keep our project tidy!
close-issue-message: false

# PR settings
stale-pr-label: stale
stale-pr-message: |
Hi! This pull request hasn't had any activity for a while, so I am
marking it as stale. It will close in ${{ env.DAYS_BEFORE_CLOSE }}
days unless something changes. Thanks for contributing!
close-pr-message: false

0 comments on commit 615d5c4

Please sign in to comment.