Skip to content

Commit

Permalink
fix(bumper): fix unbound variable on new repo (#31)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Bug Fixes**
- Improved the handling of version variables to prevent errors when they
are unset or null.
  
- **Refactor**
- Enhanced the robustness of string construction in the status message
generation process.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
aamkye authored Sep 27, 2024
1 parent 2ea685a commit 5d81bd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/message.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ make_pr_status() {
ADDITIONAL_INFO=""

if [[ -n "${BUMPER_CURRENT_VERSION:-}" ]]; then
COMPARE="**Changes**: [${BUMPER_CURRENT_VERSION}...${head_label}](${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/compare/${BUMPER_CURRENT_VERSION}...${head_label})"
COMPARE="**Changes**: [${BUMPER_CURRENT_VERSION:-}...${head_label}](${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/compare/${BUMPER_CURRENT_VERSION:-}...${head_label})"
fi

if [[ -n "${INPUT_BUMP_SEMVER}" && "${INPUT_BUMP_SEMVER}" == "true" ]]; then
Expand Down

0 comments on commit 5d81bd0

Please sign in to comment.