Skip to content

Commit

Permalink
feat: add stale check (#2359)
Browse files Browse the repository at this point in the history
Signed-off-by: Jason C. Leach <jason.leach@fullboar.ca>
  • Loading branch information
jleach authored Jan 30, 2025
1 parent f376450 commit b0d22db
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/maintenance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Backlog Maintenance

on:
workflow_dispatch:
schedule:
- cron: "0 12 * * *" # Runs every day at 12 PM (noon) UTC, which is 4 AM PST
jobs:
prune:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-22.04
permissions:
# contents: write # only for delete-branch option
issues: write
pull-requests: write
name: Issue and PR
steps:
- name: Prune stale issues
uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 270 # 9 months
days-before-close: 30 # 1 month
stale-issue-label: stale
exempt-issue-labels: help wanted
exempt-pr-labels: external-dependency
stale-issue-message: |
This issue has been inactive for a while, so it's
been marked as "stale." If you're still working on
it or it's still important, please leave a comment
to keep it open and remove the "stale" label. Thanks!
stale-pr-message: |
This pull request hasn't had any recent activity,
so it's been marked as "stale." If you're still
working on it or if it's still important, just keep
making commits (code changes) and remove the "stale"
label. Thanks!
close-issue-message: |
This issue has been automatically closed because
there hasn't been any recent activity. If it's
still relevant, please feel free to reopen it.
close-pr-message: |
This pull request has been automatically closed due
to inactivity. If it's still relevant, please
feel free to reopen it.

0 comments on commit b0d22db

Please sign in to comment.