From 2f061b5347a2ca8b52c26e9c99e59ad90eb5db5f Mon Sep 17 00:00:00 2001 From: "Xinwei Xiong(cubxxw-openim)" <3293172751nss@gmail.com> Date: Fri, 14 Jul 2023 23:22:43 +0800 Subject: [PATCH] fix: fix file Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> --- .chglog/CHANGELOG.tpl.md | 56 ++++++++++++++++++++ .chglog/config.yml | 27 ++++++++++ .goreleaser.yml | 13 ++++- CHANGELOG.md | 110 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 205 insertions(+), 1 deletion(-) create mode 100755 .chglog/CHANGELOG.tpl.md create mode 100755 .chglog/config.yml create mode 100644 CHANGELOG.md diff --git a/.chglog/CHANGELOG.tpl.md b/.chglog/CHANGELOG.tpl.md new file mode 100755 index 0000000..5683d03 --- /dev/null +++ b/.chglog/CHANGELOG.tpl.md @@ -0,0 +1,56 @@ +{{ if .Versions -}} + +## [Unreleased] + +{{ if .Unreleased.CommitGroups -}} +{{ range .Unreleased.CommitGroups -}} +### {{ .Title }} +{{ range .Commits -}} +- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} +{{ end }} +{{ end -}} +{{ end -}} +{{ end -}} + +{{ range .Versions }} + +## {{ 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 -}} \ No newline at end of file diff --git a/.chglog/config.yml b/.chglog/config.yml new file mode 100755 index 0000000..d5cb624 --- /dev/null +++ b/.chglog/config.yml @@ -0,0 +1,27 @@ +style: github +template: CHANGELOG.tpl.md +info: + title: CHANGELOG + repository_url: https://github.com/kubecub/github-label-syncer +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 \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml index 5a46726..6175492 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -2,7 +2,6 @@ # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. - builds: - main: ./cmd/exporter env: @@ -16,6 +15,18 @@ builds: - amd64 - arm - arm64 +- main: ./cmd/syncer + env: + - CGO_ENABLED=0 + - GO111MODULE=on + goos: + - linux + - darwin + goarch: + - 386 + - amd64 + - arm + - arm64 before: hooks: - go mod download diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..4799563 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,110 @@ + +## [Unreleased] + + + +## [v1.0.0] - 2023-07-14 +### Feat +- add openim and kubecub actions labels sync +- add openim and kubecub actions labels sync +- add pr + + + +## [v2.0.0] - 2023-06-29 +### Feat +- git hub token +- git hub token +- git hub token +- test github labels +- add tools +- add tools +- git hook +- git hook +- git hook + +### Pull Requests +- Merge pull request [#63](https://github.com/kubecub/github-label-syncer/issues/63) from kubecub/feat/test + + + +## [v1.4.0] - 2023-06-25 +### Feat +- add labels +- add labels +- about sync + + + +## [v1.3.0] - 2023-06-25 +### Feat +- more feature +- branch save +- labels sync +- syncer docker file +- test labels +- test labels +- test labels +- test labels +- test labels +- test labels +- test labels +- test labels +- test labels +- test labels + +### Style +- catalog design + + + +## [v1.2.0] - 2023-06-20 +### Feat +- commit the basic code +- commit the basic code + + + +## [v1.1.0] - 2023-06-20 + + +## [list] - 2023-06-20 +### Chore +- delete issue template + +### Feat +- complete base exporter +- add labels standard +- synchronous tag +- partial optimization +- make +- makefile optimization +- Automatic PR title AI fix +- spell check +- optimize makefile +- add copy addlicense +- log feature + +### Fix +- sync fix + +### Test +- delele env +- text opencommit + + + +## [v1.0.2] - 2023-05-22 + + +## v1.0.1 - 2023-05-22 + +[Unreleased]: https://github.com/kubecub/github-label-syncer/compare/v1.0.0...HEAD +[v1.0.0]: https://github.com/kubecub/github-label-syncer/compare/v2.0.0...v1.0.0 +[v2.0.0]: https://github.com/kubecub/github-label-syncer/compare/v1.4.0...v2.0.0 +[v1.4.0]: https://github.com/kubecub/github-label-syncer/compare/v1.3.0...v1.4.0 +[v1.3.0]: https://github.com/kubecub/github-label-syncer/compare/v1.2.0...v1.3.0 +[v1.2.0]: https://github.com/kubecub/github-label-syncer/compare/v1.1.0...v1.2.0 +[v1.1.0]: https://github.com/kubecub/github-label-syncer/compare/list...v1.1.0 +[list]: https://github.com/kubecub/github-label-syncer/compare/v1.0.2...list +[v1.0.2]: https://github.com/kubecub/github-label-syncer/compare/v1.0.1...v1.0.2