From a3c77480f7077cdc32f0d60fb0ffd19feee168e0 Mon Sep 17 00:00:00 2001 From: Carson Yang Date: Thu, 21 Sep 2023 14:19:54 +0800 Subject: [PATCH] Add action for translating Non-English issues content to English (#333) Signed-off-by: Carson Yang --- .github/workflows/bot-issues-translator.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/bot-issues-translator.yml diff --git a/.github/workflows/bot-issues-translator.yml b/.github/workflows/bot-issues-translator.yml new file mode 100644 index 000000000000..2723a6e8788a --- /dev/null +++ b/.github/workflows/bot-issues-translator.yml @@ -0,0 +1,19 @@ +name: 'Github Rebot for issues-translator' +on: + issues: + types: [ opened ] + issue_comment: + types: [ created ] +jobs: + translate: + permissions: + issues: write + discussions: write + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: usthe/issues-translate-action@v2.7 + with: + IS_MODIFY_TITLE: true + BOT_GITHUB_TOKEN: ${{ secrets.GH_PAT }} + CUSTOM_BOT_NOTE: Bot detected the issue body's language is not English, translate it automatically. πŸ‘―πŸ‘­πŸ»πŸ§‘β€πŸ€β€πŸ§‘πŸ‘«πŸ§‘πŸΏβ€πŸ€β€πŸ§‘πŸ»πŸ‘©πŸΎβ€πŸ€β€πŸ‘¨πŸΏπŸ‘¬πŸΏ \ No newline at end of file