From 93730eaf57db29962f4b06e3b4ccc7a13075a1fc Mon Sep 17 00:00:00 2001 From: Wren Date: Mon, 6 Feb 2023 21:58:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Eaction=EF=BC=9A=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=89=A7=E8=A1=8C7+7=E6=8E=AA=E6=96=BD=20(#2960)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Create stale.yml * 设置生效时间 add start date at 2023-02-11 * Change stale label --------- Co-authored-by: 33 --- .github/workflows/stale.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 000000000000..5fbd856bee45 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,25 @@ +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+7已进入第二阶段,该PR即将关闭。" + close-pr-message: "因审核者请求您更新该PR,且回复时间超过规定期限,该PR现暂时关闭。如您需再次提交可重新打开该PR,感谢您的贡献:heart:。" + days-before-pr-stale: 7 + days-before-pr-close: 7 + any-of-pr-labels: "needs author action,changes required" + stale-pr-label: "ready to reject" + start-date: 2023-02-11 + repo-token: ${{ secrets.GITHUB_TOKEN }}