modify issues translation robot (#5624)

* Add issue robot automatic reply and Translation


Co-authored-by: chenxingchun <438044805@qq.com>
This commit is contained in:
xingchun-chen 2021-06-11 11:22:42 +08:00 committed by GitHub
parent 5d3b75a0a3
commit b436ef0a2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 8 deletions

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

1
.github/actions/translate-on-issue vendored Submodule

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

View File

@ -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

6
.gitmodules vendored
View File

@ -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