From 16e89f2b2d3212b59e5be9ab43e16d510b7affad Mon Sep 17 00:00:00 2001 From: tongke <124763920+tongke6@users.noreply.github.com> Date: Mon, 17 Feb 2025 18:22:49 +0800 Subject: [PATCH] Chore: add github issue translate action (#454) --- .github/workflows/translator.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/translator.yml diff --git a/.github/workflows/translator.yml b/.github/workflows/translator.yml new file mode 100644 index 00000000..19dff940 --- /dev/null +++ b/.github/workflows/translator.yml @@ -0,0 +1,30 @@ +name: 'translator' +on: + issues: + types: [opened, edited] + issue_comment: + types: [created, edited] + discussion: + types: [created, edited] + discussion_comment: + types: [created, edited] + pull_request_target: + types: [opened, edited] + pull_request_review_comment: + types: [created, edited] + +jobs: + translate: + permissions: + issues: write + discussions: write + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: Ant-OSS-Utility-Set/github-issue-translate-action@main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + IS_MODIFY_TITLE: true + APPEND_TRANSLATION: true \ No newline at end of file