Browse Source

modify issues translation robot (#5624)

* Add issue robot automatic reply and Translation


Co-authored-by: chenxingchun <438044805@qq.com>
xingchun-chen 3 years ago
parent
commit
b436ef0a2c

+ 0 - 1
.github/actions/issues-translate

@@ -1 +0,0 @@
-Subproject commit b4a675cc16d1826524553771d6b8b1c6c5c51be0

+ 1 - 0
.github/actions/translate-on-issue

@@ -0,0 +1 @@
+Subproject commit 959b66feb4231b08e8251422ac6d469cdc03d140

+ 3 - 4
.github/workflows/issue_robot.yml

@@ -20,8 +20,6 @@ name: issue-robot
 on:
   issues:
     types: [opened]
-  issue_comment:
-      types: [created]
 
 jobs:
   issueRobot:
@@ -34,9 +32,10 @@ jobs:
           submodules: true
 
       - name: "Translation into English in issue"
-        uses: ./.github/actions/issues-translate
+        uses: ./.github/actions/translate-on-issue
         with:
-          BOT_GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
+          translate-title: true
+          translate-body: true
 
       - name: "Comment in issue"
         uses: ./.github/actions/comment-on-issue

+ 3 - 3
.gitmodules

@@ -21,6 +21,6 @@
 [submodule ".github/actions/lable-on-issue"]
 	path = .github/actions/lable-on-issue
 	url = https://github.com/xingchun-chen/labeler
-[submodule ".github/actions/issues-translate"]
-	path = .github/actions/issues-translate
-	url = https://github.com/xingchun-chen/issues-translate-action.git
+[submodule ".github/actions/translate-on-issue"]
+	path = .github/actions/translate-on-issue
+	url = https://github.com/xingchun-chen/translation-helper.git