Skip to content

Commit

Permalink
adjust bump-n-release script
Browse files Browse the repository at this point in the history
fix updating metadata files and escape doxygen command prefixes
2bndy5 committed Oct 6, 2024
1 parent 235f87e commit 3a7626b
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/cliff.toml
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ body = """
### {{ group | upper_first }}
{% for commit in commits | unique(attribute="message") %}
- {{ commit.message | split(pat="\n") | first | upper_first | trim }}\
{% if commit.remote.username %} by @{{ commit.remote.username }}{%- endif -%}
{% if commit.remote.username %} by \\@{{ commit.remote.username }}{%- endif -%}
{% if commit.remote.pr_number %} in \
[#{{ commit.remote.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.remote.pr_number }})
{%- else %} in \
@@ -64,7 +64,7 @@ Full commit diff: [`{% if previous.version -%}
{%- endif -%}
{% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}
* @{{ contributor.username }} made their first contribution
* \\@{{ contributor.username }} made their first contribution
{%- if contributor.pr_number %} in \
[#{{ contributor.pr_number }}]({{ self::remote_url() }}/pull/{{ contributor.pr_number }}) \
{%- endif %}
@@ -88,6 +88,9 @@ filter_unconventional = false
commit_preprocessors = [
# remove issue numbers from commits
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" },
# escape doxygen command prefixes
{ pattern = '\s(@\w)', replace = " \\$1" },
{ pattern = '\s(\\\w)', replace = " \\$1" },
]
# regex for parsing and grouping commits
commit_parsers = [
2 changes: 1 addition & 1 deletion .github/workflows/increment_version.py
Original file line number Diff line number Diff line change
@@ -202,7 +202,7 @@ def main() -> int:
print("New version:", ver_str)

if args.update_metadata:
made_changes = made_changes or update_metadata_files(ver_str)
made_changes = update_metadata_files(ver_str) or made_changes
print("Metadata file(s) updated:", made_changes)

if "GITHUB_OUTPUT" in environ: # create an output variables for use in CI workflow

0 comments on commit 3a7626b

Please sign in to comment.