diff --git a/comment.sh b/comment.sh index c82a872..e051546 100755 --- a/comment.sh +++ b/comment.sh @@ -18,8 +18,7 @@ fi # Get the GraphQL ID 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}}"