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