From 6e7685dc5805325abf0b8a9e92b610d5930c1ab2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Mind=C3=AAllo=20de=20Andrade?= Date: Thu, 23 May 2024 17:51:31 +0000 Subject: [PATCH 1/5] chore(actions): issue translator --- .github/workflows/issue-translator.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/issue-translator.yml diff --git a/.github/workflows/issue-translator.yml b/.github/workflows/issue-translator.yml new file mode 100644 index 00000000..640416de --- /dev/null +++ b/.github/workflows/issue-translator.yml @@ -0,0 +1,18 @@ +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: + IS_MODIFY_TITLE: false + # not require, default false, . Decide whether to modify the issue title + # if true, the robot account @Issues-translate-bot must have modification permissions, invite @Issues-translate-bot to your project or use your custom bot. + CUSTOM_BOT_NOTE: Bot detected the issue body's language is not English, translate it automatically. πŸ‘―πŸ‘­πŸ»πŸ§‘β€πŸ€β€πŸ§‘πŸ‘«πŸ§‘πŸΏβ€πŸ€β€πŸ§‘πŸ»πŸ‘©πŸΎβ€πŸ€β€πŸ‘¨πŸΏπŸ‘¬πŸΏ + # not require. Customize the translation robot prefix message. \ No newline at end of file From 56e25dd6e3e3e36e3288fad0820b7ac77daccfaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Mind=C3=AAllo=20de=20Andrade?= Date: Thu, 23 May 2024 17:54:50 +0000 Subject: [PATCH 2/5] chore(issue-translator): add trailling space --- .github/workflows/issue-translator.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/issue-translator.yml b/.github/workflows/issue-translator.yml index 640416de..42118571 100644 --- a/.github/workflows/issue-translator.yml +++ b/.github/workflows/issue-translator.yml @@ -15,4 +15,4 @@ jobs: # not require, default false, . Decide whether to modify the issue title # if true, the robot account @Issues-translate-bot must have modification permissions, invite @Issues-translate-bot to your project or use your custom bot. CUSTOM_BOT_NOTE: Bot detected the issue body's language is not English, translate it automatically. πŸ‘―πŸ‘­πŸ»πŸ§‘β€πŸ€β€πŸ§‘πŸ‘«πŸ§‘πŸΏβ€πŸ€β€πŸ§‘πŸ»πŸ‘©πŸΎβ€πŸ€β€πŸ‘¨πŸΏπŸ‘¬πŸΏ - # not require. Customize the translation robot prefix message. \ No newline at end of file + # not require. Customize the translation robot prefix message. From 738ceea545375d75ff2228c20f8e16d701f8ead9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Mind=C3=AAllo=20de=20Andrade?= Date: Thu, 23 May 2024 18:01:48 +0000 Subject: [PATCH 3/5] chore(issue-translator): lint formatting --- .github/workflows/issue-translator.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/issue-translator.yml b/.github/workflows/issue-translator.yml index 42118571..83c127b3 100644 --- a/.github/workflows/issue-translator.yml +++ b/.github/workflows/issue-translator.yml @@ -1,8 +1,8 @@ name: 'issue-translator' -on: - issue_comment: +on: + issue_comment: types: [created] - issues: + issues: types: [opened] jobs: From 2774407fa53402f803edab09fe70c71e8f95a241 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Mind=C3=AAllo=20de=20Andrade?= Date: Thu, 23 May 2024 18:10:20 +0000 Subject: [PATCH 4/5] chore(issue-translator): permissions --- .github/workflows/issue-translator.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/issue-translator.yml b/.github/workflows/issue-translator.yml index 83c127b3..a1401010 100644 --- a/.github/workflows/issue-translator.yml +++ b/.github/workflows/issue-translator.yml @@ -8,6 +8,8 @@ on: jobs: build: runs-on: ubuntu-latest + permissions: + issues: write steps: - uses: usthe/issues-translate-action@v2.7 with: From 52526de939c620e04f7737de07dc7703aec9a7f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Mind=C3=AAllo=20de=20Andrade?= Date: Thu, 23 May 2024 18:18:05 +0000 Subject: [PATCH 5/5] chore: permissions top level --- .github/workflows/issue-translator.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issue-translator.yml b/.github/workflows/issue-translator.yml index a1401010..95021ea7 100644 --- a/.github/workflows/issue-translator.yml +++ b/.github/workflows/issue-translator.yml @@ -5,11 +5,12 @@ on: issues: types: [opened] +permissions: + issues: write + jobs: build: runs-on: ubuntu-latest - permissions: - issues: write steps: - uses: usthe/issues-translate-action@v2.7 with: