From 9c4c2556f234d8fff14b54f6b14947e3d83d5fb9 Mon Sep 17 00:00:00 2001 From: redfast00 Date: Fri, 8 Mar 2019 02:46:06 +0100 Subject: [PATCH 1/2] Changed bot user --- comment.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comment.sh b/comment.sh index c82a872..c618c2d 100755 --- a/comment.sh +++ b/comment.sh @@ -19,7 +19,7 @@ fi PR_ID=$(echo $RESULT | sed 's/.*"id":"\([^"]*\)".*/\1/') # TODO: Have another user do the commenting -if [[ $RESULT == *"werthen"* ]]; then +if [[ $RESULT == *"zeuswpi-bot"* ]]; then echo "User has already commented" else ADD_COMMENT_STR="mutation{addComment(input:{subjectId:\\\"$PR_ID\\\",body:\\\"Check out the preview on https://$PR_NR.pr.zeus.gent/\\\"}){clientMutationId}}" From 4e250ff5989d809bccdfae694c5a558069a635df Mon Sep 17 00:00:00 2001 From: redfast00 Date: Fri, 8 Mar 2019 02:47:07 +0100 Subject: [PATCH 2/2] Removed comment --- comment.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/comment.sh b/comment.sh index c618c2d..e051546 100755 --- a/comment.sh +++ b/comment.sh @@ -18,7 +18,6 @@ fi # Get the GraphQL ID PR_ID=$(echo $RESULT | sed 's/.*"id":"\([^"]*\)".*/\1/') -# TODO: Have another user do the commenting if [[ $RESULT == *"zeuswpi-bot"* ]]; then echo "User has already commented" else