Skip to content

Commit

Permalink
Merge pull request #2744 from wangzhaode/feature/stale_action
Browse files Browse the repository at this point in the history
add stale action to clear issue.
  • Loading branch information
wangzhaode authored Jan 29, 2024
2 parents d284430 + c8ffd36 commit 784017d
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: '30 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: 60
stale-issue-message: 'Marking as stale. No activity in 60 days.'
stale-pr-message: 'Marking as stale. No activity in 60 days.'
stale-issue-label: 'stale'
stale-pr-label: 'stale'
remove-stale-when-updated: true
operations-per-run: 1000
days-before-close: 3

0 comments on commit 784017d

Please sign in to comment.