Skip to content

Commit

Permalink
fix(bumper): fix unbound variable on new repo 2 (#32)
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 accuracy and consistency of status messages related to
pull requests and pushes.
  
- **New Features**
- Introduced a new function for better retrieval of head labels in
status messages.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
aamkye authored Oct 1, 2024
1 parent 5d81bd0 commit 2491a49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/message.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ make_push_status() {
COMPARE=""
ADDITIONAL_INFO=""

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

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

0 comments on commit 2491a49

Please sign in to comment.