Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .github/workflows/docker-test-cont.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down Expand Up @@ -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
Expand All @@ -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 }}
14 changes: 14 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: 'Close stale issues and PRs'
on:
schedule:
- cron: '31 23 * * *'
workflow_dispatch:

permissions:
issues: write
Expand All @@ -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:
Expand Down
1 change: 1 addition & 0 deletions lib/routes/zaimanhua/comic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const route: Route = {
maintainers: ['kjasn'],
description: `::: Warning
未登录用户无法获取到所有漫画,需要设置\`ZAIMANHUA_TOKEN\`环境变量以使用 API 授权访问。
且由于源网站本身的限制,建议尽量在部署于中国大陆网络内的 RSSHub 节点中使用本路由。若在海外网络环境中使用,即使设置了\`ZAIMANHUA_TOKEN\`环境变量,也可能无法获取全部漫画。
:::`,
handler,
};
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/zaimanhua/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Loading