-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor AI middleware and service to include firstContext parameter #5
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
name: AI Code Reviewer | ||
|
||
name: Code Review with OpenAI | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
permissions: write-all | ||
jobs: | ||
review: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
code_review: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: AI Code Reviewer | ||
uses: Ostrich-Cyber-Risk/ai-codereviewer@main | ||
- name: Code Review | ||
uses: freeedcom/ai-codereviewer@main | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.OCTOKIT_TOKEN }} | ||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
OPENAI_API_MODEL: "gpt-4o-mini" # Optional: defaults to "gpt-4" | ||
exclude: "**/*.json, **/*.md" # Optional: exclude patterns separated by commas | ||
OPENAI_API_MODEL: "gpt-4o-mini" | ||
exclude: "yarn.lock,dist/**" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The exclusion pattern |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name of the workflow should reflect its purpose more clearly. Consider renaming it to something that indicates it is specifically for AI code reviewing.