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

Release/2.3.0 #77

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Release/2.3.0 #77

wants to merge 2 commits into from

Conversation

mbercx
Copy link
Member

@mbercx mbercx commented May 8, 2024

No description provided.

@mbercx mbercx requested a review from sphuber May 8, 2024 17:00
@mbercx mbercx requested review from t-reents and Minotakm July 29, 2024 11:42
Copy link
Collaborator

@t-reents t-reents left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know that this is a kind of standard function (also used in AiiDA-QE) that requires some manual adjustments, anyway. However, I realized that the title Changelog is simply overwritten and that the date is missing next to the new version. Therefore, I added some small suggestions to also respect these aspects in the generated template.

Comment on lines +84 to +86
with Path('CHANGELOG.md').open('w', encoding='utf8') as handle:
handle.write(changelog_message + '\n\n' + current_changelog)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
with Path('CHANGELOG.md').open('w', encoding='utf8') as handle:
handle.write(changelog_message + '\n\n' + current_changelog)
changelog_header = '# Change log\n\n'
with Path('CHANGELOG.md').open('w', encoding='utf8') as handle:
handle.write(changelog_header + current_changelog.replace(changelog_header, changelog_message + '\n\n'))


changelog_message = f'## v{__version__}\n' + DEFAULT_CHANGELOG_SECTIONS

for commit in commits.splitlines():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for commit in commits.splitlines():
release_date = date.today()
changelog_message = f'## `v{__version__}` - {release_date}\n' + DEFAULT_CHANGELOG_SECTIONS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants