Skip to content

Commit

Permalink
Merge branch 'main' into migration
Browse files Browse the repository at this point in the history
  • Loading branch information
tianzhou committed Mar 14, 2024
2 parents a81b2c4 + bc12e32 commit 483aa91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/actions/sql-review/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/sql-review/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ async function run(): Promise<void> {

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);

Expand Down

0 comments on commit 483aa91

Please sign in to comment.