From 78a2089f2bb39bce18ce04165911e7457d47b10a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=85=E5=AD=90?= Date: Sat, 18 Mar 2023 00:38:02 +0800 Subject: [PATCH] feat: issue translate (#2744) * feat: issue translate * feat: stable bot --- .github/stable.yml | 12 ++++++++++++ .github/workflows/issue-translator.yml | 16 ++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .github/stable.yml create mode 100644 .github/workflows/issue-translator.yml diff --git a/.github/stable.yml b/.github/stable.yml new file mode 100644 index 000000000..e6e976bbb --- /dev/null +++ b/.github/stable.yml @@ -0,0 +1,12 @@ +daysUntilStale: 30 +daysUntilClose: 3 +exemptLabels: + - pinned + - security + - bug +staleLabel: wontfix +markComment: > + This issue has been automatically marked as stale because it has not had + recent activity. It will be closed if no further activity occurs. Thank you + for your contributions. +closeComment: true \ No newline at end of file diff --git a/.github/workflows/issue-translator.yml b/.github/workflows/issue-translator.yml new file mode 100644 index 000000000..9cab6d086 --- /dev/null +++ b/.github/workflows/issue-translator.yml @@ -0,0 +1,16 @@ +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: true + CUSTOM_BOT_NOTE: Bot detected the issue body's language is not English, translate it automatically. πŸ‘―πŸ‘­πŸ»πŸ§‘β€πŸ€β€πŸ§‘πŸ‘«πŸ§‘πŸΏβ€πŸ€β€πŸ§‘πŸ»πŸ‘©πŸΎβ€πŸ€β€πŸ‘¨πŸΏπŸ‘¬πŸΏ + BOT_GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}