From 8fc75987289968157161409323d256596231d0bb Mon Sep 17 00:00:00 2001 From: Fede Barcelona Date: Thu, 28 Aug 2025 15:01:32 +0200 Subject: [PATCH] ci: add git-chglog templates for the releases --- .github/git-chglog/CHANGELOG.tpl.md | 27 +++++++++++++++++++++++++++ .github/git-chglog/config.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 .github/git-chglog/CHANGELOG.tpl.md create mode 100644 .github/git-chglog/config.yml diff --git a/.github/git-chglog/CHANGELOG.tpl.md b/.github/git-chglog/CHANGELOG.tpl.md new file mode 100644 index 0000000..fd65e5d --- /dev/null +++ b/.github/git-chglog/CHANGELOG.tpl.md @@ -0,0 +1,27 @@ +{{ range .Versions }} +{{ range .CommitGroups -}} +### {{ .Title }} + +{{ range .Commits -}} +* {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} +{{ end }} +{{ end -}} + +{{- if .RevertCommits -}} +### Reverts + +{{ range .RevertCommits -}} +* {{ .Revert.Header }} +{{ end }} +{{ end -}} + +{{- if .NoteGroups -}} +{{ range .NoteGroups -}} +### {{ .Title }} + +{{ range .Notes }} +{{ .Body }} +{{ end }} +{{ end -}} +{{ end -}} +{{ end -}} diff --git a/.github/git-chglog/config.yml b/.github/git-chglog/config.yml new file mode 100644 index 0000000..97b044f --- /dev/null +++ b/.github/git-chglog/config.yml @@ -0,0 +1,26 @@ +style: github +template: CHANGELOG.tpl.md +info: + title: CHANGELOG + repository_url: https://github.com/sysdiglabs/sysdig-mcp-server +options: + commits: + commit_groups: + title_maps: + feat: Features + fix: Bug Fixes + perf: Performance Improvements + refactor: Code Refactoring + ci: Continuous Integration + docs: Documentation + chore: Small Modifications + build: Compilation & Dependencies + header: + pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$" + pattern_maps: + - Type + - Scope + - Subject + notes: + keywords: + - BREAKING CHANGE