Skip to content

Commit 6e25534

Browse files
author
孔令飞
committed
feat: first commit
0 parents  commit 6e25534

File tree

1,523 files changed

+180375
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,523 files changed

+180375
-0
lines changed

.air.toml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Config file for [Air](https://github.com/cosmtrek/air) in TOML format
2+
3+
# Working directory
4+
# . or absolute path, please note that the directories following must be under root.
5+
root = "."
6+
tmp_dir = "tmp"
7+
8+
[build]
9+
# Just plain old shell command. You could use `make` as well.
10+
cmd = ""
11+
# Binary file yields from `cmd`.
12+
bin = ""
13+
# Customize binary, can setup environment variables when run your app.
14+
#full_bin = "APP_ENV=dev APP_USER=air ./tmp/main"
15+
# Watch these filename extensions.
16+
include_ext = ["go", "tpl", "tmpl", "html"]
17+
# Ignore these filename extensions or directories.
18+
exclude_dir = ["assets", "tmp", "vendor", "frontend/node_modules"]
19+
# Watch these directories if you specified.
20+
include_dir = []
21+
# Watch these files.
22+
include_file = []
23+
# Exclude files.
24+
exclude_file = []
25+
# Exclude specific regular expressions.
26+
exclude_regex = ["_test\\.go"]
27+
# Exclude unchanged files.
28+
exclude_unchanged = true
29+
# Follow symlink for directories
30+
follow_symlink = true
31+
# This log file places in your tmp_dir.
32+
log = "air.log"
33+
# It's not necessary to trigger build each time file changes if it's too frequent.
34+
delay = 0 # ms
35+
# Stop running old binary when build errors occur.
36+
stop_on_error = true
37+
# Send Interrupt signal before killing process (windows does not support this feature)
38+
send_interrupt = false
39+
# Delay after sending Interrupt signal
40+
kill_delay = 500 # ms
41+
# Add additional arguments when running binary (bin/full_bin). Will run './tmp/main hello world'.
42+
args_bin = []
43+
44+
[log]
45+
# Show log time
46+
time = false
47+
48+
[color]
49+
# Customize each part's color. If no color found, use the raw app log.
50+
main = "magenta"
51+
watcher = "cyan"
52+
build = "yellow"
53+
runner = "green"
54+
55+
[misc]
56+
# Delete tmp directory on exit
57+
clean_on_exit = true

.chglog/CHANGELOG.tpl.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{{ range .Versions }}
2+
<a name="{{ .Tag.Name }}"></a>
3+
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} ({{ datetime "2006-01-02" .Tag.Date }})
4+
5+
{{ range .CommitGroups -}}
6+
### {{ .Title }}
7+
8+
{{ range .Commits -}}
9+
* {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
10+
{{ end }}
11+
{{ end -}}
12+
13+
{{- if .RevertCommits -}}
14+
### Reverts
15+
16+
{{ range .RevertCommits -}}
17+
* {{ .Revert.Header }}
18+
{{ end }}
19+
{{ end -}}
20+
21+
{{- if .NoteGroups -}}
22+
{{ range .NoteGroups -}}
23+
### {{ .Title }}
24+
25+
{{ range .Notes }}
26+
{{ .Body }}
27+
{{ end }}
28+
{{ end -}}
29+
{{ end -}}
30+
{{ end -}}

.chglog/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Zero 项目使用 `uplift` 来自动生成 CHANGELOG,而非 `git-chglog``.chglog``git-chglog` 的配置目录。
2+
3+
之所以将 `.chglog` 放在 Zero 项目根目录下,是为了教学展示用。实际项目开发中,用不到。

.chglog/config.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Copyright 2020 Lingfei Kong <[email protected]>. All rights reserved.
2+
# Use of this source code is governed by a MIT style
3+
# license that can be found in the LICENSE file.
4+
5+
style: github # 指定使用的样式文件
6+
template: CHANGELOG.tpl.md # 指定使用的模板文件
7+
info: # 指定生成的 CHANGELOG.md 文件的标题和仓库 URL
8+
title: CHANGELOG
9+
repository_url: https://github.com/superproj/zero
10+
options: # 指定生成 CHANGELOG.md 文件的选项
11+
commits: # 指定如何过滤和排序提交
12+
filters: # 指定要过滤的提交类型
13+
Type:
14+
- feat
15+
- fix
16+
- perf
17+
- refactor
18+
commit_groups: # 指定如何分组提交
19+
title_maps: # 指定标题的映射
20+
feat: Features
21+
fix: Bug Fixes
22+
perf: Performance Improvements
23+
refactor: Code Refactoring
24+
header: # 指定如何处理提交的头部
25+
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$" # 指定用于匹配头部的正则表达式
26+
pattern_maps: # 指定头部的映射
27+
- Type
28+
- Scope
29+
- Subject
30+
notes: # 指定如何处理提交中的注释
31+
keywords: # 指定用于识别注释的关键字
32+
- BREAKING CHANGE

.gitattributes

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Always check-out / check-in files with LF line endings.
2+
* text=auto eol=lf
3+
4+
scripts/scopes.txt merge=union
5+
6+
**/zz_generated.*.go linguist-generated=true
7+
**/types.generated.go linguist-generated=true
8+
**/generated.pb.go linguist-generated=true
9+
**/generated.proto
10+
**/types_swagger_doc_generated.go linguist-generated=true
11+
api/openapi-spec/*.json linguist-generated=true
12+
staging/**/go.sum linguist-generated=true
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Bug Report
3+
about: Report a bug encountered while operating Zero
4+
labels: kind/bug
5+
6+
---
7+
8+
<!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!
9+
10+
-->
11+
12+
13+
#### What happened:
14+
15+
#### What you expected to happen:
16+
17+
#### How to reproduce it (as minimally and precisely as possible):
18+
19+
#### Anything else we need to know?:
20+
21+
#### Environment:
22+
- Commit ID used (e.g: `git log -1 --pretty=format:"%H"`):
23+
- OS (e.g: `cat /etc/os-release`):
24+
- [Optional] Kernel (e.g. `uname -a`):
25+
- [Optional] Kubernetes version (use `kubectl version`):
26+
- Others:
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Enhancement Request
3+
about: Provide supporting details for a feature that wanted
4+
labels: kind/feature
5+
6+
---
7+
<!-- Please only use this template for submitting enhancement requests
8+
9+
-->
10+
11+
#### What would you like to be added:
12+
13+
#### Why is this needed:

.github/ISSUE_TEMPLATE/workflow.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Failing Workflow
3+
about: Report continuously failing workflows in Zero CI
4+
labels: kind/workflow
5+
6+
---
7+
8+
<!-- Please only use this template for submitting reports about continuously failing workflows in Zero CI -->
9+
10+
#### Which workflows are failing:
11+
12+
#### Since when has it been failing:
13+
14+
#### Github workflow run link:
15+
16+
#### Reason for failure:
17+
18+
#### Anything else we need to know:

.github/OWNERS

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# See the OWNERS docs at https://go.k8s.io/owners
2+
3+
options:
4+
# make root approval non-recursive
5+
no_parent_owners: true
6+
reviewers:
7+
- colin404
8+
approvers:
9+
- colin404
10+
emeritus_approvers:
11+
- colin404
12+
labels:
13+
- sig/contributor-experience

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!-- Thanks for sending a pull request! Here are some tips for you:
2+
3+
1. If this is your first time, please read our contributor guidelines: https://github.com/superproj/community/blob/master/contributors/guide/first-contribution.md#your-first-contribution and developer guide https://github.com/superproj/community/blob/master/contributors/devel/development.md#development-guide
4+
-->
5+
6+
#### What type of PR is this?
7+
8+
<!--
9+
Add one of the following kinds:
10+
/kind bug
11+
/kind cleanup
12+
/kind documentation
13+
/kind feature
14+
15+
Optionally add one or more of the following kinds if applicable:
16+
/kind api-change
17+
-->
18+
19+
#### What this PR does / why we need it:
20+
21+
#### Which issue(s) this PR fixes:
22+
<!--
23+
*Automatically closes linked issue when PR is merged.
24+
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
25+
-->
26+
Fixes #
27+
28+
#### Special notes for your reviewer:
29+

0 commit comments

Comments
 (0)