Git Product home page Git Product logo

issues-translate-action's Introduction

Issues Translate Action

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

中文文档

Usage

Use the default bot account @Issues-translate-bot

Create a workflow from this action

Create file issue-translator.yml in .github/workflows/

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
          # 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.

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(Create file issue-translator.yml in .github/workflows/)

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 }} 
          # 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

Other

  1. invite @Issues-translate-bot to your project.
    Project -> Settings -> Manage access -> Invite a collaborator
    Post an issue in issues-translate-action to let us know, the @Issues-translate-bot will join soon.

DEMO

action-sample

Who Use the Action?

  1. hertzbeat Create By Us - A real-time monitoring system with custom-monitor and agentless.
  2. sureness Create By Us - A simple and efficient security framework that focus on protection of API.
  3. go-zero - A cloud-native Go microservices framework with cli tool for productivity.
  4. dashy - A self-hostable personal dashboard built for you.
  5. wails - Create beautiful applications using Go
  6. seata-go - Go Implementation For Seata
  7. rainbond - Cloud native multi cloud application management platform
  8. adempiere - ADempiere Business Suite done the Bazaar way in an open and unabated fashion.
  9. carbon - A simple, semantic and developer-friendly golang package for datetime
  10. tabby - A terminal for a more modern age
  11. gorse - An open source recommender system service written in Go

Have Fun!

Contributors ✨

tomsun28
tomsun28

💻 🖋
All Contributors
All Contributors

📖
chen quan
chen quan

💻

issues-translate-action's People

Contributors

allcontributors[bot] avatar chenquan avatar tomsun28 avatar upbeat-backbone-bose avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

issues-translate-action's Issues

我们用`sureness`来管理`restful api`认证鉴权

面对 restful api 的认证鉴权,基于 rbac (用户-角色-资源)主要关注于对 restful api 的安全保护
无特定框架依赖(本质就是过滤器处拦截判断,已有springboot,quarkus,javalin,ktor等demo)
支持动态修改权限配置(动态修改哪些api需要被认证,可以被谁访问)
支持主流http容器 servletjax-rs
支持多种认证策略, jwt, basic auth, digest auth ... 可扩展自定义支持的认证方式
基于改进的字典匹配树拥有的高性能
良好的扩展接口, demo和文档

sureness的低配置,易扩展,不耦合其他框架,能使开发者对自己的项目多场景快速安全的进行保护

中文测试

这是一个完整的测试!

你好,有计划支持的,我晚上写了一个支持spring webflux demo,(之前没怎么用过spring webflux,狗头)不介意可以参考下 https://github.com/tomsun28/sureness/tree/master/samples/spring-webflux-sureness
由于webflux http一般是netty而不是servlet api,所以没有适配的话无法集成,我在demo里适配了针对 webflux 的 httpRequest的creator,即 BasicSubjectReactiveCreator JwtSubjectReactiveCreator NoneSubjectReactiveCreator

暂时只有先参考demo集成了 之后这个support会合入到 sureness-core 主线

demo目前用的是文本配置作为数据源,数据库作为数据源的话可以参考 https://github.com/tomsun28/sureness/tree/master/sample-tom

有问题随时@tomsun28

中文测试

这是一个完整的测试!

你好,有计划支持的,我晚上写了一个支持spring webflux demo,(之前没怎么用过spring webflux,狗头)不介意可以参考下 https://github.com/tomsun28/sureness/tree/master/samples/spring-webflux-sureness
由于webflux http一般是netty而不是servlet api,所以没有适配的话无法集成,我在demo里适配了针对 webflux 的 httpRequest的creator,即 BasicSubjectReactiveCreator JwtSubjectReactiveCreator NoneSubjectReactiveCreator

暂时只有先参考demo集成了 之后这个support会合入到 sureness-core 主线

demo目前用的是文本配置作为数据源,数据库作为数据源的话可以参考 https://github.com/tomsun28/sureness/tree/master/sample-tom

有问题随时@tomsun28

测试翻译

这是一个完整的测试!

你好,有计划支持的,我晚上写了一个支持spring webflux demo,(之前没怎么用过spring webflux,狗头)不介意可以参考下 https://github.com/tomsun28/sureness/tree/master/samples/spring-webflux-sureness
由于webflux http一般是netty而不是servlet api,所以没有适配的话无法集成,我在demo里适配了针对 webflux 的 httpRequest的creator,即 BasicSubjectReactiveCreator JwtSubjectReactiveCreator NoneSubjectReactiveCreator

暂时只有先参考demo集成了 之后这个support会合入到 sureness-core 主线

demo目前用的是文本配置作为数据源,数据库作为数据源的话可以参考 https://github.com/tomsun28/sureness/tree/master/sample-tom

有问题随时@我

Title translation

如果开启了标题翻译,不管 issue 的内容是否达到翻译的指标,标题检测到非英文时,是否都应该翻译呢?

image

image

I want to use my own bot

I did not make sure that I have generated correct token in my bot account. Could you please give me some help, because GitHub workflow give me following error message:

Resource not accessible by personal access token

The translation test only has the title

hi, the current judgment of whether English is based on the language with the largest proportion of all content, because the largest proportion of the content in the screenshot is English, which caused this bug. For specific ISSUE, see https://github .com//issues/48. After that, consider modifying the way of judging whether it is in English. If you have any good way, please PR

翻译测试只有标题

hi, the current judgment of whether English is based on the language with the largest proportion of all content, because the largest proportion of the content in the screenshot is English, which caused this bug. For specific ISSUE, see https://github .com//issues/48. After that, consider modifying the way of judging whether it is in English. If you have any good way, please PR

中文测试

这是一个完整的测试!

你好,有计划支持的,我晚上写了一个支持spring webflux demo,(之前没怎么用过spring webflux,狗头)不介意可以参考下 https://github.com/tomsun28/sureness/tree/master/samples/spring-webflux-sureness
由于webflux http一般是netty而不是servlet api,所以没有适配的话无法集成,我在demo里适配了针对 webflux 的 httpRequest的creator,即 BasicSubjectReactiveCreator JwtSubjectReactiveCreator NoneSubjectReactiveCreator

暂时只有先参考demo集成了 之后这个support会合入到 sureness-core 主线

demo目前用的是文本配置作为数据源,数据库作为数据源的话可以参考 https://github.com/tomsun28/sureness/tree/master/sample-tom

有问题随时@tomsun28

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.