Skip to content

Commit 9875b41

Browse files
authored
Merge pull request #880 from DIYgod/master
[pull] master from diygod:master
2 parents e59e924 + ee590b4 commit 9875b41

File tree

110 files changed

+5390
-5600
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+5390
-5600
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// https://github.com/devcontainers/images/blob/v0.2.24/src/javascript-node/.devcontainer/devcontainer.json
33
{
44
"name": "Node.js",
5-
"image": "mcr.microsoft.com/devcontainers/javascript-node:16-bullseye",
5+
"image": "mcr.microsoft.com/devcontainers/javascript-node:18-bullseye",
66

77
// Configure tool-specific properties.
88
"customizations": {

.github/dependabot.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ updates:
1616
versions: ['>=12.0.0']
1717
- dependency-name: ip-regex
1818
versions: ['>=5.0.0']
19-
- dependency-name: parse-torrent
20-
versions: ['>=10.0.0']
2119
- dependency-name: query-string
2220
versions: ['>=8.0.0']
2321
- dependency-name: rand-user-agent

.github/workflows/docker-release.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
needs: check-env
3535
if: needs.check-env.outputs.check-docker == 'true'
3636
timeout-minutes: 120
37+
permissions:
38+
packages: write
39+
contents: read
3740
steps:
3841
- name: Checkout
3942
uses: actions/checkout@v3
@@ -44,17 +47,26 @@ jobs:
4447
- name: Set up Docker Buildx
4548
uses: docker/setup-buildx-action@v2
4649

47-
- name: Login to DockerHub
50+
- name: Log in to Docker Hub
4851
uses: docker/login-action@v2
4952
with:
5053
username: ${{ secrets.DOCKER_USERNAME }}
5154
password: ${{ secrets.DOCKER_PASSWORD }}
5255

56+
- name: Log in to the Container registry
57+
uses: docker/login-action@v2
58+
with:
59+
registry: ghcr.io
60+
username: ${{ github.actor }}
61+
password: ${{ secrets.GITHUB_TOKEN }}
62+
5363
- name: Extract Docker metadata (ordinary version)
5464
id: meta-ordinary
5565
uses: docker/metadata-action@v4
5666
with:
57-
images: ${{ secrets.DOCKER_USERNAME }}/rsshub
67+
images: |
68+
${{ secrets.DOCKER_USERNAME }}/rsshub
69+
ghcr.io/${{ github.repository }}
5870
tags: |
5971
type=raw,value=latest,enable=true
6072
type=raw,value={{date 'YYYY-MM-DD'}},enable=true
@@ -77,7 +89,9 @@ jobs:
7789
id: meta-chromium-bundled
7890
uses: docker/metadata-action@v4
7991
with:
80-
images: ${{ secrets.DOCKER_USERNAME }}/rsshub
92+
images: |
93+
${{ secrets.DOCKER_USERNAME }}/rsshub
94+
ghcr.io/${{ github.repository }}
8195
tags: |
8296
type=raw,value=chromium-bundled,enable=true
8397
type=raw,value=chromium-bundled-{{date 'YYYY-MM-DD'}},enable=true

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions/checkout@v3
2121
- uses: actions/setup-node@v3
2222
with:
23-
node-version: 16
23+
node-version: 18
2424
cache: 'yarn'
2525
registry-url: 'https://registry.npmjs.org'
2626
- name: Release

.github/workflows/pr-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
wait-for-processing: true
4646

4747
titleLint:
48-
if: ${{ github.event_name == 'pull_request_target' }}
48+
if: ${{ github.event_name == 'pull_request_target' && github.repository == 'DIYgod/RSSHub' }}
4949
name: Validate PR title
5050
runs-on: ubuntu-latest
5151
timeout-minutes: 5

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
strategy:
3232
fail-fast: false
3333
matrix:
34-
node-version: [ 14, 16, 18 ]
34+
node-version: [ 16, 18 ]
3535
name: Jest on Node ${{ matrix.node-version }}
3636
steps:
3737
- name: Collect Workflow Telemetry
@@ -73,7 +73,7 @@ jobs:
7373
strategy:
7474
fail-fast: false
7575
matrix:
76-
node-version: [ 14, 16, 18 ]
76+
node-version: [ 16, 18 ]
7777
chromium:
7878
- name: bundled Chromium
7979
dependency: ''
@@ -117,7 +117,7 @@ jobs:
117117
strategy:
118118
fail-fast: false
119119
matrix:
120-
node-version: [ 14, 16, 18 ]
120+
node-version: [ 16, 18 ]
121121
name: Build docs on Node ${{ matrix.node-version }}
122122
steps:
123123
- uses: actions/checkout@v3
@@ -141,7 +141,7 @@ jobs:
141141
strategy:
142142
fail-fast: false
143143
matrix:
144-
node-version: [ 14, 16, 18 ]
144+
node-version: [ 16, 18 ]
145145
name: Build radar and maintainer on Node ${{ matrix.node-version }}
146146
steps:
147147
- uses: actions/checkout@v3

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:16-bullseye as dep-builder
1+
FROM node:18-bullseye as dep-builder
22
# Here we use the non-slim image to provide build-time deps (compilers and python), thus no need to install later.
33
# This effectively speeds up qemu-based cross-build.
44

@@ -30,7 +30,7 @@ FROM debian:bullseye-slim as dep-version-parser
3030
# This stage is necessary to limit the cache miss scope.
3131
# With this stage, any modification to package.json won't break the build cache of the next two stages as long as the
3232
# version unchanged.
33-
# node:16-bullseye-slim is based on debian:bullseye-slim so this stage would not cause any additional download.
33+
# node:18-bullseye-slim is based on debian:bullseye-slim so this stage would not cause any additional download.
3434

3535
WORKDIR /ver
3636
COPY ./package.json /app/
@@ -42,7 +42,7 @@ RUN \
4242

4343
# ---------------------------------------------------------------------------------------------------------------------
4444

45-
FROM node:16-bullseye-slim as docker-minifier
45+
FROM node:18-bullseye-slim as docker-minifier
4646
# The stage is used to further reduce the image size by removing unused files.
4747

4848
WORKDIR /minifier
@@ -74,7 +74,7 @@ RUN \
7474

7575
# ---------------------------------------------------------------------------------------------------------------------
7676

77-
FROM node:16-bullseye-slim as chromium-downloader
77+
FROM node:18-bullseye-slim as chromium-downloader
7878
# This stage is necessary to improve build concurrency and minimize the image size.
7979
# Yeah, downloading Chromium never needs those dependencies below.
8080

@@ -104,7 +104,7 @@ RUN \
104104

105105
# ---------------------------------------------------------------------------------------------------------------------
106106

107-
FROM node:16-bullseye-slim as app
107+
FROM node:18-bullseye-slim as app
108108

109109
LABEL org.opencontainers.image.authors="https://github.com/DIYgod/RSSHub"
110110

README.md

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
[![docker publish](https://img.shields.io/github/actions/workflow/status/DIYgod/RSSHub/docker-release.yml?branch=master&label=docker%20publish&logo=docker&style=flat-square)](https://hub.docker.com/r/diygod/rsshub)
1111
[![test](https://img.shields.io/github/actions/workflow/status/DIYgod/RSSHub/test.yml?branch=master&label=test&logo=github&style=flat-square)](https://github.com/DIYgod/RSSHub/actions/workflows/test.yml?query=event%3Apush+branch%3Amaster)
1212
[![Test coverage](https://img.shields.io/codecov/c/github/DIYgod/RSSHub.svg?style=flat-square&logo=codecov)](https://app.codecov.io/gh/DIYgod/RSSHub/branch/master)
13-
[![Foresight Docs](https://api-public.service.runforesight.com/api/v1/badge/success?repoId=5da20e56-cecf-4b05-9bcd-cab097fb2dca)](https://docs.runforesight.com/)
13+
[![CodeFactor](https://www.codefactor.io/repository/github/diygod/rsshub/badge)](https://www.codefactor.io/repository/github/diygod/rsshub)
14+
[![DeepScan grade](https://deepscan.io/api/teams/6244/projects/8135/branches/92448/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=6244&pid=8135&bid=92448)
1415

1516
## Introduction
1617

@@ -35,21 +36,9 @@ RSSHub 是一个开源、简单易用、易于扩展的 RSS 生成器,可以
3536
### Special Sponsors
3637

3738
<p>
38-
<a href="https://rss3.io/" target="_blank"><img height="60px" src="https://i.imgur.com/vHtI4bz.png"></a>
39+
<a href="https://rss3.io/" target="_blank"><img height="50px" src="https://i.imgur.com/vHtI4bz.png"></a>
3940
</p>
4041

41-
<table width="100%">
42-
<tr>
43-
<td><img width="1000" height="0"><a href="https://www.runforesight.com/?utm_source=RSSHub&utm_medium=sponsorship"><img src="https://www.thundra.io/hubfs/RunForesight/GitHub%20Sponsorship%20banners/github-actions-observability.png"
44-
alt="Foresight" width="260" align="right"></a><h3>Foresight: Increase CI/CD Health & Test Performance</h3><p>
45-
Foresight provides full visibility and deep insights into the health and performance of your tests and CI pipelines. Assess the risk of code changes, deal with flaky tests, see workflow and test trends over time, and improve the contributing experience with Foresight.</p>
46-
47-
[Sign up now!](https://runforesight.com/?utm_source=RSSHub&utm_medium=sponsorship)
48-
49-
</td>
50-
</tr>
51-
</table>
52-
5342
[![](https://opencollective.com/static/images/become_sponsor.svg)](https://docs.rsshub.app/en/support/)
5443

5544
### Contributors

app.json

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,8 @@
1414
"value": "80",
1515
"required": false
1616
},
17-
"PIXIV_REFRESHTOKEN": {
18-
"required": false
19-
},
20-
"DISQUS_API_KEY": {
21-
"required": false
22-
},
23-
"SPOTIFY_CLIENT_ID": {
24-
"required": false
25-
},
26-
"SPOTIFY_CLIENT_SECRET": {
27-
"required": false
28-
},
29-
"SPOTIFY_REFRESHTOKEN": {
30-
"required": false
31-
},
32-
"TWITTER_CONSUMER_KEY": {
33-
"required": false
34-
},
35-
"TWITTER_CONSUMER_SECRET": {
36-
"required": false
37-
},
38-
"YOUTUBE_KEY": {
17+
"PUPPETEER_SKIP_CHROMIUM_DOWNLOAD": {
18+
"value": "1",
3919
"required": false
4020
}
4121
}

docs/.format/chineseFormat.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ module.exports = {
2222
})
2323
.use(prettier)
2424
.use(gfm, {
25-
options: {
26-
stringLength: width,
27-
},
25+
stringLength: width,
2826
})
2927
.process(doc);
3028
return typeof result === 'string' ? result : typeof result.contents === 'string' ? result.contents : result.result;

0 commit comments

Comments
 (0)