From ff955930efd633b4f1570fbf3f3d879768a37f10 Mon Sep 17 00:00:00 2001 From: Xuefei Li Date: Mon, 27 Oct 2025 11:08:26 +0800 Subject: [PATCH 1/2] Add translate-issues workflow configuration add issue auto translate by Dromara --- .github/workflows/translate-issues.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/translate-issues.yml diff --git a/.github/workflows/translate-issues.yml b/.github/workflows/translate-issues.yml new file mode 100644 index 0000000000..a542afc972 --- /dev/null +++ b/.github/workflows/translate-issues.yml @@ -0,0 +1,17 @@ +name: Auto Translate Issues & PRs + +on: + issues: + types: [opened, edited] # 当 Issue 被创建或编辑时触发 + pull_request: + types: [opened, edited] # 当 Pull Request 被创建或编辑时触发 + +jobs: + translate: + runs-on: ubuntu-latest + steps: + - name: Auto Translate + uses: dromara/issues-translate-action@v1.2.3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + label-name: 'auto-translated' From b13b9f6bf3107e383c7033add261c0ea52953225 Mon Sep 17 00:00:00 2001 From: Xuefei Li Date: Mon, 27 Oct 2025 11:12:17 +0800 Subject: [PATCH 2/2] Update translate-issues.yml to include permissions Add permissions for issues and pull requests in workflow --- .github/workflows/translate-issues.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/translate-issues.yml b/.github/workflows/translate-issues.yml index a542afc972..8c55f5df40 100644 --- a/.github/workflows/translate-issues.yml +++ b/.github/workflows/translate-issues.yml @@ -9,6 +9,11 @@ on: jobs: translate: runs-on: ubuntu-latest + + permissions: + issues: write # 允许 Action 在 Issues 上发表评论和添加标签 + pull-requests: write # 允许 Action 在 Pull Requests 上发表评论和添加标签 + steps: - name: Auto Translate uses: dromara/issues-translate-action@v1.2.3