From bc12e321355a705afdd1fc7c29a5759109008e58 Mon Sep 17 00:00:00 2001 From: tianzhou Date: Thu, 14 Mar 2024 14:17:25 +0800 Subject: [PATCH] chore: fix sql review doc link --- .github/actions/sql-review/dist/index.js | 2 +- .github/actions/sql-review/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/sql-review/dist/index.js b/.github/actions/sql-review/dist/index.js index 0febef0..7728c44 100644 --- a/.github/actions/sql-review/dist/index.js +++ b/.github/actions/sql-review/dist/index.js @@ -102,7 +102,7 @@ function run() { const responseData = yield response.json(); core.debug("Advices:" + JSON.stringify(responseData.advices)); responseData.advices.forEach((advice) => { - const annotation = `::${advice.status} file=${file},line=${advice.line},col=${advice.column},title=${advice.title} (${advice.code})::${advice.content}\nDoc: https://www.bytebase.com/docs/reference/error-code/advisor#${advice.code}`; + const annotation = `::${advice.status} file=${file},line=${advice.line},col=${advice.column},title=${advice.title} (${advice.code})::${advice.content}. https://www.bytebase.com/docs/reference/error-code/advisor#${advice.code}`; // Emit annotations for each advice core.info(annotation); if (advice.status === 'ERROR' || advice.status === 'WARNING') { diff --git a/.github/actions/sql-review/index.ts b/.github/actions/sql-review/index.ts index 0bcb19d..f034ebf 100644 --- a/.github/actions/sql-review/index.ts +++ b/.github/actions/sql-review/index.ts @@ -80,7 +80,7 @@ async function run(): Promise { core.debug("Advices:" + JSON.stringify(responseData.advices)); responseData.advices.forEach((advice: { status: string; line: any; column: any; title: any; code: any; content: any; }) => { - const annotation = `::${advice.status} file=${file},line=${advice.line},col=${advice.column},title=${advice.title} (${advice.code})::${advice.content}\nDoc: https://www.bytebase.com/docs/reference/error-code/advisor#${advice.code}`; + const annotation = `::${advice.status} file=${file},line=${advice.line},col=${advice.column},title=${advice.title} (${advice.code})::${advice.content}. https://www.bytebase.com/docs/reference/error-code/advisor#${advice.code}`; // Emit annotations for each advice core.info(annotation);