You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by wa...@apache.org on 2021/02/09 08:50:36 UTC

[echarts-bot] branch master updated: fix issue translate check bug.

This is an automated email from the ASF dual-hosted git repository.

wangzx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-bot.git


The following commit(s) were added to refs/heads/master by this push:
     new 687fa7c  fix issue translate check bug.
687fa7c is described below

commit 687fa7cfa580ecea70c361e7b506243009a81924
Author: plainheart <yh...@all-my-life.cn>
AuthorDate: Tue Feb 9 16:49:55 2021 +0800

    fix issue translate check bug.
---
 index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.js b/index.js
index 62a417d..d0196a4 100644
--- a/index.js
+++ b/index.js
@@ -226,7 +226,7 @@ async function commentIssue(context, commentText, needTranslate) {
             translatedBody = res && res.translated;
         }
 
-        if (!isEnTitle || !isEnBody) {
+        if ((!isEnTitle || !isEnBody) && (translatedTitle || translatedBody)) {
             const translateTip = replaceAll(
                 text.ISSUE_COMMENT_TRANSLATE_TIP,
                 'AT_ISSUE_AUTHOR',


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org