feat: AI code review using ollama and qwen3:14b #2
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:14b
model. 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:14b
model.🔍 Example PR Review
qwen3:14b
🛠️ Key Features
🧩 Workflow Table
actions/checkout@v4
curl -fsSL https://ollama.com/install.sh | sh
ollama serve
,ollama pull qwen3:14b
git diff origin/${{ github.base_ref }}...HEAD
ollama run qwen3:14b
awk
scriptcat ollama_clean_review.txt
actions/github-script@v6
kill $OLLAMA_PID
cat pr_diff.txt
📝 How It Works
qwen3:14b
model is pulled.🛡️ Permissions
contents: read
pull-requests: write
issues: write
🧩 Requirements
🖼️ Mermaid Diagram