]> git.corax.cc Git - foundry/commitdiff
watchbot: Rename "commit" to "ref"
authorMatthias Kruk <m@m10k.eu>
Fri, 26 Nov 2021 11:48:09 +0000 (20:48 +0900)
committerMatthias Kruk <m@m10k.eu>
Fri, 26 Nov 2021 11:48:09 +0000 (20:48 +0900)
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

index 6c8e8ed7896b0611b3cecdb8630ff50214b987b9..497153be67631a232779d23cee461b80e8766458 100755 (executable)
@@ -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