mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-04 02:58:08 +08:00
fix: core reference, template
This commit is contained in:
10
.github/PULL_REQUEST_TEMPLATE.md
vendored
10
.github/PULL_REQUEST_TEMPLATE.md
vendored
@@ -1,3 +1,11 @@
|
|||||||
|
<!--
|
||||||
|
|
||||||
|
请不要删除, 自行修改已有结构, 这会导致自动检测失败;不符合要求的部分留空即可
|
||||||
|
|
||||||
|
Do not remove existing titles or structures: it breaks CI
|
||||||
|
|
||||||
|
-->
|
||||||
|
|
||||||
## 该 PR 相关 Issue / Involved issue
|
## 该 PR 相关 Issue / Involved issue
|
||||||
|
|
||||||
Close #
|
Close #
|
||||||
@@ -23,7 +31,7 @@ NOROUTE
|
|||||||
```
|
```
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- FILL HERE -->
|
<!-- 在下方填写 FILL BELOW -->
|
||||||
```routes
|
```routes
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
4
.github/workflows/pr-deploy-route-test.yml
vendored
4
.github/workflows/pr-deploy-route-test.yml
vendored
@@ -37,6 +37,6 @@ jobs:
|
|||||||
const link = process.env.TEST_BASEURL
|
const link = process.env.TEST_BASEURL
|
||||||
const routes = JSON.parse(process.env.TEST_ROUTES)
|
const routes = JSON.parse(process.env.TEST_ROUTES)
|
||||||
const number = context.payload.pull_request.number
|
const number = context.payload.pull_request.number
|
||||||
console.log(link, routes, number)
|
core.info(`${link}, ${routes}, ${number}`)
|
||||||
const script = require(`${process.env.GITHUB_WORKSPACE}/scripts/workflow/test-route/test.js`)
|
const script = require(`${process.env.GITHUB_WORKSPACE}/scripts/workflow/test-route/test.js`)
|
||||||
return await script({github, context}, link, routes, number)
|
return await script({github, context, core}, link, routes, number)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
||||||
module.exports = async ({ github, context }, baseUrl, routes, number) => {
|
module.exports = async ({ github, context, core}, baseUrl, routes, number) => {
|
||||||
if (routes[0] === 'NOROUTE') {
|
if (routes[0] === 'NOROUTE') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -13,7 +13,7 @@ module.exports = async ({ github, context }, baseUrl, routes, number) => {
|
|||||||
let com = 'Successfully generated as following:\n\n';
|
let com = 'Successfully generated as following:\n\n';
|
||||||
|
|
||||||
for (const lks of links) {
|
for (const lks of links) {
|
||||||
console.log('testing route: ', lks);
|
core.info(`testing route: ${lks}`);
|
||||||
// Intended, one at a time
|
// Intended, one at a time
|
||||||
const res = await github.request(`GET ${lks}`).catch((err) => {
|
const res = await github.request(`GET ${lks}`).catch((err) => {
|
||||||
com += `
|
com += `
|
||||||
|
|||||||
Reference in New Issue
Block a user