Skip to content

Commit

Permalink
add stale action.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzhaode committed Jan 29, 2024
1 parent a8c213e commit 01ec5f2
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: stale

on:
schedule:
- cron: '20 9 * * *'

jobs:
stale:

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

steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 30
stale-issue-message: 'Marking as stale. No activity in 30 days.'
stale-pr-message: 'Marking as stale. No activity in 30 days.'
stale-issue-label: 'stale'
stale-pr-label: 'stale'
remove-stale-when-updated: true
operations-per-run: 1000
days-before-close: 1

0 comments on commit 01ec5f2

Please sign in to comment.