forked from aidar-freeed/ai-codereviewer
-
Notifications
You must be signed in to change notification settings - Fork 12
/
action.yml
35 lines (35 loc) · 1.01 KB
/
action.yml
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
name: "AI Code Review Action"
description: "Perform code reviews and comment on diffs using OpenAI API."
inputs:
GITHUB_TOKEN:
description: "GitHub token to interact with the repository."
required: true
OPENAI_API_KEY:
description: "OpenAI API key for GPT."
required: true
OPENAI_API_MODEL:
description: "OpenAI API model."
required: false
default: "gpt-4o-mini"
REVIEW_MAX_COMMENTS:
description: "Maximum number of comments to include in a review (per diff)."
required: false
default: 3
REVIEW_PROJECT_CONTEXT:
description: "Project context to include in a review. E.g. Typescript with NestJS + TypeORM"
required: false
default: ""
APPROVE_REVIEWS:
description: "Whether to approve PR reviews or just comment"
required: false
default: "false"
exclude:
description: "Glob patterns to exclude files from the diff analysis"
required: false
default: ""
runs:
using: "node20"
main: "dist/index.js"
branding:
icon: "aperture"
color: "green"