Skip to content

Commit

Permalink
Add a workflow to close stale issue/PR (#729)
Browse files Browse the repository at this point in the history
* add a workflow to close stale issue/PR

* Update .github/workflows/close_stale_issues.yml

Co-authored-by: Kyle Shores <[email protected]>

* Update comment

Co-authored-by: Kyle Shores <[email protected]>

---------

Co-authored-by: Kyle Shores <[email protected]>
  • Loading branch information
sjsprecious and K20shores authored Feb 20, 2025
1 parent e08c4f7 commit e5346b3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/close_stale_issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 'Close stale issues'
on:
schedule:
# Run every day at 7PM UTC
- cron: '0 19 * * *'
jobs:
close-stale:
permissions:
issues: write
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
stale-issue-message: 'This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 14 days.'
close-issue-message: 'This issue was closed because it has been stalled for 14 days with no activity.'
days-before-stale: 180 # Mark as stale after 180 days of inactivity
days-before-close: 14 # Close issue if no activity after 14 days of being stale
days-before-pr-close: -1
# Issues with this label are exempt from being checked if they are stale...
exempt-issue-labels: Low Priority
# Below are currently defaults, but given in case we decide to change
operations-per-run: 30 # This setting specifies the maximum number of operations (such as marking issues as stale or closing them) that the action will perform in a single run
stale-issue-label: Stale # This setting defines the label that will be applied to issues that are considered stale
close-issue-reason: not_planned # This setting specifies the reason that will be given when closing stale issues

0 comments on commit e5346b3

Please sign in to comment.