Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
with:
config: cliff.toml
args: --latest --strip header
env:
# Lets git-cliff resolve commit authors to GitHub handles/avatars.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create GitHub release
uses: softprops/action-gh-release@v2
Expand Down
11 changes: 7 additions & 4 deletions cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ body = """
- {% if commit.scope %}**{{ commit.scope }}**: {% endif %}{{ commit.message | split(pat="\n") | first }}
{% endfor %}
{% endfor %}\
{% set contributors = commits | map(attribute="author.name") | unique | sort -%}
{% if contributors | length > 0 %}
{% if github.contributors | length > 0 %}
### 👥 Contributors

{% for name in contributors %}\
- {{ name }}
{% for contributor in github.contributors | sort(attribute="username") %}\
- [<img src="https://github.com/{{ contributor.username }}.png?size=24" width="24" height="24" alt="@{{ contributor.username }}" />](https://github.com/{{ contributor.username }}) [@{{ contributor.username }}](https://github.com/{{ contributor.username }})
{% endfor %}
{% endif %}\
"""
Expand Down Expand Up @@ -47,3 +46,7 @@ commit_parsers = [
filter_commits = true
tag_pattern = "v[0-9].*"
sort_commits = "oldest"

[remote.github]
owner = "imcf"
repo = "patchworks"
Loading