feat: AI code review using ollama and qwen3:14b#2
Open
EuclidStellar wants to merge 6 commits intokeploy:init-projfrom
Open
feat: AI code review using ollama and qwen3:14b#2EuclidStellar wants to merge 6 commits intokeploy:init-projfrom
EuclidStellar wants to merge 6 commits intokeploy:init-projfrom
Conversation
|
Keploy failed to create test cases for this PR. For retrying, please click here |
There was a problem hiding this comment.
Pull Request Overview
This PR adds an automated GitHub Action workflow to perform AI-powered code review using the Ollama LLM and the qwen3:14b model, while also establishing static analysis configurations for Go and JavaScript.
- Introduces workflows for static analysis and AI-based PR review
- Configures installation and operation of the Ollama service with the new qwen3:14b model
- Reorganizes Go code by removing the previous main.go and go.mod toward a new structure
Reviewed Changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| main.go | Removed the legacy main.go for codereviewagent; likely part of a restructuring effort |
| js-code/package.json | New JavaScript project configuration for static analysis implementation |
| js-code/.eslintrc.json | New ESLint configuration added for JS static analysis |
| go.mod | Removed the Go module file, indicating a possible change in module management location |
| code/main.go | New Go source file introduced possibly to replace the removed main.go |
| README.md | Added project documentation |
| .golangci.yml | New golangci-lint configuration for Go static analysis |
| .github/workflows/static-analysis.yml | Workflow for running static analysis on Go and JavaScript files with reviewdog integration |
| .github/workflows/ai-review.yml | Workflow for setting up Ollama, pulling the qwen3:14b model, reviewing PRs, and posting comments |
Comments suppressed due to low confidence (2)
Signed-off-by: euclidstellar <euclidstellar@gmail.com>
Signed-off-by: euclidstellar <euclidstellar@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR : Ollama Model Setup and AI code Review with qwen3:14B using GitHub Action
This workflow automates code review for pull requests using the Ollama LLM and the
qwen3:14bmodel. It fetches the PR diff, sends it to the LLM for review, and posts the review as a comment on the PR.📋 Workflow Overview
qwen3:14bmodel.🔍 Example PR Review
qwen3:14b🛠️ Key Features
🧩 Workflow Table
actions/checkout@v4curl -fsSL https://ollama.com/install.sh | shollama serve,ollama pull qwen3:14bgit diff origin/${{ github.base_ref }}...HEADollama run qwen3:14bawkscriptcat ollama_clean_review.txtactions/github-script@v6kill $OLLAMA_PIDcat pr_diff.txt📝 How It Works
qwen3:14bmodel is pulled.🛡️ Permissions
contents: readpull-requests: writeissues: write🧩 Requirements
🖼️ Mermaid Diagram
flowchart TD A[Start: PR Opened] --> B[Checkout Repository] B --> C[Install Ollama] C --> D[Start Ollama & Pull Model] D --> E[Get PR Diff] E --> F{Diff Exists?} F -- Yes --> G[Review PR with Ollama] G --> H[Remove LLM Thinking Process] H --> I[Set Review Output] I --> J[Create PR Comment] J --> K[Stop Ollama Service] F -- No --> K K --> L[Show Diff File] L --> M[End]