[workspace]
release_commits = "^(feat|fix)[(:!]"
[[package]]
name = "rustybam"
git_tag_name = "v{{ version }}"
git_release_draft = true
features_always_increment_minor = true
git_release_body = """
## Install
Prebuilt binaries are attached below. Quick install (Linux/macOS):
```sh
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/vollgerlab/rustybam/releases/download/v{{ version }}/rustybam-installer.sh | sh
```
{{ changelog }}
"""
[changelog]
body = """
## [{{ version | trim_start_matches(pat="v") }}]{%- if release_link %}({{ release_link }}){% endif %} - {{ timestamp | date(format="%Y-%m-%d") }}
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits %}
- {{ commit.message | split(pat="\n") | first | trim }}\
{%- if commit.remote.pr_number %} ([#{{ commit.remote.pr_number }}]({{ remote.link }}/pull/{{ commit.remote.pr_number }})){% else %} ([{{ commit.id | truncate(length=7, end="") }}]({{ remote.link }}/commit/{{ commit.id }})){% endif %}
{%- endfor %}
{% endfor %}
"""