From 43b9f405caf126f846cf9a4bc67d7ed1e6e62db3 Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Wed, 12 Nov 2025 00:36:05 +0400 Subject: [PATCH] chore: conditionally generate suggestions --- .github/workflows/issue-validation.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issue-validation.yml b/.github/workflows/issue-validation.yml index 164d43c..e58f352 100644 --- a/.github/workflows/issue-validation.yml +++ b/.github/workflows/issue-validation.yml @@ -167,6 +167,15 @@ jobs: echo "✅ Issue contains sufficient information" # Prepare a summary comment even when valid + # Build suggestions section conditionally + SUGGESTIONS_SECTION="" + if [ -n "$SUGGESTIONS" ]; then + SUGGESTIONS_SECTION="### 💡 Suggestions: + $SUGGESTIONS + + " + fi + cat > comment.md << EOF ## 🤖 Issue Validation @@ -174,8 +183,7 @@ jobs: **Assessment:** $ASSESSMENT - $( [ -n "$SUGGESTIONS" ] && echo "### 💡 Suggestions:" && echo "$SUGGESTIONS" ) - + $SUGGESTIONS_SECTION --- *This validation was performed automatically to help triage issues.* EOF