rename some things

This commit is contained in:
Nate 2025-07-20 23:15:01 -07:00
parent f0084c304a
commit 01b6ef2e64
2 changed files with 10 additions and 14 deletions

View file

@ -8,7 +8,7 @@ on:
required: false
default: "nate/default-assistant"
type: string
custom_prompt:
prompt:
description: "Custom prompt to use instead of the default PR review"
required: false
type: string
@ -22,7 +22,7 @@ on:
required: false
default: "nate/default-assistant"
type: string
custom_prompt:
prompt:
description: "Custom prompt to use instead of the default PR review"
required: false
type: string
@ -119,7 +119,7 @@ jobs:
GH_TOKEN: ${{ github.token }}
- name: Build custom prompt
if: inputs.custom_prompt != ''
if: inputs.prompt != ''
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
@ -136,7 +136,7 @@ jobs:
gh pr diff $PR_NUMBER > pr_diff.txt
# Create custom prompt with diff included
echo "${{ inputs.custom_prompt }}" > review_prompt.txt
echo "${{ inputs.prompt }}" > review_prompt.txt
echo "" >> review_prompt.txt
echo "Below is the git diff showing all the changes:" >> review_prompt.txt
echo "" >> review_prompt.txt
@ -144,11 +144,11 @@ jobs:
cat pr_diff.txt >> review_prompt.txt
echo "--- PR DIFF END ---" >> review_prompt.txt
else
echo "${{ inputs.custom_prompt }}" > review_prompt.txt
echo "${{ inputs.prompt }}" > review_prompt.txt
fi
- name: Build default prompt for non-PR triggers
if: inputs.custom_prompt == '' && github.event_name != 'pull_request' && (github.event_name != 'workflow_run' || github.event.workflow_run.event != 'pull_request')
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.

View file

@ -3,8 +3,6 @@ name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
permissions:
contents: read
@ -48,19 +46,17 @@ jobs:
- name: Run linting
run: npm run lint
continue-review:
if: github.event_name == 'pull_request'
review:
uses: ./.github/workflows/continue-review.yaml
secrets:
CONTINUE_API_KEY: ${{ secrets.CONTINUE_API_KEY }}
with:
assistant: "nate/default-assistant"
custom_prompt: |
prompt: |
Please review the below changes for any mistakes. You can look around the codebase to investigate if needed. Look for:
- React changes causing too many re-renders
- Functions that are too long
- Other potentially subtle bugs
Keep your response concise and give a bullet pointed list of the findings, including suggested fixes for any problems you find.
secrets:
CONTINUE_API_KEY: ${{ secrets.CONTINUE_API_KEY }}
# GitHub does not have a way of requiring that all checks pass (you must manually select each job)
# This action at least lets us manage the list of required tests via source control