From 109e6543b9ec96180163859ed49819a958bf61e1 Mon Sep 17 00:00:00 2001 From: xingchun-chen <55787491+xingchun-chen@users.noreply.github.com> Date: Fri, 11 Jun 2021 11:22:42 +0800 Subject: [PATCH] modify issues translation robot (#5624) * Add issue robot automatic reply and Translation Co-authored-by: chenxingchun <438044805@qq.com> --- .github/actions/issues-translate | 1 - .github/actions/translate-on-issue | 1 + .github/workflows/issue_robot.yml | 7 +++---- .gitmodules | 6 +++--- 4 files changed, 7 insertions(+), 8 deletions(-) delete mode 160000 .github/actions/issues-translate create mode 160000 .github/actions/translate-on-issue diff --git a/.github/actions/issues-translate b/.github/actions/issues-translate deleted file mode 160000 index b4a675cc16..0000000000 --- a/.github/actions/issues-translate +++ /dev/null @@ -1 +0,0 @@ -Subproject commit b4a675cc16d1826524553771d6b8b1c6c5c51be0 diff --git a/.github/actions/translate-on-issue b/.github/actions/translate-on-issue new file mode 160000 index 0000000000..959b66feb4 --- /dev/null +++ b/.github/actions/translate-on-issue @@ -0,0 +1 @@ +Subproject commit 959b66feb4231b08e8251422ac6d469cdc03d140 diff --git a/.github/workflows/issue_robot.yml b/.github/workflows/issue_robot.yml index 7ef8e468d4..7e35ccac51 100644 --- a/.github/workflows/issue_robot.yml +++ b/.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 diff --git a/.gitmodules b/.gitmodules index 4a2d047d58..d5c455f6da 100644 --- a/.gitmodules +++ b/.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