Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(release): update release notes template #163

Merged
merged 8 commits into from
Feb 14, 2024
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
32 changes: 0 additions & 32 deletions .github/workflows/python-publish.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
git config --global tag.gpgSign true
poetry run semantic-release version --major --no-commit
poetry run semantic-release publish
poetry publish --build --username $PYPI_USERNAME --password $PYPI_PASSWORD
poetry publish -vvv --username $PYPI_USERNAME --password $PYPI_PASSWORD
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
PYPI_USERNAME: __token__
Expand All @@ -70,7 +70,7 @@ jobs:
git config --global tag.gpgSign true
poetry run semantic-release version --no-commit
poetry run semantic-release publish
poetry publish --build --username $PYPI_USERNAME --password $PYPI_PASSWORD
poetry publish -vvv --username $PYPI_USERNAME --password $PYPI_PASSWORD
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
PYPI_USERNAME: __token__
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ ignore_token_for_push = false
[tool.semantic_release.remote.token]
env = "GH_TOKEN"


[tool.semantic_release.publish]
dist_glob_patterns = ["dist/*"]
upload_to_vcs_release = true
25 changes: 25 additions & 0 deletions templates/.release_notes.md.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## Changes

## 🚀 Features

{% for type_, commits in release["elements"] | dictsort %}
{%- if type_ == "feature" %}
{% for commit in commits %}
* ({{type_}}):{{ commit.descriptions[0] }} by {{commit.commit.author.name}} in [`{{ commit.short_hash }}`]
{%- endfor %}{% endif %}{% endfor %}

## 🐛 Bug Fixes

{% for type_, commits in release["elements"] | dictsort %}
{%- if type_ == "fix" %}
{% for commit in commits %}
* ({{type_}}):{{ commit.descriptions[0] }} by {{commit.commit.author.name}} in [`{{ commit.short_hash }}`]
{%- endfor %}{% endif %}{% endfor %}

## 🧰 Maintenance

{% for type_, commits in release["elements"] | dictsort %}
{%- if type_ in ["chore", "ci", "documentation", "refactor", "test"] %}
{% for commit in commits %}
* ({{type_}}):{{ commit.descriptions[0] }} by {{commit.commit.author.name}} in [`{{ commit.short_hash }}`]
{%- endfor %}{% endif %}{% endfor %}
Loading