Elffuss BraidHub

kikocis/continue public

fix: continue review indentation
Changeset02fb2f830d9090fe8a04ea653800c44d2515d2018b6cf7d16583ee96c0c0b4fb
AuthorTing-Wai To <40179554+tingwai@users.noreply.github.com> · 2025-09-18 10:31 -07:00
CommitterTing-Wai To <40179554+tingwai@users.noreply.github.com> · 2025-09-18 10:31 -07:00
Parentsd4eec0630c2e

Browse the files at this changeset

1 file changed

modified actions/general-review/action.yml +12 −12
@@ -213,15 +213,15 @@
213213 # Write prompt to temp file for better handling
214214 PROMPT_FILE="/tmp/continue-prompt-$.txt"
215215 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'
225225 ## Code Review Summary
226226
227227 ⚠️ AI review failed due to service initialization issues. Please check the Continue API key and configuration.
@@ -231,9 +231,9 @@
231231 - Check that the organization and config path are valid
232232 - Ensure the Continue service is accessible
233233 EOF
234- else
235- echo "Review generated successfully"
236- fi
234+ else
235+ echo "Review generated successfully"
236+ fi
237237 fi
238238
239239 - name: Upload Review Results