diff options
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/frontpage/.version-dev | 2 | ||||
| -rw-r--r-- | apps/frontpage/CHANGELOG.md | 0 | ||||
| -rw-r--r-- | apps/frontpage/cliff.toml | 62 | ||||
| -rw-r--r-- | apps/portal/cliff.toml | 4 | ||||
| -rw-r--r-- | apps/projects/cliff.toml | 4 |
5 files changed, 67 insertions, 5 deletions
diff --git a/apps/frontpage/.version-dev b/apps/frontpage/.version-dev index ee11e9e..b577250 100644 --- a/apps/frontpage/.version-dev +++ b/apps/frontpage/.version-dev @@ -1 +1 @@ -v1-frontpage-dev +v2-frontpage-dev diff --git a/apps/frontpage/CHANGELOG.md b/apps/frontpage/CHANGELOG.md new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/apps/frontpage/CHANGELOG.md diff --git a/apps/frontpage/cliff.toml b/apps/frontpage/cliff.toml new file mode 100644 index 0000000..5a179b3 --- /dev/null +++ b/apps/frontpage/cliff.toml @@ -0,0 +1,62 @@ +# configuration file for git-cliff (0.1.0) + +[changelog] +# changelog header +header = """ +# Changelog\n +""" +# template for the changelog body +# https://tera.netlify.app/docs/#introduction +body = """ +{% if version %}\ + ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} +{% else %}\ + ## [unreleased] +{% endif %}\ +{% for group, commits in commits | group_by(attribute="group") %} + ### {{ group | upper_first }} + {% for commit in commits %} + - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\ + {% endfor %} +{% endfor %}\n +""" +# remove the leading and trailing whitespace from the template +trim = true +# changelog footer +footer = """ +<!-- generated by git-cliff --> +""" + +[git] +# parse the commits based on https://www.conventionalcommits.org +conventional_commits = true +# filter out the commits that are not conventional +filter_unconventional = true +# regex for preprocessing the commit messages +commit_preprocessors = [ + { pattern = "([ \\n])(([a-f0-9]{7})[a-f0-9]*)", replace = "${1}commit # [${3}](https://git.ivar.systems/greatoffice/commit/${2})" }, + { pattern = "https://git.ivar.systems/greatoffice/commit/([a-f0-9]{7})[a-f0-9]*", replace = "commit # [${1}](${0})" }, +] +# regex for parsing and grouping commits +commit_parsers = [ + { message = "^feat", group = "Features" }, + { message = "^fix", group = "Bug Fixes" }, + { message = "^doc", group = "Documentation" }, + { message = "^perf", group = "Performance" }, + { message = "^refactor", group = "Refactor" }, + { message = "^style", group = "Styling" }, + { message = "^test", group = "Testing" }, + { message = "^chore", group = "Miscellaneous Tasks" }, +] +# filter out the commits that are not matched by commit parsers +filter_commits = true +# glob pattern for matching git tags +tag_pattern = "v.*" +# regex for skipping tags +skip_tags = "v0.1.0-beta.1" +# regex for ignoring tags +ignore_tags = "" +# sort the tags chronologically +date_order = true +# sort the commits inside sections by oldest/newest order +sort_commits = "newest"
\ No newline at end of file diff --git a/apps/portal/cliff.toml b/apps/portal/cliff.toml index 955a72b..7299951 100644 --- a/apps/portal/cliff.toml +++ b/apps/portal/cliff.toml @@ -34,8 +34,8 @@ conventional_commits = true filter_unconventional = true # regex for preprocessing the commit messages commit_preprocessors = [ - { pattern = "([ \\n])(([a-f0-9]{7})[a-f0-9]*)", replace = "${1}commit # [${3}](https://git.ivarlovlie.no/time-tracker/commit/${2})" }, - { pattern = "https://git.ivarlovlie.no/time-tracker/commit/([a-f0-9]{7})[a-f0-9]*", replace = "commit # [${1}](${0})" }, + { pattern = "([ \\n])(([a-f0-9]{7})[a-f0-9]*)", replace = "${1}commit # [${3}](https://git.ivar.systems/greatoffice/commit/${2})" }, + { pattern = "https://git.ivar.systems/greatoffice/commit/([a-f0-9]{7})[a-f0-9]*", replace = "commit # [${1}](${0})" }, ] # regex for parsing and grouping commits commit_parsers = [ diff --git a/apps/projects/cliff.toml b/apps/projects/cliff.toml index 955a72b..7299951 100644 --- a/apps/projects/cliff.toml +++ b/apps/projects/cliff.toml @@ -34,8 +34,8 @@ conventional_commits = true filter_unconventional = true # regex for preprocessing the commit messages commit_preprocessors = [ - { pattern = "([ \\n])(([a-f0-9]{7})[a-f0-9]*)", replace = "${1}commit # [${3}](https://git.ivarlovlie.no/time-tracker/commit/${2})" }, - { pattern = "https://git.ivarlovlie.no/time-tracker/commit/([a-f0-9]{7})[a-f0-9]*", replace = "commit # [${1}](${0})" }, + { pattern = "([ \\n])(([a-f0-9]{7})[a-f0-9]*)", replace = "${1}commit # [${3}](https://git.ivar.systems/greatoffice/commit/${2})" }, + { pattern = "https://git.ivar.systems/greatoffice/commit/([a-f0-9]{7})[a-f0-9]*", replace = "commit # [${1}](${0})" }, ] # regex for parsing and grouping commits commit_parsers = [ |
