Skip to content

Commit

Permalink
Merge pull request #1 from kubecub/feat/init-project
Browse files Browse the repository at this point in the history
build: init comment-lang-detector project
  • Loading branch information
cubxxw authored Mar 16, 2024
2 parents 121e8d5 + 95da5c4 commit 36216ab
Show file tree
Hide file tree
Showing 97 changed files with 11,696 additions and 18 deletions.
56 changes: 56 additions & 0 deletions .chglog/CHANGELOG.tpl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{{ if .Versions -}}
<a name="unreleased"></a>
## [Unreleased]

{{ if .Unreleased.CommitGroups -}}
{{ range .Unreleased.CommitGroups -}}
### {{ .Title }}
{{ range .Commits -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}

{{ range .Versions }}
<a name="{{ .Tag.Name }}"></a>
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }}
{{ range .CommitGroups -}}
### {{ .Title }}
{{ range .Commits -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
{{ end }}
{{ end -}}

{{- if .RevertCommits -}}
### Reverts
{{ range .RevertCommits -}}
- {{ .Revert.Header }}
{{ end }}
{{ end -}}

{{- if .MergeCommits -}}
### Pull Requests
{{ range .MergeCommits -}}
- {{ .Header }}
{{ end }}
{{ end -}}

{{- if .NoteGroups -}}
{{ range .NoteGroups -}}
### {{ .Title }}
{{ range .Notes }}
{{ .Body }}
{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}

{{- if .Versions }}
[Unreleased]: {{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...HEAD
{{ range .Versions -}}
{{ if .Tag.Previous -}}
[{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}
{{ end -}}
{{ end -}}
{{ end -}}
31 changes: 31 additions & 0 deletions .chglog/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright © 2023 KubeCub open source community. All rights reserved.
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.

style: github
template: CHANGELOG.tpl.md
info:
title: CHANGELOG
repository_url: https://github.com/kubecub/comment-lang-detector
options:
commits:
# filters:
# Type:
# - feat
# - fix
# - perf
# - refactor
commit_groups:
# title_maps:
# feat: Features
# fix: Bug Fixes
# perf: Performance Improvements
# refactor: Code Refactoring
header:
pattern: "^(\\w*)\\:\\s(.*)$"
pattern_maps:
- Type
- Subject
notes:
keywords:
- BREAKING CHANGE
2 changes: 2 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

Read the [contributor guide](../CONTRIBUTING.md) for more details.
9 changes: 9 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright © 2023 KubeCub & Xinwei Xiong(cubxxw). All rights reserved.
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.


github: [cubxxw]
liberapay: "xiongxinwei/donate"
paypal: ["paypal.me/cubxxw", paypal.me]
custom: ["https://www.paypal.me/cubxxw", nsddd.top]
4 changes: 4 additions & 0 deletions .github/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
reviewers:
- cubxxw
approvers:
- cubxxw
72 changes: 72 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
</br>
<!--
🫰 Thanks for sending a pull request! Here are some tips for you:
1. If this is your first time, please read our contributor guidelines:
📇 https://github.com/kubecub/community/blob/main/CONTRIBUTING.md
2. Ensure you have added or ran the appropriate tests for your PR:
-->

#### 🔍 What type of PR is this?
<!--
We need to tag this PR, which you should learn about in the contributor guide.
Add one of the following kinds:
/kind bug
/kind cleanup
/kind documentation
/kind feature
Optionally add one or more of the following kinds if applicable:
/kind api-change
/kind deprecation
/kind failing-test
/kind flake
/kind regression
-->


#### 👀 What this PR does / why we need it:
<!-- Make sure your pr passes the CI checks and do check the following fields as needed - -->
- [ ] My pull request adheres to the code style of this project
- [ ] My code requires changes to the documentation
- [ ] I have updated the documentation as required
- [ ] All the tests have passed

<!--Why do we need this PR?-->


#### 🅰 Which issue(s) this PR fixes:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
If there are multiple PRS, use Fixes: #{ID_1}, #{ID_2}
If there is a relevant PR, use Link #{ID}
-->

Fixes #


#### 📝 Special notes for your reviewer:




#### 🎯 Describe how to verify it



#### 📑 Additional documentation e.g., RFC, notion, Google docs, usage docs, etc.:
<!--
This section can be blank if this pull request does not require a release note.
When adding links which point to resources within git repositories, like
KEPs or supporting documentation, please reference a specific commit and avoid
linking directly to the master branch. This ensures that links reference a
specific point in time, rather than a document that may change over time.
In the sharers Guide, we recommend the following documents:
1. Using GitHub RFCs template: https://github.com/kubecub/community/blob/main/0000-template.md
2. Use Google Docs OR Notion and share it with the community.
-->
31 changes: 31 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright © 2023 KubeCub & Xinwei Xiong(cubxxw). All rights reserved.
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.


command:
- any: ['cmd/**/*', 'docs/commandline/**/*']

area/doc:
- any: ['docs/**/*']

faq:
- 'FAQ.md'

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

e2e-test:
- any: ['test/**/*']

plugin:
- any: ['pkg/plugin/**/*']

Clusterfile:
- any: ['types/**/*']

Adopter-Info:
- 'Adopters.md'

ImageBuilding:
- any: ['build/**/*']
32 changes: 32 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright © 2023 KubeCub & Xinwei Xiong(cubxxw). All rights reserved.
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.


XS:
name: size/XS
lines: 0
color: 3CBF00
S:
name: size/S
lines: 10
color: 5D9801
M:
name: size/M
lines: 30
color: 7F7203
L:
name: size/L
lines: 100
color: A14C05
XL:
name: size/XL
lines: 500
color: C32607
XXL:
name: size/XXL
lines: 1000
color: E50009
comment: |
# Whoa! Easy there, Partner!🤖
This `PR` is too big. Please break it up into smaller `PRs`🥰.
Loading

0 comments on commit 36216ab

Please sign in to comment.