From 6e818032b95409a75bf6ceaf48b4defeb91821cb Mon Sep 17 00:00:00 2001 From: xingchun-chen <55787491+xingchun-chen@users.noreply.github.com> Date: Thu, 10 Jun 2021 15:24:47 +0800 Subject: [PATCH] modify issues translation robot (#5614) * Add issue robot automatic reply and Translation --- .github/actions/issues-translate | 1 + .github/actions/translation-on-issue | 1 - .github/workflows/issue_robot.yml | 7 ++++--- .gitmodules | 6 +++--- 4 files changed, 8 insertions(+), 7 deletions(-) create mode 160000 .github/actions/issues-translate delete mode 160000 .github/actions/translation-on-issue diff --git a/.github/actions/issues-translate b/.github/actions/issues-translate new file mode 160000 index 0000000000..b4a675cc16 --- /dev/null +++ b/.github/actions/issues-translate @@ -0,0 +1 @@ +Subproject commit b4a675cc16d1826524553771d6b8b1c6c5c51be0 diff --git a/.github/actions/translation-on-issue b/.github/actions/translation-on-issue deleted file mode 160000 index 4b50621337..0000000000 --- a/.github/actions/translation-on-issue +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 4b5062133773227695d089319f0374ff0868c9fb diff --git a/.github/workflows/issue_robot.yml b/.github/workflows/issue_robot.yml index 9ed33065aa..7ef8e468d4 100644 --- a/.github/workflows/issue_robot.yml +++ b/.github/workflows/issue_robot.yml @@ -20,6 +20,8 @@ name: issue-robot on: issues: types: [opened] + issue_comment: + types: [created] jobs: issueRobot: @@ -32,10 +34,9 @@ jobs: submodules: true - name: "Translation into English in issue" - uses: ./.github/actions/translation-on-issue + uses: ./.github/actions/issues-translate with: - translate-title: true - translate-body: false + BOT_GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} - name: "Comment in issue" uses: ./.github/actions/comment-on-issue diff --git a/.gitmodules b/.gitmodules index 6a7832aa8a..4a2d047d58 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/translation-on-issue"] - path = .github/actions/translation-on-issue - url = https://github.com/xingchun-chen/translation-helper +[submodule ".github/actions/issues-translate"] + path = .github/actions/issues-translate + url = https://github.com/xingchun-chen/issues-translate-action.git