diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 9e989b34b7..f44e784cfb 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,3 +1,11 @@ + + ## 该 PR 相关 Issue / Involved issue Close # @@ -23,7 +31,7 @@ NOROUTE ``` --> - + ```routes ``` diff --git a/.github/workflows/pr-deploy-route-test.yml b/.github/workflows/pr-deploy-route-test.yml index 31e582ab50..6a4cda4d03 100644 --- a/.github/workflows/pr-deploy-route-test.yml +++ b/.github/workflows/pr-deploy-route-test.yml @@ -37,6 +37,6 @@ jobs: const link = process.env.TEST_BASEURL const routes = JSON.parse(process.env.TEST_ROUTES) 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`) - return await script({github, context}, link, routes, number) + return await script({github, context, core}, link, routes, number) diff --git a/scripts/workflow/test-route/test.js b/scripts/workflow/test-route/test.js index 6553a5b132..a4af766de8 100644 --- a/scripts/workflow/test-route/test.js +++ b/scripts/workflow/test-route/test.js @@ -1,6 +1,6 @@ /* eslint-disable */ -module.exports = async ({ github, context }, baseUrl, routes, number) => { +module.exports = async ({ github, context, core}, baseUrl, routes, number) => { if (routes[0] === 'NOROUTE') { return; } @@ -13,7 +13,7 @@ module.exports = async ({ github, context }, baseUrl, routes, number) => { let com = 'Successfully generated as following:\n\n'; for (const lks of links) { - console.log('testing route: ', lks); + core.info(`testing route: ${lks}`); // Intended, one at a time const res = await github.request(`GET ${lks}`).catch((err) => { com += `