diff --git a/dist/index.js b/dist/index.js index 8d9e388c3484b87bc5d00afbb05bbb020d5e78c2..d92d5b27414a98d70ac15bee6246af4960abe1bf 100644 Binary files a/dist/index.js and b/dist/index.js differ diff --git a/dist/index.js.map b/dist/index.js.map index 692edb1d6462b8fe4a0c1393df67128ef1819c37..3444deee83b4dc495e1d5629ce250f8f63cb692a 100644 Binary files a/dist/index.js.map and b/dist/index.js.map differ diff --git a/src/main.ts b/src/main.ts index dc02e2f5a591fc282a4034969829cb485cb5e969..5b08bd89f16f2da708dbc305f4b987d37dcd277b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -81,11 +81,10 @@ async function translateCommentBody(body: string): Promise { let result = '' await translate(body, {to: 'en'}) .then(res => { - result = ` - > Bot detected the comment body's language is not English, translate it automatically. For the convenience of others, please use English next time. - + result = + ` + > Bot detected the comment body's language is not English, translate it automatically. For the convenience of others, please use English next time^^. ---- - ${res.text} ` }) @@ -105,7 +104,7 @@ async function createComment(issueId: number, body: string, octokit: any): Promi issue_number: issueId, body }) - core.info(`complete to push translate issue comment: ${body} in ${issue_url}.`) + core.info(`complete to push translate issue comment: ${body} in ${issue_url} `) } run()