Merge pull request #176 from continuedev/nate/auto-revew

Add --auto flag to continue-review workflow
This commit is contained in:
Nate Sesti 2025-08-09 15:12:43 -07:00 • committed by GitHub
commit ff300a90ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -151,11 +151,10 @@ jobs:
if: inputs.prompt == '' && github.event_name != 'pull_request' && (github.event_name != 'workflow_run' || github.event.workflow_run.event != 'pull_request')
run: |
cat > review_prompt.txt << 'EOF'
Please review the recent changes to this codebase and provide feedback on code quality, potential issues, and suggestions for improvement.
Please review the recent changes to this codebase and provide feedback on code quality, potential issues, and suggestions for improvement. You do not need to acknowledge what was done well.
Format your response as a markdown code review.
Format your response as a markdown code review with each comment having only a short description about the problem and suggested solution, each being separated by "\n\n---\n\n".
Only call the 'exit' tool if you find critical security vulnerabilities or bugs that would break production.
EOF
- name: Run Continue CLI Review
@ -167,7 +166,7 @@ jobs:
echo ""
# Run the CLI with the generated prompt and pipe output to code_review.md
cat review_prompt.txt | cn --config "${{ inputs.assistant }}" -p > code_review.md
cat review_prompt.txt | cn --auto --config "${{ inputs.assistant }}" -p > code_review.md
env:
CONTINUE_API_KEY: ${{ secrets.CONTINUE_API_KEY }}