Skip to content

Commit

Permalink
refactor(main): add translator for ci (#3264)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuisongliu authored Jun 4, 2023
1 parent 73b168e commit bfe8720
Show file tree
Hide file tree
Showing 9 changed files with 77 additions and 29 deletions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
16 changes: 0 additions & 16 deletions .github/ISSUE_TEMPLATE/question.yml

This file was deleted.

35 changes: 30 additions & 5 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#Usage in github: https://github.com/actions/labeler

area/command:
- any: [ 'cmd/**/*' ]

Expand All @@ -8,7 +10,8 @@ area/qa:
- 'QA.md'

area/test:
- any: [ '**/*_test.go','test/**/*' ]
- '**/*_test.go'
- 'test/**/*'


area/imageCRIShim:
Expand All @@ -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/**/*' ]
Expand All @@ -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/**/*' ]
Expand All @@ -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/**' ]
19 changes: 19 additions & 0 deletions .github/workflows/bot-issues-translator.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿
2 changes: 1 addition & 1 deletion .github/workflows/bot-link.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}

Expand Down
14 changes: 8 additions & 6 deletions MAINTAINERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 5 additions & 0 deletions lychee.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
exclude_path = ["./CHANGELOG", "./docs/3.0"]
verbose = "info"
exclude_all_private = true
insecure = true
no_progress = true

0 comments on commit bfe8720

Please sign in to comment.