diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index eaa2f1414..d0efa93a0 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,8 +1,6 @@ ## 该 PR 相关 Issue / Involved issue @@ -11,61 +9,23 @@ Close # ## 完整路由地址 / Example for the proposed route(s) - - ```routes ``` - ## 新RSS检查列表 / New RSS Script Checklist - - - -- [ ] 这个PR中包含了新的路由吗? Does this PR add new route? - - 如果有, 请完成检查列表. If yes, please finish the check list - - **如果你的PR符合下方某个事项, 也请注明. If any of the checklist item meets your PR, please fill it out.** - - [x] <- 这样打勾 -- [ ] 是否提供了文档? Documentation provided? - - [ ] 是否提供了英文文档? EN Documentation provided? -- [ ] 是否支持全文获取? Is this RSS Script support fulltext? - - [ ] 如果全文获取中需要访问文章链接, 是否使用了缓存? If fulltext requires to fetch detail pages, is cache used in the process? - - [缓存说明](https://docs.rsshub.app/joinus/quick-start.html#ti-jiao-xin-de-rsshub-gui-ze-bian-xie-jiao-ben-shi-yong-huan-cun) | [How to use cache](https://docs.rsshub.app/joinus/quick-start.html#ti-jiao-xin-de-rsshub-gui-ze-bian-xie-jiao-ben-shi-yong-huan-cun) -- [ ] 目标是否有明显的反爬/频率限制? Is there any sign of anti-bot or rate limit? - - [ ] 如果有, 是否有对应的措施? (延长缓存时间, 写文档说明, etc.) If yes, do your code reflect this sign? (e.g. write documentations, use long cache time) -- [ ] 目标是否有提供日期? Is there a date in the source? - - [ ] 如果有,包是否正确解析? If there is, can this script provide this info? - - [ ] 如果有提供解析能力,时区是否正确调整? Is the timezone correctly provided? - - 如果有提供日期,但是没有提供解析,请说明原因 If there is a date but this script does not parse, please provide your reason. -- [ ] 是否引入的新的包? Any new package introduced? - - 如果有, 请说明原因. If yes, please state your reason -- [ ] 是否使用了`Puppeteer`? Make use of `Puppeteer`? - - 如果有, 请说明原因. If yes, please state your reason +- [ ] New Route +- [ ] Documentation + - [ ] CN + - [ ] EN +- [ ] 全文获取 fulltext + - [ ] Use Cache +- [ ] 反爬/频率限制 anti-bot or rate limit? + - [ ] 如果有, 是否有对应的措施? If yes, do your code reflect this sign? +- [ ] 日期和时间 date and time + - [ ] 可以解析 Parsed + - [ ] 时区调整 Correct TimeZone +- [ ] 添加了新的包 New package added +- [ ] `Puppeteer` ## 说明 / Note - diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 472953b0e..8e2e0c9b5 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -11,9 +11,10 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: node-version: '14' + cache: 'npm' - run: yarn install - run: npm run format - name: Commit files diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 7b0f8cce0..4f63447dc 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -12,9 +12,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: node-version: '14' + cache: 'npm' registry-url: 'https://registry.npmjs.org' - name: Release run: | diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml index 949ca338a..e01ff38c0 100644 --- a/.github/workflows/pr-lint.yml +++ b/.github/workflows/pr-lint.yml @@ -7,10 +7,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: node-version: '14' - - run: yarn install + cache: 'npm' + - run: npm ci - name: Lint run: | npm run lint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 75a44763b..bea869a8d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,11 +15,11 @@ jobs: strategy: matrix: - node-version: [12.x, 14.x] + node-version: [14.x] steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - run: npm ci diff --git a/Dockerfile b/Dockerfile index 779441d88..55251a833 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ ARG PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1; RUN ln -sf /bin/bash /bin/sh -RUN apt-get update && apt-get install -yq libgconf-2-4 apt-transport-https git dumb-init python build-essential --no-install-recommends +RUN apt-get update && apt-get install -yq libgconf-2-4 apt-transport-https git dumb-init python3 build-essential --no-install-recommends WORKDIR /app COPY . /app diff --git a/package-lock.json b/package-lock.json index aa34c0e38..4db9a1503 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6074,7 +6074,7 @@ "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==" }, "node_modules/browser-request": { - "resolved": "git+ssh://git@github.com/postlight/browser-request.git#38faa5b85741aabfca61aa37d1ef044d68969ddf", + "resolved": "git+https://git@github.com/postlight/browser-request.git#38faa5b85741aabfca61aa37d1ef044d68969ddf", "engines": [ "node" ], @@ -8522,7 +8522,7 @@ "dev": true }, "node_modules/difflib": { - "resolved": "git+ssh://git@github.com/postlight/difflib.js.git#32e8e38c7fcd935241b9baab71bb432fd9b166ed", + "resolved": "git+https://git@github.com/postlight/difflib.js.git#32e8e38c7fcd935241b9baab71bb432fd9b166ed", "dependencies": { "heap": ">= 0.2.0" } @@ -31088,7 +31088,7 @@ "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==" }, "browser-request": { - "version": "git+ssh://git@github.com/postlight/browser-request.git#38faa5b85741aabfca61aa37d1ef044d68969ddf", + "version": "git+https://git@github.com/postlight/browser-request.git#38faa5b85741aabfca61aa37d1ef044d68969ddf", "from": "browser-request@github:postlight/browser-request#feat-add-headers-to-response", "requires": { "http-headers": "^3.0.1" @@ -33156,7 +33156,7 @@ } }, "difflib": { - "version": "git+ssh://git@github.com/postlight/difflib.js.git#32e8e38c7fcd935241b9baab71bb432fd9b166ed", + "version": "git+https://git@github.com/postlight/difflib.js.git#32e8e38c7fcd935241b9baab71bb432fd9b166ed", "from": "difflib@github:postlight/difflib.js", "requires": { "heap": ">= 0.2.0"