Skip to content

Commit 64b92cc

Browse files
committed
Update cloudflare-notify.sh
1 parent cc300e3 commit 64b92cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/cloudflare-notify.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ fi
2727
case "$CF_PAGES_BRANCH" in
2828
deploy)
2929
X="🚀"
30-
ENV_LABEL="Production"
30+
ENV_LABEL="Production site"
3131
URL="https://reacttogether.dev"
3232
;;
3333
main|develop|staging)
3434
X="👁️"
35-
ENV_LABEL="${CF_PAGES_BRANCH^}"
35+
ENV_LABEL="${CF_PAGES_BRANCH^} Preview site"
3636
URL="https://${CF_PAGES_BRANCH}.reacttogether.dev"
3737
;;
3838
*)
3939
X="🔧"
40-
ENV_LABEL="Branch"
40+
ENV_LABEL="'${CF_PAGES_BRANCH}' branch"
4141
# guess Cloudflare's preview branch URL from the branch name
4242
BRANCH_HOST=$(echo $CF_PAGES_BRANCH | sed -r 's [^-a-zA-Z0-9] - g;s -+ - g' | tr A-Z a-z | cut -c 1-28)
4343
URL="https://${BRANCH_HOST}.reacttogether.pages.dev"

0 commit comments

Comments
 (0)