this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

build: add git-cliff config for release-plz changelog generation

+51
+48
.config/cliff.toml
··· 1 + # git-cliff configuration for release-plz changelog generation 2 + # https://git-cliff.org/docs/configuration 3 + 4 + [changelog] 5 + header = """ 6 + # Changelog\n 7 + All notable changes to this project will be documented in this file.\n 8 + """ 9 + body = """ 10 + {% if version %}\ 11 + ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} 12 + {% else %}\ 13 + ## [unreleased] 14 + {% endif %}\ 15 + {% for group, commits in commits | group_by(attribute="group") %} 16 + ### {{ group | upper_first }} 17 + {% for commit in commits %} 18 + - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\ 19 + {% endfor %} 20 + {% endfor %}\n 21 + """ 22 + trim = true 23 + footer = "" 24 + 25 + [git] 26 + conventional_commits = true 27 + filter_unconventional = true 28 + split_commits = false 29 + commit_parsers = [ 30 + { message = "^feat", group = "Features" }, 31 + { message = "^fix", group = "Bug Fixes" }, 32 + { message = "^doc", group = "Documentation" }, 33 + { message = "^perf", group = "Performance" }, 34 + { message = "^refactor", group = "Refactor" }, 35 + { message = "^style", group = "Styling" }, 36 + { message = "^test", group = "Testing" }, 37 + { message = "^chore\\(release\\)", skip = true }, 38 + { message = "^chore\\(deps\\)", skip = true }, 39 + { message = "^chore|^ci|^build", group = "Miscellaneous Tasks" }, 40 + { body = ".*security", group = "Security" }, 41 + { message = "^revert", group = "Revert" }, 42 + ] 43 + protect_breaking_commits = false 44 + filter_commits = false 45 + tag_pattern = "v[0-9].*" 46 + skip_tags = "v0.1.0-beta.1" 47 + topo_order = false 48 + sort_commits = "oldest"
+3
.config/release-plz.toml
··· 26 26 # Add labels to release PRs for easier filtering 27 27 pr_labels = ["release"] 28 28 29 + # Use git-cliff for changelog generation (all commits between tags) 30 + git_cliff_config = ".config/cliff.toml" 31 + 29 32 # Customize GitHub release 30 33 git_release_type = "auto" 31 34 git_release_body = """