From: Matthias Kruk Date: Fri, 26 Nov 2021 11:48:09 +0000 (+0900) Subject: watchbot: Rename "commit" to "ref" X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=ad33a3f24d738f9d667cf67712f984704cb23f17;p=foundry watchbot: Rename "commit" to "ref" The name of the "commit" member of commit messages has been changed to "ref", but watchbot still used the old terminology. This commit modifies watchbot to use the term "ref" instead of "commit". --- diff --git a/watchbot.sh b/watchbot.sh index 6c8e8ed..497153b 100755 --- a/watchbot.sh +++ b/watchbot.sh @@ -139,7 +139,7 @@ send_notification() { local endpoint="$1" local topic="$2" local watch="$3" - local commit="$4" + local ref="$4" local repository local branch @@ -147,7 +147,7 @@ send_notification() { repository=$(watch_to_repository "$watch") branch=$(watch_to_branch "$watch") - msg=$(foundry_msg_commit_new "$repository" "$branch" "$commit") + msg=$(foundry_msg_commit_new "$repository" "$branch" "$ref") if ! ipc_endpoint_publish "$endpoint" "$topic" "$msg"; then return 1