pr-check: Don't post domain comment if pr is marked as blocked

This commit is contained in:
bbhtt
2025-09-05 16:56:20 +05:30
parent fb5e7cfe38
commit 1393bb988a
+2
View File
@@ -169,6 +169,7 @@ jobs:
echo "BLOCKED is set to $BLOCKED"
if [ "$BLOCKED" -eq 0 ]; then
if ! label_exists_any "blocked"; then
DOMAIN=$(curl -sSL "$DOMAIN_SCRIPT_URL" | python3 - "$PR_TITLE")
if [ -n "$DOMAIN" ] && [ "$DOMAIN" != "None" ]; then
echo "Domain is: $DOMAIN"
@@ -180,6 +181,7 @@ jobs:
gh pr comment "$PR_NUM" --body "$DOMAIN_COMMENT"
fi
fi
fi
if label_exists_any "pr-check-blocked"; then
echo "Removing pr-check-blocked label"
gh pr edit "$PR_NUM" --remove-label "pr-check-blocked" || true