]> git.corax.cc Git - foundry/commitdiff
include/msg/merge: Remove log property
authorMatthias Kruk <m@m10k.eu>
Sun, 8 Aug 2021 02:32:16 +0000 (11:32 +0900)
committerMatthias Kruk <m@m10k.eu>
Sun, 8 Aug 2021 02:32:16 +0000 (11:32 +0900)
The log property was removed from the message definition of merge
messages, but the foundry/msg/merge module provides means to set and
get the value of this property.
This commit removes the log argument from foundry_msg_merge_new() and
the foundry_msg_merge_get_log() method, so that the log property
cannot be accessed anymore.

include/msg/merge.sh

index 39b0d8d237cdb48a8ca07f264021f464674fb6cd..3b64d6139b3fb9e5a87f325086640bcb2f8741c8 100644 (file)
@@ -16,7 +16,6 @@ foundry_msg_merge_new() {
        local srcbranch="$3"
        local dstbranch="$4"
        local status="$5"
-       local log="$6"
 
        local json
        local msg
@@ -25,8 +24,7 @@ foundry_msg_merge_new() {
                                "repository" "$repository" \
                                "srcbranch"  "$srcbranch"  \
                                "dstbranch"  "$dstbranch"  \
-                               "status"     "$status"     \
-                               "log"        "$log"); then
+                               "status"     "$status"); then
                return 1
        fi
 
@@ -102,16 +100,3 @@ foundry_msg_merge_get_status() {
        echo "$status"
        return 0
 }
-
-foundry_msg_merge_get_log() {
-       local msg="$1"
-
-       local log
-
-       if ! log=$(foundry_msg_get_data_field "$msg" "log"); then
-               return 1
-       fi
-
-       echo "$log"
-       return 0
-}