Skip to content

Commit b2eba7a

Browse files
committed
fix(ci): github release notes were skipping not rc tags
1 parent e5f9fc9 commit b2eba7a

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ jobs:
496496
# This script extracts the content between the latest tag and the previous tag.
497497
notes=$(awk -v tag="## [${latest_tag##v}]" '
498498
BEGIN { p = 0 }
499-
$0 ~ tag { p = 1; next }
499+
index($0, tag) { p = 1; next }
500500
p && /^## / { exit }
501501
p { print }
502502
' CHANGELOG.md)

cliff.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ body = """
1919
{% for group, commits in commits | group_by(attribute="group") %}
2020
### {{ group | upper_first }}
2121
{% for commit in commits %}
22-
- {% if commit.scope %}(**{{ commit.scope }}**) {% endif %}{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/PyDataBlog/simstring_rs/commit/{{ commit.id }}))
22+
- {% if commit.scope %}(**{{ commit.scope }}**) {% endif %}{{ commit.message | upper_first }} by @{{ commit.author.username }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/PyDataBlog/simstring_rs/commit/{{ commit.id }}))
2323
{% endfor %}
2424
{% endfor %}
2525
@@ -30,6 +30,9 @@ trim = true
3030
footer = """
3131
<!-- generated by git-cliff -->
3232
"""
33+
postprocessors = [
34+
{ pattern = "@(\\w+)", replace = "[@$1](https://github.com/$1)" },
35+
]
3336

3437
[git]
3538
# parse the commits based on https://www.conventionalcommits.org

0 commit comments

Comments
 (0)