From ad33a3f24d738f9d667cf67712f984704cb23f17 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Fri, 26 Nov 2021 20:48:09 +0900 Subject: [PATCH] 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". --- watchbot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.3