Skip to content

Commit

Permalink
workflows/stale: Add workflow to close stale issues and PRs (#193)
Browse files Browse the repository at this point in the history
runs on Thursdays
adds a `stale` label after 384 days of inactivity on an issue, or 192 on a PR
closes a `stale` issue/PR after 32 extra days of inactivity
ignores `pinned` issues/PRs
  • Loading branch information
himdel authored Dec 30, 2024
1 parent 184f278 commit f9bc565
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '4 4 * * 4'

jobs:
stale:
runs-on: ubuntu-latest
permissions:
contents: write # only for delete-branch option
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
days-before-issue-stale: 384
days-before-pr-stale: 192
days-before-close: 32
stale-issue-label: 'stale'
stale-pr-label: 'stale'
exempt-issue-labels: 'pinned'
exempt-pr-labels: 'pinned'
delete-branch: true

0 comments on commit f9bc565

Please sign in to comment.