refactor(main): add translator for ci (#3264)

This commit is contained in:
cuisongliu
2023-06-04 17:15:01 +08:00
committed by GitHub
parent 73b168edb5
commit bfe872050d
9 changed files with 77 additions and 29 deletions
+1
View File
@@ -1,6 +1,7 @@
name: 🐞 Sealos Bug report
description: Create a report to help us improve
title: 'BUG: brief description of the bug'
labels: kind/bug
body:
- type: markdown
attributes:
+12
View File
@@ -0,0 +1,12 @@
blank_issues_enabled: true
contact_links:
- name: Ask a question (GitHub Discussions)
url: https://github.com/labring/sealos/discussions
about: |
Please do not submit "a bug report" for asking a question.
In most cases, GitHub Discussions is the best place to ask a question.
If you are not sure whether you are going to report a bug or ask a question,
please consider asking in GitHub Discussions first.
- name: Join Our Discord
url: https://discord.gg/eHyXHtSE
about: Join our community, we will keep you in the loop.
+1 -1
View File
@@ -1,6 +1,6 @@
name: "\U0001F680 Sealos feature request"
description: Suggest an idea for this project
labels: ["feature-request"]
labels: kind/feature
title: 'Feature: brief description of the feature'
body:
- type: markdown
-16
View File
@@ -1,16 +0,0 @@
name: "\U00002753 Ask a question"
description: Ask a question about using Sealos
title: 'Question: brief description of the question'
body:
- type: markdown
attributes:
value: |
Please fill in as much of the following form as you're able.
- type: textarea
attributes:
label: Detailed description of the question.
description: eg. Detailed description of the question.
- type: textarea
attributes:
label: Some reference materials you see.
description: eg. the reference of the documentation.
+30 -5
View File
@@ -1,3 +1,5 @@
#Usage in github: https://github.com/actions/labeler
area/command:
- any: [ 'cmd/**/*' ]
@@ -8,7 +10,8 @@ area/qa:
- 'QA.md'
area/test:
- any: [ '**/*_test.go','test/**/*' ]
- '**/*_test.go'
- 'test/**/*'
area/imageCRIShim:
@@ -24,7 +27,9 @@ area/clusterfile:
- any: [ 'pkg/clusterfile/**/*' ]
area/config:
- any: [ 'pkg/config/**/*','pkg/env/**/*','pkg/template/**/*' ]
- any: [ 'pkg/config/**/*' ]
- any: [ 'pkg/env/**/*' ]
- any: [ 'pkg/template/**/*' ]
area/guest:
- any: [ 'pkg/guest/**/*' ]
@@ -48,7 +53,8 @@ area/ipvs:
- any: [ 'pkg/ipvs/**/*' ]
area/ssh:
- any: [ 'pkg/ssh/**/*' ,'pkg/remote/**/*' ]
- any: [ 'pkg/ssh/**/*' ]
- any: [ 'pkg/remote/**/*' ]
area/registry:
- any: [ 'pkg/registry/**/*' ]
@@ -57,13 +63,32 @@ area/runtime:
- any: [ 'pkg/runtime/**/*' ]
area/api:
- any: [ 'pkg/types/**/*','**/*_types.go' ]
- any: [ 'pkg/types/**/*']
- any: [ '**/*_types.go' ]
area/cloud:
- any: [ 'controllers/**/*' ]
- any: [ 'service/**/*' ]
- any: ['docs/4.0/docs/**', '!docs/4.0/docs/lifecycle-management/**']
- any: ['docs/4.0/i18n/zh-Hans/**', '!docs/4.0/i18n/zh-Hans/lifecycle-management/**']
area/lifecycle-management:
- any: [ 'pkg/**/*' ]
- any: [ 'staging/**/*' ]
- any: [ 'docs/4.0/docs/lifecycle-management/*' ]
- any: [ 'docs/4.0/i18n/zh-Hans/lifecycle-management/*' ]
area/frontend:
- any: [ 'frontend/**/*' ]
area/ci:
- any: [ '.github/**/*','scripts/**/*' ,'docker/**/*' ,'deploy/**/*' ,'.golangci.yml' ,'.goreleaser.yml','Makefile' ]
- 'scripts/**/*'
- 'docker/**/*'
- 'deploy/**/*'
- '.golangci.yml'
- '.goreleaser.yml'
- 'Makefile'
area/workflow:
- any: [ '.github/**' ]
@@ -0,0 +1,19 @@
name: 'Github Rebot for issues-translator'
on:
issues:
types: [ opened ]
issue_comment:
types: [ created ]
jobs:
translate:
permissions:
issues: write
discussions: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: usthe/issues-translate-action@v2.7
with:
IS_MODIFY_TITLE: true
BOT_GITHUB_TOKEN: ${{ secrets.GH_PAT }}
CUSTOM_BOT_NOTE: Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿
+1 -1
View File
@@ -24,7 +24,7 @@ jobs:
# docs/.vitepress/dist the site directory to check
# ./*.md all markdown files in the root directory
args: --verbose -E -i --no-progress --exclude-path './CHANGELOG' './**/*.md'
args: --verbose './**/*.md'
env:
GITHUB_TOKEN: ${{secrets.GH_PAT}}
+8 -6
View File
@@ -2,19 +2,21 @@ maintainers:
- fanux
- cuisongliu
- ysicing
- oldthreefeng
- zhangguanzhang
- berlinsaint
- fengxsong
- bxy4543
- LeezQ
- yangchuansheng
- zzjin
reviewers:
- fanux
- cuisongliu
- berlinsaint
- zzjin
approvers:
- fanux
- cuisongliu
- berlinsaint
- zzjin
+5
View File
@@ -0,0 +1,5 @@
exclude_path = ["./CHANGELOG", "./docs/3.0"]
verbose = "info"
exclude_all_private = true
insecure = true
no_progress = true