This action can automatically review the pull request, will give comment and help to enhance the code quality.
input | require | type | description | default |
---|---|---|---|---|
model | Y | string | choose the model you'd like to use | codellama |
You can choose the model that Ollama provided, can be search here.
- Automatically get files changed in a pull request.
- Runs the Ollama with the model you choose
- Give comments for every change it reviewed
Here is a simple demo for this action.
name: PReviewer
on:
pull_request:
jobs:
# Single deploy job since we're just deploying
reviewer:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: PR Review
uses: RiceBen/oh-llama-review-action
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
model: llama3.2:3b