Skip to content

Commit

Permalink
Add stale action to mark issues and PRs as stale and close them
Browse files Browse the repository at this point in the history
  • Loading branch information
gjcairo committed Dec 30, 2024
1 parent 56f9b7c commit 973cf94
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/stale_issues_prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: 'Close stale issues and PRs'

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

permissions:
issues: write
pull-requests: write

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
days-before-issue-stale: 30
stale-issue-label: 'stale'
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
days-before-issue-close: 7
close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.'
days-before-pr-stale: 45
stale-pr-label: 'stale'
stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.'
days-before-pr-close: 10
close-pr-message: 'This PR was closed because it has been stalled for 10 days with no activity.'
operations-per-run: 1000

0 comments on commit 973cf94

Please sign in to comment.