提交 357158d8 编写于 作者: sinat_25235033's avatar sinat_25235033

modify bot markdown comment

上级 1546fc66
此差异由.gitattributes 抑制。
此差异由.gitattributes 抑制。
......@@ -81,11 +81,10 @@ async function translateCommentBody(body: string): Promise<string> {
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()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册