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

Add acknowledgement message for releases with no changelog entries #50

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

Conversation

joshuacurtiss
Copy link

By detecting if the changelog content is empty, the release script would return undefined which then caused the release to abort. We just change the logic to instead insert a line that indicates, "This release only contains documentation or internal changes." That prevents the release from aborting and provides a meaningful comment to fill the void of any otherwise empty space where the changelog entries would appear.

As explained in #49, this enables us to still add releases to the changelog even when all the changes are internal/documentation.

In the event that no changelog entries are found for a release, we add a
line acknowledging this, so that there is content associated with the
changelog header for this version.

This phenomenon can happen since a release may be made that consists of
commits that are not included as changelog entries, like `build`,
`chore`, or `docs`.

Previously, the release process would abort if there were no changelog
entries. This change allows us to still update the changelog with the
version release when only internal/documentation commits make up the
release.
Since a changelog will always be created even when no applicable
changelog entries are generated, the bullet point for this scenario can
be removed.
@yokuze yokuze requested a review from onebytegone August 26, 2022 01:48
@pbredenberg
Copy link
Contributor

pbredenberg commented Mar 10, 2023

@yokuze @joshuacurtiss is this still a thing we want to land?

@yokuze
Copy link
Contributor

yokuze commented Mar 10, 2023

@yokuze @joshuacurtiss is this still a thing we want to land?

@pbredenberg
Copy link
Contributor

@onebytegone this seems reasonable to me. Thoughts?

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.

3 participants