Mark stale issues and pull requests #263
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
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. | |
# | |
# You can adjust the behavior by modifying this file. | |
# For more information, see: | |
# https://github.com/actions/stale | |
name: Mark stale issues and pull requests | |
on: | |
schedule: | |
- cron: '30 19 * * *' | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- uses: actions/stale@v5 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
# stale-pr-message: 'Stale pull request message' | |
stale-issue-label: 'no-issue-activity' | |
days-before-issue-stale: 30 | |
days-before-issue-close: 7 | |
stale-issue-message: > | |
你好, | |
该问题已经很长时间没有活动,现在被标记为过时。如果问题仍然存在,请随时更新它,标签将被删除。否则,我们将在7天内关闭此问题。 | |
This issue has been automatically marked as stale because it has been open for 30 days | |
with no response from the author. It will be closed in next 7 days if no further | |
activity occurs from the issue author. | |
close-issue-message: > | |
This issue has been closed because it has not received response from the issue author. |