Close Stale Issues #22
This file contains hidden or 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
| name: Close Stale Issues | |
| on: | |
| schedule: | |
| - cron: "0 0 */7 * *" # 每7天运行一次 | |
| workflow_dispatch: | |
| jobs: | |
| stale: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/stale@v10 | |
| with: | |
| repo-token: ${{ secrets.QWY_SYNC_BOT_TOKEN }} | |
| stale-issue-message: "🕒 Discussion Activity Reminder 🕒\n\nThis Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions:\n\n1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as out of date at the bottom of the page.\n\n2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own.\n\n3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution.\n\nNote: This dormant notification will only apply to Discussions with the Question label. To learn more, see our recent announcement.\n\nThank you for helping bring this Discussion to a resolution! 💬" | |
| stale-pr-message: "This pull request or issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs." | |
| days-before-stale: 90 # 天没有活动的 issue 会被标记为陈旧 | |
| days-before-close: 7 # 被标记为陈旧后再经过7天没有活动的 issue 会被自动关闭 | |
| stale-issue-label: "action-stale" # 标记陈旧 issue 的标签 | |
| close-issue-label: "not-completed" | |
| exempt-issue-labels: "keep-open" # 带有这个标签的 issue 不会被标记为陈旧 |