2021-03-21 16:45:13 +08:00
2020-11-10 22:46:30 +08:00
2021-03-21 16:45:13 +08:00
2021-03-21 16:45:13 +08:00
2021-03-21 16:45:13 +08:00
2020-11-10 22:46:30 +08:00
2020-11-10 22:46:30 +08:00
2020-11-10 22:46:30 +08:00
2020-11-10 22:46:30 +08:00
2020-11-10 22:46:30 +08:00
2020-11-10 22:46:30 +08:00
2021-03-21 16:45:13 +08:00
2020-11-10 22:46:30 +08:00
2020-11-10 22:46:30 +08:00
2021-03-11 20:44:02 +08:00
2021-03-11 20:44:02 +08:00
2020-11-10 22:46:30 +08:00

Issues Translate Action

The action for translating Non-English issues content to English.

Usage

Use the default bot @Issues-translate-bot

Create a workflow from this action

name: 'issue-translator'
on: 
  issue_comment: 
    types: [created]
  issues: 
    types: [opened]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: tomsun28/[email protected]

Advanced Custom

Use your own bot by add BOT_GITHUB_TOKEN

  1. Create a new github account as your bot

  2. Use the account to generate a new token as BOT_GITHUB_TOKEN

  3. Add the Secrets BOT_GITHUB_TOKEN = ${token} in your project

  4. Create a workflow from this action

name: 'issue-translator'
on: 
  issue_comment: 
    types: [created]
  issues: 
    types: [opened]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: tomsun28/[email protected]
        with:
          BOT_GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} 
          # Required, input your bot github token
          BOT_LOGIN_NAME: Issues-translate-bot    
          # Not required, suggest not input, action will get name from BOT_GITHUB_TOKEN
          # If input, BOT name must match github token

DEMO

action-sample

Have Fun!

S
Description
No description provided
Readme MIT
1.4 MiB
Languages
TypeScript 97.4%
JavaScript 2.6%