Skip to content

Commit

Permalink
[github/actions] stale issues
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyiwu committed Sep 7, 2024
1 parent e691b63 commit 165bee9
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/stale-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Close Stale Issues

on:
schedule:
- cron: '0 13 * * *' # Run daily

jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue has not been updated for over 5 years and will be marked as stale. If the issue still exists, please comment or update the issue, otherwise it will be closed after 7 days.'
close-issue-message: 'This issue has been automatically closed due to inactivity. If the issue still exists, please reopen it.'
days-before-issue-stale: 1825
days-before-issue-close: 7
stale-issue-label: 'Stale'
exempt-issue-labels: 'pinned,security'
operations-per-run: 100

0 comments on commit 165bee9

Please sign in to comment.