commit
36d4bf3436
1 changed files with 1 additions and 2 deletions
|
@ -18,8 +18,7 @@ fi
|
||||||
# Get the GraphQL ID
|
# Get the GraphQL ID
|
||||||
PR_ID=$(echo $RESULT | sed 's/.*"id":"\([^"]*\)".*/\1/')
|
PR_ID=$(echo $RESULT | sed 's/.*"id":"\([^"]*\)".*/\1/')
|
||||||
|
|
||||||
# TODO: Have another user do the commenting
|
if [[ $RESULT == *"zeuswpi-bot"* ]]; then
|
||||||
if [[ $RESULT == *"werthen"* ]]; then
|
|
||||||
echo "User has already commented"
|
echo "User has already commented"
|
||||||
else
|
else
|
||||||
ADD_COMMENT_STR="mutation{addComment(input:{subjectId:\\\"$PR_ID\\\",body:\\\"Check out the preview on https://$PR_NR.pr.zeus.gent/\\\"}){clientMutationId}}"
|
ADD_COMMENT_STR="mutation{addComment(input:{subjectId:\\\"$PR_ID\\\",body:\\\"Check out the preview on https://$PR_NR.pr.zeus.gent/\\\"}){clientMutationId}}"
|
||||||
|
|
Loading…
Reference in a new issue