-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
48 lines (44 loc) · 1.31 KB
/
action.yml
File metadata and controls
48 lines (44 loc) · 1.31 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
40
41
42
43
44
45
46
47
48
name: 'Code Review'
description: 'LLM-powered PR code review with conventional comments'
inputs:
github-token:
description: 'GitHub token for API access'
required: true
default: '${{ github.token }}'
provider:
description: 'LLM provider'
required: false
default: 'gemini'
gemini-api-key:
description: 'API key for Google Gemini'
required: false
model:
description: 'Model name override'
required: false
instructions:
description: 'Additional review instructions'
required: false
bot-login:
description: 'Bot username to ignore for loop prevention with custom tokens'
required: false
runs:
using: 'composite'
steps:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
cache-dependency-path: go.sum
- name: Build
shell: bash
run: cd ${{ github.action_path }} && go build -o $RUNNER_TEMP/codereview ./cmd/codereview
- name: Review
shell: bash
env:
INPUT_GITHUB_TOKEN: ${{ inputs.github-token }}
INPUT_PROVIDER: ${{ inputs.provider }}
INPUT_GEMINI_API_KEY: ${{ inputs.gemini-api-key }}
INPUT_MODEL: ${{ inputs.model }}
INPUT_INSTRUCTIONS: ${{ inputs.instructions }}
INPUT_BOT_LOGIN: ${{ inputs.bot-login }}
run: $RUNNER_TEMP/codereview