From 1393bb988aec743fc97e023f4dbb5cc7d4f89cd7 Mon Sep 17 00:00:00 2001 From: bbhtt Date: Fri, 5 Sep 2025 16:56:20 +0530 Subject: [PATCH] pr-check: Don't post domain comment if pr is marked as blocked --- .github/workflows/pr-check.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 4db6322..0c7f89c 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -169,15 +169,17 @@ jobs: echo "BLOCKED is set to $BLOCKED" if [ "$BLOCKED" -eq 0 ]; then - DOMAIN=$(curl -sSL "$DOMAIN_SCRIPT_URL" | python3 - "$PR_TITLE") - if [ -n "$DOMAIN" ] && [ "$DOMAIN" != "None" ]; then - echo "Domain is: $DOMAIN" - VERIF_URL="https://$DOMAIN/.well-known/org.flathub.VerifiedApps.txt" - VERIF_COMMENT="If you intend to verify this app, please confirm that you can upload $VERIF_URL. Otherwise, ignore this" - DOMAIN_COMMENT="$DOMAIN_COMMENT_PARTIAL $DOMAIN. $VERIF_COMMENT. Please comment if this incorrect." - if ! comment_exists_full "$DOMAIN_COMMENT"; then - echo "Did not find domain comment, commenting" - gh pr comment "$PR_NUM" --body "$DOMAIN_COMMENT" + 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" + VERIF_URL="https://$DOMAIN/.well-known/org.flathub.VerifiedApps.txt" + VERIF_COMMENT="If you intend to verify this app, please confirm that you can upload $VERIF_URL. Otherwise, ignore this" + DOMAIN_COMMENT="$DOMAIN_COMMENT_PARTIAL $DOMAIN. $VERIF_COMMENT. Please comment if this incorrect." + if ! comment_exists_full "$DOMAIN_COMMENT"; then + echo "Did not find domain comment, commenting" + gh pr comment "$PR_NUM" --body "$DOMAIN_COMMENT" + fi fi fi if label_exists_any "pr-check-blocked"; then