Skip to content

Commit

Permalink
chore: Add changelog config
Browse files Browse the repository at this point in the history
Signed-off-by: Charles Moore <[email protected]>
  • Loading branch information
moorec-aws committed Feb 21, 2024
1 parent c5f92a1 commit fc450c4
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .semantic_release/CHANGELOG.md.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{% for version, release in context.history.released.items() %}
## {{ version.as_tag() }} ({{ release.tagged_date.strftime("%Y-%m-%d") }})

{% if "breaking" in release["elements"] %}
### BREAKING CHANGES
{% for commit in release["elements"]["breaking"] %}
* {% if commit.scope %}**{{ commit.scope }}**: {% endif %}{{ commit.commit.summary[commit.commit.summary.find(": ")+1:].strip() }} ([`{{ commit.short_hash }}`]({{ commit.commit.hexsha | commit_hash_url }}))
{% endfor %}
{% endif %}

{% if "feature" in release["elements"] %}
### Features
{% for commit in release["elements"]["feature"] %}
* {% if commit.scope %}**{{ commit.scope }}**: {% endif %}{{ commit.commit.summary[commit.commit.summary.find(": ")+1:].strip() }} ([`{{ commit.short_hash }}`]({{ commit.commit.hexsha | commit_hash_url }}))
{% endfor %}
{% endif %}

{% if "fix" in release["elements"] %}
### Bug Fixes
{% for commit in release["elements"]["fix"] %}
* {% if commit.scope %}**{{ commit.scope }}**: {% endif %}{{ commit.commit.summary[commit.commit.summary.find(":")+1:].strip() }} ([`{{ commit.short_hash }}`]({{ commit.commit.hexsha | commit_hash_url }}))
{% endfor %}
{% endif %}

{% endfor %}

0 comments on commit fc450c4

Please sign in to comment.