-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathaction.yml
More file actions
39 lines (37 loc) · 1.14 KB
/
action.yml
File metadata and controls
39 lines (37 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: 'DiffScope Code Review'
description: 'Automated code review engine for pull requests'
author: 'Jonathan Haas'
branding:
icon: 'eye'
color: 'blue'
inputs:
model:
description: 'LLM model to use (e.g., anthropic/claude-opus-4.5, openai/gpt-4o, ollama:codellama)'
required: false
default: 'anthropic/claude-opus-4.5'
output-format:
description: 'Output format (json, patch, markdown)'
required: false
default: 'json'
openai-api-key:
description: 'OpenAI API key (can also use OPENAI_API_KEY env var)'
required: false
anthropic-api-key:
description: 'Anthropic API key (can also use ANTHROPIC_API_KEY env var)'
required: false
openrouter-api-key:
description: 'OpenRouter API key (can also use OPENROUTER_API_KEY env var)'
required: false
runs:
using: 'docker'
image: 'docker://ghcr.io/evalops/diffscope:latest'
args:
- review
- '--model'
- ${{ inputs.model }}
- '--output-format'
- ${{ inputs.output-format }}
env:
OPENAI_API_KEY: ${{ inputs.openai-api-key }}
ANTHROPIC_API_KEY: ${{ inputs.anthropic-api-key }}
OPENROUTER_API_KEY: ${{ inputs.openrouter-api-key }}