-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2744 from wangzhaode/feature/stale_action
add stale action to clear issue.
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |