hooks: Give a bit better Zulip deploy message.

This commit is contained in:
Alex Vandiver 2023-04-19 15:39:12 +00:00 committed by Tim Abbott
parent 938b7917d3
commit 775c7ca4ea
3 changed files with 6 additions and 3 deletions

View File

@ -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 \

View File

@ -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)"

View File

@ -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)"