Skip to content

Add check for not existing release version#179

Merged
falfaroc merged 1 commit into
mainfrom
usr/falfaroc/fix-initial-release
Aug 15, 2025
Merged

Add check for not existing release version#179
falfaroc merged 1 commit into
mainfrom
usr/falfaroc/fix-initial-release

Conversation

@falfaroc
Copy link
Copy Markdown
Contributor

Description

An issue was identified where, if the repository was cutting it's first initial release, the release creator would fail due to the retrieval of releases returning null. This causes issues with new repositories and forces the developers to manually cut a release which could be error prone.

Fix: Check the response of the curl command and if it returns that there is no release, set the version to be v0.0.0. This allows the rest of the action to work as expected since it will automatically increment the version.

Issues

List the issues impacted by this PR:

Issue ID
https://github.com/dell/csm/issues/1490

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration

  • Tested to ensure that initial releases work in a similar manner as other every other release.
image

@falfaroc falfaroc merged commit c3d8bfb into main Aug 15, 2025
2 checks passed
@falfaroc falfaroc deleted the usr/falfaroc/fix-initial-release branch August 15, 2025 19:29
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.

4 participants