5
5
header = """
6
6
# Changelog\n
7
7
All notable changes to this project will be documented in this file.\n
8
+ Acronyms:
9
+ - LB: lab-report
10
+ - MT: master-thesis
11
+ - PT: paper-translation
12
+ - PS: presentation-slide
13
+ - UPR: undergraduate-proposal-report
14
+ - UT: undergraduate-thesis\n
15
+ **Bolded text highlight its importance.**\n
8
16
"""
9
17
# template for the changelog body
10
18
# https://tera.netlify.app/docs/#introduction
@@ -14,10 +22,16 @@ body = """
14
22
{% else %}\
15
23
## [unreleased]
16
24
{% endif %}\
25
+ {% if previous %}\
26
+ {% if previous.commit_id %}
27
+ [{{ previous.commit_id | truncate(length=7, end="") }}]({{ previous.commit_id }})...\
28
+ [{{ commit_id | truncate(length=7, end="") }}]({{ commit_id }})
29
+ {% endif %}\
30
+ {% endif %}\
17
31
{% for group, commits in commits | group_by(attribute="group") %}
18
32
### {{ group | upper_first }}
19
33
{% for commit in commits %}
20
- - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\
34
+ - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ commit.id }})) \
21
35
{% endfor %}
22
36
{% endfor %}\n
23
37
"""
@@ -51,7 +65,7 @@ filter_commits = false
51
65
# glob pattern for matching git tags
52
66
tag_pattern = " v[0-9]*"
53
67
# regex for skipping tags
54
- skip_tags = " v0.1.0-beta.1"
68
+ # skip_tags = "v0.1.0-beta.1"
55
69
# regex for ignoring tags
56
70
ignore_tags = " "
57
71
# sort the tags chronologically
0 commit comments