From 68ff2b0cdbc5570a246dd0bff0276eac7b8863fb Mon Sep 17 00:00:00 2001 From: "Xinwei Xiong(cubxxw)" <3293172751nss@gmail.com> Date: Wed, 17 May 2023 16:38:16 +0800 Subject: [PATCH] feat: provide robot for use Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com> --- .github/workflows/auto-invite.yml | 2 +- .github/workflows/issue-robot.yml | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/issue-robot.yml diff --git a/.github/workflows/auto-invite.yml b/.github/workflows/auto-invite.yml index dfc8b526c..a5e065207 100644 --- a/.github/workflows/auto-invite.yml +++ b/.github/workflows/auto-invite.yml @@ -6,7 +6,7 @@ on: jobs: issue_comment: name: Invite users to join our group - if: ${{ github.event.comment.body == '/invite' }} + if: ${{ github.event.comment.body == '/invite' || github.event.comment.body == '/close' || github.event.comment.body == '/comment' }} runs-on: ubuntu-latest permissions: issues: write diff --git a/.github/workflows/issue-robot.yml b/.github/workflows/issue-robot.yml new file mode 100644 index 000000000..74927a0c2 --- /dev/null +++ b/.github/workflows/issue-robot.yml @@ -0,0 +1,17 @@ +name: 'issue translator' +on: + issue_comment: + types: [created] + issues: + types: [opened] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: usthe/issues-translate-action@v2.7 + with: + # it is not necessary to decide whether you need to modify the issue header content + IS_MODIFY_TITLE: true + BOT_GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} + # Required, input your bot github token \ No newline at end of file