From 357158d81faffcff5e39866181fd0e0243a6305c Mon Sep 17 00:00:00 2001 From: tomsun28 Date: Fri, 13 Nov 2020 01:53:37 +0800 Subject: [PATCH] modify bot markdown comment --- dist/index.js | Bin 675725 -> 675624 bytes dist/index.js.map | Bin 586836 -> 586710 bytes src/main.ts | 9 ++++----- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/dist/index.js b/dist/index.js index 8d9e388c3484b87bc5d00afbb05bbb020d5e78c2..d92d5b27414a98d70ac15bee6246af4960abe1bf 100644 GIT binary patch delta 116 zcmeC3ueoBLW@7Pc1l={wlj45!=6vGYxzu!EIlyA21MJG%gv0xFo^ u%+EGkG%ijLC=8X;1p<(w?ZyIZyO@7Pc1l>0MlGTw-3q{(gGJB}JKe>6vMj8cF#jo_T5c z(;bhoi%f4}XEU5GaEz4&tW-GxC>fuVpPrc)pO=`MYGkFLQjIE9JAFYGtJ3!4>}>Ar z)8+WtW{c`6C@64o0SO?`1p*Mwwf!7F+b$+Xz4lHaHXvpPVh$kY+}S`J32ZCO?K>%o18F% zf3oea9>#*^Q@h$v?P3ICrtPP8F*lu>-rUM!vi)}}%Qg1tA6r;NreEr1nJpFCHx o5R(TafIt@rK=k(3K9(O$j0){_6Ip4o0I)|oQ~&?~ delta 233 zcmcciT=~ii!dn5rdm5XI-9#}KDI-Kaq^nO+><}-Jjz+-nP?3Z zcTJl9z>QI?`O2>LE4vthm}&c!UCb$`rUx{zu*zlTrR8gQ1^fHy6_*rc=A~z*Rca*V zmv{n&H8riLFKlHInQqa_Vlv&|h?#AAeg_MOY64I`J|{mtGcP_bF*nu7NRj4*W zb2@(`i_-SmR+gje(?fe%=1Ax%C@93_#pD4gAkYN@5FL}ZoxP9c2NR=S+eDVOiL7lC O+1e(uZ=1+*EeQaBxm6qh diff --git a/src/main.ts b/src/main.ts index dc02e2f..5b08bd8 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() -- GitLab