ai-codereviewer/action.yml
karapinarokk c8d1cc7b9e - [Bugfix] - [JSON Format not supported for some of OpenAI models]
- [Improvement] - [Added max token for in case of bigger file requirement]

Find more here for supported JSON versions :
https://platform.openai.com/docs/guides/structured-outputs?api-mode=chat
2025-03-15 19:57:53 +04:00

27 lines
737 B
YAML

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-4"
MAX_TOKEN:
description: "Maximum number of tokens that can be generated per analysis."
required: false
default: "700"
exclude:
description: "Glob patterns to exclude files from the diff analysis"
required: false
default: ""
runs:
using: "node16"
main: "dist/index.js"
branding:
icon: "aperture"
color: "green"