mirror of
https://github.com/zulip/zulip.git
synced 2026-06-30 21:11:04 +08:00
hooks: Give a bit better Zulip deploy message.
This commit is contained in:
parent
938b7917d3
commit
775c7ca4ea
@ -26,8 +26,9 @@ fi
|
||||
from=${ZULIP_OLD_MERGE_BASE_COMMIT:-$ZULIP_OLD_VERSION}
|
||||
to=${ZULIP_NEW_MERGE_BASE_COMMIT:-$ZULIP_NEW_VERSION}
|
||||
deploy_environment=$(crudini --get /etc/zulip/zulip.conf machine deploy_type || echo "development")
|
||||
commit_count=$(git rev-list "${from}..${to}" | wc -l)
|
||||
|
||||
echo "zulip_notify: Sending notify of $from .. $to for $deploy_environment to $zulip_notify_server"
|
||||
echo "zulip_notify: Sending notify of $from .. $to ($commit_count commits) for $deploy_environment to $zulip_notify_server"
|
||||
|
||||
zulip_send() {
|
||||
./zulip-py3-venv/bin/zulip-send \
|
||||
|
||||
@ -4,4 +4,5 @@ set -e
|
||||
set -u
|
||||
|
||||
source "$(dirname "$0")/../common/zulip_notify.sh"
|
||||
zulip_send "Finished deploying from $from to $to on $(hostname)"
|
||||
|
||||
zulip_send "Finished ${deploy_environment} deploy of [${commit_count} new commits](https://github.com/zulip/zulip/compare/${from}...${to}) on $(hostname)"
|
||||
|
||||
@ -4,4 +4,5 @@ set -e
|
||||
set -u
|
||||
|
||||
source "$(dirname "$0")/../common/zulip_notify.sh"
|
||||
zulip_send "Starting deploy from $from to $to on $(hostname)"
|
||||
|
||||
zulip_send "Starting ${deploy_environment} deploy of [${commit_count} new commits](https://github.com/zulip/zulip/compare/${from}...${to}) on $(hostname)"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user