将非英文issue实时翻译成英文issue的action。
使用默认的机器人账户 @Issues-translate-bot
在仓库的 .github/workflows/ 下创建 issue-translator.yml 如下:
name: 'issue-translator'
on:
issue_comment:
types: [created]
issues:
types: [opened]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: usthe/[email protected]
with:
IS_MODIFY_TITLE: false
# 非必须,决定是否需要修改issue标题内容
# 若是true,则机器人账户@Issues-translate-bot必须拥有修改此仓库issue权限。可以通过邀请@Issues-translate-bot加入仓库协作者实现。
CUSTOM_BOT_NOTE: Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
# 非必须,自定义机器人翻译的前缀开始内容。
通过配置BOT_GITHUB_TOKEN使用自定义的机器人账户
-
创建一个github账户作为您的机器人账户
-
使用此账户生成对应的token作为BOT_GITHUB_TOKEN
-
将BOT_GITHUB_TOKEN = ${token} 作为Secrets BOT_GITHUB_TOKEN = ${token} 配置到您的仓库中
-
创建一个下面的github action(在仓库的 .github/workflows/ 下创建 issue-translator.yml 如下)
name: 'issue-translator'
on:
issue_comment:
types: [created]
issues:
types: [opened]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: usthe/[email protected]
with:
BOT_GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
# 非必须,填写您的机器人github账户token
BOT_LOGIN_NAME: Issues-translate-bot
# 非必须,建议不填写,机器人名称会根据token获取到,若填写,请一定与token对应的github账户名相同
- 如何邀请@Issues-translate-bot加入仓库协作者
Project -> Settings -> Manage access -> Invite a collaborator
在issues-translate-action创建一个issue告知,之后@Issues-translate-bot会加入您的仓库
- hertzbeat Create By Us - A real-time monitoring system with custom-monitor and agentless.
- sureness Create By Us - A simple and efficient security framework that focus on protection of API.
- go-zero - A cloud-native Go microservices framework with cli tool for productivity.
- dashy - A self-hostable personal dashboard built for you.
- wails - Create beautiful applications using Go
- seata-go - Go Implementation For Seata
- rainbond - Cloud native multi cloud application management platform
- adempiere - ADempiere Business Suite done the Bazaar way in an open and unabated fashion.
- carbon - A simple, semantic and developer-friendly golang package for datetime
- tabby - A terminal for a more modern age
- gorse - An open source recommender system service written in Go
Have Fun!