Skip to content

Commit a1e612b

Browse files
committed
chore(release): prepare for v0.2.0
1 parent ce20349 commit a1e612b

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dogy-backend-api"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
edition = "2021"
55

66
[dependencies]

cliff.toml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,16 @@
44
# Lines starting with "#" are comments.
55
# Configuration options are organized into tables and keys.
66
# See documentation for more information on available options.
7+
[remote.github]
8+
owner = "dogy-app"
9+
repo = "backend-api"
710

811
[changelog]
912
# changelog header
10-
header = """
11-
# Changelog
12-
"""
13+
header = """"""
1314
# template for the changelog body
1415
# https://tera.netlify.app/docs
1516
body = """
16-
{% set github_repo = 'backend-api' %}
17-
{% set branch = 'main' %}
18-
{% set github_username = 'dogy-app' %}
19-
2017
{% if version %}\
2118
# Release {{ version | trim_start_matches(pat="v") }} ({{ timestamp | date(format="%Y-%m-%d") }})
2219
{% else %}\
@@ -27,9 +24,7 @@ body = """
2724
### {{ group | upper_first }}
2825
{% for commit in commits %}
2926
- [`{{ commit.id | truncate(length=7, end="")
30-
}}`](https://github.com/{{github_username }}/{{ github_repo
31-
}}/commit/{{ commit.id }}) {% if commit.breaking %}[**Breaking
32-
Change**] {% endif %} {{commit.message | upper_first }} \
27+
}}`](https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}/commit/{{ commit.id }}) {% if commit.breaking %}[**Breaking Change**] {% endif %} {{commit.message | upper_first }} \
3328
{% endfor %}
3429
{% endfor %}\n
3530
"""
@@ -39,6 +34,10 @@ trim = true
3934
footer = """
4035
<!-- generated by git-cliff -->
4136
"""
37+
postprocessors = [
38+
# Replace the placeholder `<REPO>` with a URL.
39+
{ pattern = '<REPO>', replace = "https://github.com/dogy-app/backend-api" }, # replace repository URL
40+
]
4241

4342
[git]
4443
# parse the commits based on https://www.conventionalcommits.org
@@ -49,7 +48,7 @@ filter_unconventional = true
4948
split_commits = false
5049
# regex for preprocessing the commit messages
5150
commit_preprocessors = [
52-
# { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](https://github.com/orhun/git-cliff/issues/${2}))"}, # replace issue numbers
51+
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))"}, # replace issue numbers
5352
]
5453
# regex for parsing and grouping commits
5554
commit_parsers = [

0 commit comments

Comments
 (0)