Skip to content

Commit

Permalink
chore: add stale handling for issues and prs (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
lechnerc77 authored Jul 27, 2023
1 parent c9669f3 commit 57f5054
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cleanup-action-caches.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: cleanup gh actions caches
name: Cleanup GH Actions Caches
on:
pull_request:
types:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/stale-handling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Close Stale Issues and PRs
on:
schedule:
- cron: '30 2 * * *'

permissions:
issues: write
pull-requests: write

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
stale-issue-message: 'This issue is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
stale-pr-message: 'This pull request is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.'
close-pr-message: 'This PR was closed because it has been stalled for 5 days with no activity.'
days-before-stale: 15
days-before-close: 5
any-of-issue-labels: 'needs-author-feedback'

0 comments on commit 57f5054

Please sign in to comment.