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

fix updatePackageChangelog to not to throw when there are unreleased changes #139

Merged
merged 3 commits into from
Aug 20, 2024

Conversation

kanthesha
Copy link
Contributor

Explanation

Currently, the create-release-pr action is terminated with an error message ("updateChangelog" returned an empty value for package ...) and the release candidate is not created if the updateChangelog call does not return any new entries, but there are unreleased changes.

The error should be triggered only if both of the following are true:

  • updateChangelog returns a null value.
  • There are no unreleased changes present in the changelog

References

@kanthesha kanthesha marked this pull request as ready for review August 20, 2024 12:52
@kanthesha kanthesha requested a review from a team as a code owner August 20, 2024 12:52
mikesposito
mikesposito previously approved these changes Aug 20, 2024
Copy link
Member

@mikesposito mikesposito left a comment

Choose a reason for hiding this comment

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

LGTM!

@kanthesha kanthesha merged commit d2cc9bb into main Aug 20, 2024
8 checks passed
@kanthesha kanthesha deleted the fix/rc-unreleased-changes branch August 20, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Release candidate should be created even if updateChangelog does not return any new entries
2 participants