Skip to content

Commit

Permalink
chore: remove [bot] suffix from username in changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
wangl-cc committed Oct 18, 2024
1 parent 7611ce6 commit 052f4f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@

### Security

- Bump openssl from 0.10.64 to 0.10.66 by [@dependabot[bot]](https://github.com/dependabot[bot]) in [#296](https://github.com/MaaAssistantArknights/maa-cli/pull/296)
- Bump openssl from 0.10.64 to 0.10.66 by [@dependabot](https://github.com/dependabot) in [#296](https://github.com/MaaAssistantArknights/maa-cli/pull/296)

**Full Changelog**: <https://github.com/MaaAssistantArknights/maa-cli/compare/v0.4.8...v0.4.9>

Expand Down Expand Up @@ -165,12 +165,12 @@

### Security

- Bump h2 from 0.4.3 to 0.4.4 by [@dependabot[bot]](https://github.com/dependabot[bot]) in [#252](https://github.com/MaaAssistantArknights/maa-cli/pull/252)
- Bump h2 from 0.4.3 to 0.4.4 by [@dependabot](https://github.com/dependabot) in [#252](https://github.com/MaaAssistantArknights/maa-cli/pull/252)

### Miscellaneous

- Use AGPL-3.0-only License by [@wangl-cc](https://github.com/wangl-cc) in [#234](https://github.com/MaaAssistantArknights/maa-cli/pull/234)
- Bump DavidAnson/markdownlint-cli2-action from 15 to 16 by [@dependabot[bot]](https://github.com/dependabot[bot]) in [#253](https://github.com/MaaAssistantArknights/maa-cli/pull/253)
- Bump DavidAnson/markdownlint-cli2-action from 15 to 16 by [@dependabot](https://github.com/dependabot) in [#253](https://github.com/MaaAssistantArknights/maa-cli/pull/253)
- Bump Cargo.lock by [@wangl-cc](https://github.com/wangl-cc) in [#258](https://github.com/MaaAssistantArknights/maa-cli/pull/258)
- Remove some unnecessary comments by [@wangl-cc](https://github.com/wangl-cc)
- Fix relative links in generated docs by [@wangl-cc](https://github.com/wangl-cc)
Expand Down
9 changes: 5 additions & 4 deletions cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ body = """
{%- endmacro -%}
{%- macro user_link(username) -%}
{%- set username = username | trim_end_matches(pat="[bot]") -%}
{%- if get_env(name="CI", default="false") == "true" -%}
@{{ username }}
{%- else -%}
Expand All @@ -38,11 +39,11 @@ body = """
{%- macro format_commit(commit) -%}
{%- if commit.breaking -%} **BREAKING**: {%- endif -%}
{{ commit.message | upper_first }}
{%- if commit.github.username %} \
by {{ self::user_link(username=commit.github.username) }}
{%- if commit.remote.username %} \
by {{ self::user_link(username=commit.remote.username) }}
{%- endif -%}
{%- if commit.github.pr_number %} \
in {{ self::pr_link(pr=commit.github.pr_number) }}
{%- if commit.remote.pr_number %} \
in {{ self::pr_link(pr=commit.remote.pr_number) }}
{%- endif -%}
{%- endmacro -%}
Expand Down

0 comments on commit 052f4f3

Please sign in to comment.