You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Validate ROOT_COMMENT_ID is a valid integer before using it
480
+
if [ -z "$ROOT_COMMENT_ID" ]; then
481
+
echo "::error::ROOT_COMMENT_ID is not set"
482
+
exit 1
483
+
fi
484
+
485
+
if ! [[ "$ROOT_COMMENT_ID" =~ ^[0-9]+$ ]]; then
486
+
echo "::error::ROOT_COMMENT_ID is not a valid integer: '$ROOT_COMMENT_ID'"
487
+
exit 1
488
+
fi
489
+
451
490
jq -n \
452
491
--arg body "Sorry @$AUTHOR, conversational replies are currently available to repository collaborators only. Your feedback has still been captured and will be used to improve future reviews.
453
492
454
493
<!-- cagent-review-reply -->" \
455
494
--argjson reply_to "$ROOT_COMMENT_ID" \
456
-
'{body: $body, in_reply_to_id: $reply_to}' | \
495
+
'{body: $body, in_reply_to: $reply_to}' | \
457
496
gh api "repos/$REPO/pulls/$PR_NUMBER/comments" --input -
0 commit comments