Close inactive PRs #104
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
name: Close inactive PRs | |
on: | |
schedule: | |
# 每天凌晨5点 | |
- cron: "0 21 * * *" | |
workflow_dispatch: | |
jobs: | |
close-issues: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- uses: actions/stale@v5 | |
with: | |
days-before-issue-stale: -1 | |
days-before-issue-close: -1 | |
stale-pr-message: "请注意回应审查人的审查意见,若7天内不回应,该PR即将被关闭。相关规则见[贡献方针](https://github.com/CFPAOrg/Minecraft-Mod-Language-Package/blob/main/CONTRIBUTING.md#搁置规则)。" | |
close-pr-message: "因你的回应时间超过时限,该PR已因搁置而被关闭。如需再次提交可重新打开(Reopen)该PR,感谢贡献:heart:。相关规则见[贡献方针](https://github.com/CFPAOrg/Minecraft-Mod-Language-Package/blob/main/CONTRIBUTING.md#搁置规则)。" | |
days-before-pr-stale: 7 | |
days-before-pr-close: 1 | |
any-of-pr-labels: "即将被搁置" | |
stale-pr-label: "即将拒收" | |
repo-token: ${{ secrets.GITHUB_TOKEN }} |