From c3bf13d40f3a4cb8f1f377a827c6333f63b416d4 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Fri, 26 Nov 2021 21:38:08 +0900 Subject: [PATCH] watchbot: Rename option "topic" to "publish-to" To make the usage of options more uniform across all foundry bots, bots must read the name of the topic for outgoing messages from the "publish-to" option. This commit renames the "topic" option of watchbot to "publish-to". --- watchbot.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/watchbot.sh b/watchbot.sh index 497153b..a373ce8 100755 --- a/watchbot.sh +++ b/watchbot.sh @@ -203,12 +203,12 @@ _watch() { main() { local watchlist local interval - local topic + local publish_to opt_add_arg "r" "repository" "rv" "" \ "Repository to watch for updates" \ "" _add_to_watchlist - opt_add_arg "t" "topic" "v" "commits" \ + opt_add_arg "p" "publish-to" "v" "commits" \ "Topic to publish notifications" opt_add_arg "i" "interval" "v" 30 \ "Update check interval" "^[0-9]+$" @@ -219,10 +219,10 @@ main() { return 1 fi - topic=$(opt_get "topic") + publish_to=$(opt_get "publish-to") interval=$(opt_get "interval") - inst_start _watch "$topic" "$interval" "${watchlist[@]}" + inst_start _watch "$publish_to" "$interval" "${watchlist[@]}" return 0 } -- 2.47.3