Changesets · Branches · Tags · Compare
| Changeset | b368ae63ce3eb919600ac7632a2028a3f2e421dd612d6b2d69666975f772b87b |
|---|---|
| Author | Ting-Wai <40179554+tingwai@users.noreply.github.com> · 2025-09-18 13:12 -07:00 |
| Committer | GitHub <noreply@github.com> · 2025-09-18 13:12 -07:00 |
| Parents | ff45c71a54a7, 02fb2f830d90 |
1 file changed
modified actions/general-review/action.yml +12 −12
| @@ -213,15 +213,15 @@ | ||
| 213 | 213 | # Write prompt to temp file for better handling |
| 214 | 214 | PROMPT_FILE="/tmp/continue-prompt-$.txt" |
| 215 | 215 | cp review_prompt.txt "$PROMPT_FILE" |
| 216 | - | |
| 217 | - # Use timeout to prevent hanging (240 seconds = 4 minutes) | |
| 218 | - if ! timeout 240 cn --config "$CONTINUE_ORG/$CONTINUE_CONFIG" -p "@$PROMPT_FILE" --allow Bash > code_review.md 2>cli_error.log; then | |
| 219 | - echo "Error: Continue CLI command failed" | |
| 220 | - echo "CLI error log:" | |
| 221 | - cat cli_error.log | |
| 222 | - | |
| 223 | - # Create fallback review | |
| 224 | - cat > code_review.md << 'EOF' | |
| 216 | + | |
| 217 | + # Use timeout to prevent hanging (240 seconds = 4 minutes) | |
| 218 | + if ! timeout 240 cn --config "$CONTINUE_ORG/$CONTINUE_CONFIG" -p "@$PROMPT_FILE" --allow Bash > code_review.md 2>cli_error.log; then | |
| 219 | + echo "Error: Continue CLI command failed" | |
| 220 | + echo "CLI error log:" | |
| 221 | + cat cli_error.log | |
| 222 | + | |
| 223 | + # Create fallback review | |
| 224 | + cat > code_review.md << 'EOF' | |
| 225 | 225 | ## Code Review Summary |
| 226 | 226 | |
| 227 | 227 | ⚠️ AI review failed due to service initialization issues. Please check the Continue API key and configuration. |
| @@ -231,9 +231,9 @@ | ||
| 231 | 231 | - Check that the organization and config path are valid |
| 232 | 232 | - Ensure the Continue service is accessible |
| 233 | 233 | EOF |
| 234 | - else | |
| 235 | - echo "Review generated successfully" | |
| 236 | - fi | |
| 234 | + else | |
| 235 | + echo "Review generated successfully" | |
| 236 | + fi | |
| 237 | 237 | fi |
| 238 | 238 | |
| 239 | 239 | - name: Upload Review Results |