From 477e814cd81c605c59b5bc1ee38f5de49a2c812a Mon Sep 17 00:00:00 2001 From: Kevin Morris Date: Tue, 8 Feb 2022 09:27:06 -0800 Subject: [PATCH] change: set git-cliff's output format to asciidoc style we'll be using git-cliff to produce changelogs for new tags from now on. we want to include these changelogs within the tag body without markdown. Signed-off-by: Kevin Morris --- cliff.toml | 43 ++++++++----------------------------------- 1 file changed, 8 insertions(+), 35 deletions(-) diff --git a/cliff.toml b/cliff.toml index 6ee495a3..173beefc 100644 --- a/cliff.toml +++ b/cliff.toml @@ -2,52 +2,25 @@ [changelog] # changelog header -header = """ -# Changelog -All notable feature additions, bug fixes and changes to this project will be \ -documented in this file.\n -""" +header = "" # template for the changelog body # https://tera.netlify.app/docs/#introduction body = """ {% if version %}\ - #### Release [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} -{% else %}\ - {% set head = commits | last %}\ - | Branch | HEAD | Status | Coverage | - |--------|------|--------|----------| - | [pu](https://gitlab.archlinux.org/archlinux/aurweb/-/tree/pu) | [{{ head.id | truncate(length=8, end="") }}](https://gitlab.archlinux.org/archlinux/aurweb/-/commits/{{ head.id }}) | ![pipeline](https://gitlab.archlinux.org/archlinux/aurweb/badges/pu/pipeline.svg?key_text=build) | ![coverage](https://gitlab.archlinux.org/archlinux/aurweb/badges/pu/coverage.svg) | +Release {{ version }} - {{ timestamp | date(format="%Y-%m-%d") }} +--------------------------- {% endif %}\ {% for group, commits in commits | group_by(attribute="group") %} - ### {{ group | lower }} - | Commit | Message | - |--------|---------| \ - {% for commit in commits %} - | [{{ commit.id | truncate(length=8, end="") }}](https://gitlab.archlinux.org/archlinux/aurweb/-/commit/{{ commit.id }}) | {{ commit.message }} |\ - {% endfor %} +{{ group | lower }}:\ +{% for commit in commits %} +- {{ commit.id | truncate(length=8, end="") }} - {{ commit.message }}\ +{% endfor %} {% endfor %}\n """ # remove the leading and trailing whitespaces from the template trim = true # changelog footer -footer = """ -## Notes - -See a general project status overview at \ -https://gitlab.archlinux.org/archlinux/aurweb/-/wikis/Home. - -To contribute with testing of the modern aurweb FastAPI port development, visit \ -https://gitlab.archlinux.org/archlinux/aurweb/-/wikis/Testing-Guide. - -To file a bug, create an issue using the Bug template by following the link: \ -https://gitlab.archlinux.org/archlinux/aurweb/-/issues/new?issuable_template=Bug. - -To provide feedback, create an issue using the Feedback template by following -the link: \ -https://gitlab.archlinux.org/archlinux/aurweb/-/issues/new?issuable_template=Feedback. - - -""" +footer = "" [git] # allow only conventional commits