Skip to content

emqx/translate-issue-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Github Action to translate issues in Chinese into English using Gemini API

Usage example

on:
  workflow_dispatch:
    inputs:
      issue_number:
        description: 'The issue number to translate'
        required: true
        type: string
  issues:
    types: [opened]

jobs:
  translate:
    runs-on: ubuntu-latest
    permissions:
      issues: write # Grant permission to edit issues
    steps:
    - uses: emqx/translate-issue-action@f63fa743df6f60643e6bd13322e73e4bd7b1c678 # v1.0.3
      with:
        issue_number: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.issue_number || github.event.issue.number }}
        gemini_api_key: ${{ secrets.GEMINI_API_KEY }}

About

Github Action to translate issues in Chinese into English using Gemini API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages