Skip to content

Commit

Permalink
feat: add simple inflection to branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Diaz-Gonzalez committed Dec 4, 2020
1 parent 3b6b29a commit 9f67113
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/dokku-deploy
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ if [ "$COMMAND" = "review-apps:create" ] || [ "$COMMAND" = 'review-apps:destroy'
exit 1
fi

CI_BRANCH_NAME="$(echo "$CI_BRANCH_NAME" | tr '[:upper:]' '[:lower:]' | sed "s/[[:alpha:].-]/-/g")"
REVIEW_APP_NAME="review-${app_name}-${CI_BRANCH_NAME}"
log-info "No review app name specified, using $REVIEW_APP_NAME"
fi
Expand Down

0 comments on commit 9f67113

Please sign in to comment.