Skip to content

Commit

Permalink
Add workflow to close stale issues and PRs
Browse files Browse the repository at this point in the history
Introduce a GitHub Actions workflow to automatically close stale
issues and pull requests. This helps maintain repository hygiene
by reducing clutter from inactive items. The workflow marks issues
as stale after 35 days of inactivity and closes them 14 days later
if no further activity occurs.

The issues and PRs that have a milestone assigned will not be looked
at by the bot. This means that it is still possible to plan work that
won't be worked for some time
  • Loading branch information
derrix060 committed Oct 21, 2024
1 parent 7310990 commit 20de201
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/close-stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '0 0 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
stale-issue-message: 'This issue is stale because it has been open 35 days with no activity. Remove stale label or comment or this will be closed in 14 days.'
days-before-stale: 35
days-before-close: 14
exempt-all-milestones: true

0 comments on commit 20de201

Please sign in to comment.