From 2ead222fbc235f9faa23bca90802fb916853f2bb Mon Sep 17 00:00:00 2001 From: Tony Date: Sat, 25 Apr 2026 20:18:54 +0800 Subject: [PATCH 1/3] chore: auto close broken PR --- .github/workflows/docker-test-cont.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-test-cont.yml b/.github/workflows/docker-test-cont.yml index 359886e04826..104eb9326991 100644 --- a/.github/workflows/docker-test-cont.yml +++ b/.github/workflows/docker-test-cont.yml @@ -28,7 +28,7 @@ jobs: # Query the PR number by repo + branch, then assign to step output: run: | gh api "repos/${PR_TARGET_REPO}/pulls" \ - --method GET -f head="${PR_BRANCH}" -f state=open \ + --method GET -f head="${PR_BRANCH}" -f state=all \ --jq '.[0] | "number=\(.number)"' \ >> "${GITHUB_OUTPUT}" @@ -172,8 +172,8 @@ jobs: # Query the PR number by repo + branch, then assign to step output: run: | gh api "repos/${PR_TARGET_REPO}/pulls" \ - --method GET -f head="${PR_BRANCH}" -f state=open \ - --jq '.[0] | "number=\(.number)"' \ + --method GET -f head="${PR_BRANCH}" -f state=all \ + --jq '.[0] | "number=\(.number)\nauthor_association=\(.author_association)"' \ >> "${GITHUB_OUTPUT}" - name: Pull Request Labeler @@ -183,3 +183,11 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} issue-number: ${{ steps.source-run-info.outputs.number }} labels: 'auto: DO NOT merge' + + - name: Close broken PR + if: ${{ steps.source-run-info.outputs.author_association != 'OWNER' && steps.source-run-info.outputs.author_association != 'COLLABORATOR' && steps.source-run-info.outputs.author_association != 'MEMBER' }} + uses: actions-cool/issues-helper@200c78641dbf33838311e5a1e0c31bbdb92d7cf0 # v3.8.0 + with: + actions: 'close-issue' + token: ${{ secrets.GITHUB_TOKEN }} + issue-number: ${{ steps.source-run-info.outputs.number }} From be87dfd52394604d57593eabc2221002eab23241 Mon Sep 17 00:00:00 2001 From: Volundio <37572185+Volundio@users.noreply.github.com> Date: Sat, 25 Apr 2026 20:21:21 +0800 Subject: [PATCH 2/3] docs: edit zaimanhua description. (#21829) --- lib/routes/zaimanhua/comic.ts | 1 + lib/routes/zaimanhua/update.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/routes/zaimanhua/comic.ts b/lib/routes/zaimanhua/comic.ts index 420e9d527bde..752525fab48e 100644 --- a/lib/routes/zaimanhua/comic.ts +++ b/lib/routes/zaimanhua/comic.ts @@ -38,6 +38,7 @@ export const route: Route = { maintainers: ['kjasn'], description: `::: Warning 未登录用户无法获取到所有漫画,需要设置\`ZAIMANHUA_TOKEN\`环境变量以使用 API 授权访问。 +且由于源网站本身的限制,建议尽量在部署于中国大陆网络内的 RSSHub 节点中使用本路由。若在海外网络环境中使用,即使设置了\`ZAIMANHUA_TOKEN\`环境变量,也可能无法获取全部漫画。 :::`, handler, }; diff --git a/lib/routes/zaimanhua/update.ts b/lib/routes/zaimanhua/update.ts index a856183c3326..fd166a1f1108 100644 --- a/lib/routes/zaimanhua/update.ts +++ b/lib/routes/zaimanhua/update.ts @@ -36,7 +36,7 @@ export const route: Route = { name: '最近更新', maintainers: ['kjasn'], description: `::: Warning -建议设置\`ZAIMANHUA_TOKEN\`环境变量以使用 API 授权访问。 +建议设置\`ZAIMANHUA_TOKEN\`环境变量以使用 API 授权访问。且由于源网站本身的限制,建议尽量在部署于中国大陆网络内的 RSSHub 节点中使用本路由。若在海外网络环境中使用,即使设置了\`ZAIMANHUA_TOKEN\`环境变量,也可能无法获取全部漫画。 :::`, handler: async () => { const baseUrl = 'https://manhua.zaimanhua.com'; From 7c6fe1c854a74dff6fc1c395e1c75f45caa59a52 Mon Sep 17 00:00:00 2001 From: Tony Date: Sat, 25 Apr 2026 20:39:07 +0800 Subject: [PATCH 3/3] chore: auto close broken PR Co-authored-by: Copilot --- .github/workflows/stale.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index dbb88ca6ff90..33c12c4e41d3 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -3,6 +3,7 @@ name: 'Close stale issues and PRs' on: schedule: - cron: '31 23 * * *' + workflow_dispatch: permissions: issues: write @@ -25,6 +26,19 @@ jobs: exempt-issue-labels: 'wait for upstream' exempt-pr-labels: 'wait for upstream' any-of-issue-labels: 'more data required' + + - name: Close Broken PRs + uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10.2.0 + with: + days-before-issue-stale: -1 + days-before-issue-close: -1 + days-before-pr-stale: 1 + days-before-pr-close: 0 + only-pr-labels: 'auto: DO NOT merge' + stale-pr-label: 'Stale' + remove-pr-stale-when-updated: true + close-pr-message: > + This PR is being auto-closed because it has a broken Docker build without any fixes. Push a fix and reopen when ready. lock: runs-on: ubuntu-slim steps: