Merge pull request #176 from continuedev/nate/auto-revew
Add --auto flag to continue-review workflow
This commit is contained in:
commit
ff300a90ea
1 changed files with 3 additions and 4 deletions
7
.github/workflows/continue-review.yaml
vendored
7
.github/workflows/continue-review.yaml
vendored
|
|
@ -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 }}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue