Skip to content

Commit 696edb8

Browse files
Merge pull request #15 from marcinkantyka/feat/readme
readme
2 parents 88238fd + 74b884e commit 696edb8

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
[![CI](https://github.com/marcinkantyka/pull-request-reviewer-ai/actions/workflows/ci.yml/badge.svg)](https://github.com/marcinkantyka/pull-request-reviewer-ai/actions/workflows/ci.yml)
44
[![Release](https://github.com/marcinkantyka/pull-request-reviewer-ai/actions/workflows/release.yml/badge.svg)](https://github.com/marcinkantyka/pull-request-reviewer-ai/actions/workflows/release.yml)
5+
[![npm](https://img.shields.io/npm/v/pull-request-reviewer-ai?label=npm)](https://www.npmjs.com/package/pull-request-reviewer-ai)
6+
[![Docker](https://img.shields.io/docker/v/marcinkantyka/pull-request-reviewer-ai?label=docker)](https://hub.docker.com/r/marcinkantyka/pull-request-reviewer-ai)
7+
[![License](https://img.shields.io/github/license/marcinkantyka/pull-request-reviewer-ai)](https://github.com/marcinkantyka/pull-request-reviewer-ai/blob/main/LICENSE)
58

69
> **Offline-first Pull Request review CLI tool using local LLM**
710
@@ -418,6 +421,46 @@ jobs:
418421
env:
419422
LLM_ENDPOINT: http://localhost:11434
420423
LLM_MODEL: deepseek-coder:1.3b
424+
425+
#### Minimal offline-safe example
426+
427+
This version explicitly restricts outbound connections to the local Ollama service.
428+
429+
```yaml
430+
name: Offline-Safe Review
431+
432+
on:
433+
pull_request:
434+
branches: [main]
435+
436+
jobs:
437+
review:
438+
runs-on: ubuntu-latest
439+
440+
services:
441+
ollama:
442+
image: ollama/ollama:latest
443+
ports:
444+
- 11434:11434
445+
446+
steps:
447+
- uses: actions/checkout@v4
448+
with:
449+
fetch-depth: 0
450+
451+
- uses: actions/setup-node@v4
452+
with:
453+
node-version: '20'
454+
cache: 'npm'
455+
456+
- run: npm install -g pull-request-reviewer-ai
457+
458+
- run: pr-review compare ${{ github.head_ref }} ${{ github.base_ref }} --format md
459+
env:
460+
LLM_ENDPOINT: http://localhost:11434
461+
LLM_MODEL: deepseek-coder:1.3b
462+
NETWORK_ALLOWED_HOSTS: localhost,127.0.0.1,::1
463+
```
421464
LLM_PROVIDER: ollama
422465
continue-on-error: true
423466

0 commit comments

Comments
 (0)