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
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ All notable changes to this project will be documented in this file. See [conven

- - -

Changelog generated by [cocogitto](https://github.com/cocogitto/cocogitto).
Changelog generated by [cocogitto](https://github.com/cocogitto/cocogitto).
2 changes: 2 additions & 0 deletions cog.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ branch_whitelist = ["main"]
# `` will be interpreted as your target version
# `` includes the version and the `tag_prefix`
post_bump_hooks = [
# Ensure CHANGELOG.md has a trailing newline
"sh -c 'f=CHANGELOG.md; test \"$(tail -c1 $f)\" && echo >> $f; git add $f && git commit --amend --no-edit'",
# Re-tag release commit to ensure a signed tag
"git tag {{version_tag}} {{version_tag}}^{} --force --sign --message='Release {{version}}'"]

Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ render:
! -name '.serena' \
! -name 'template' ! -name 'includes' ! -name 'copier.yaml' \
! -name 'hack' ! -name 'tests' ! -name 'pytest.ini' \
! -name 'flake.lock' \
! -name 'flake.lock' ! -name 'CHANGELOG.md' \
-exec rm -rf {} +
# Regenerate from template
copier copy --vcs-ref=HEAD --trust --defaults \
Expand Down
2 changes: 2 additions & 0 deletions template/cog.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ branch_whitelist = ["{{ "." | gitdefaultbranch }}"]
# `{{version}}` will be interpreted as your target version
# `{{version_tag}}` includes the version and the `tag_prefix`
post_bump_hooks = [
# Ensure CHANGELOG.md has a trailing newline
"sh -c 'f=CHANGELOG.md; test \"$(tail -c1 $f)\" && echo >> $f; git add $f && git commit --amend --no-edit'",
# Re-tag release commit to ensure a signed tag
{% raw %}"git tag {{version_tag}} {{version_tag}}^{} --force --sign --message='Release {{version}}'"{% endraw %}
]
Expand Down
Loading