vsilvey/ChatGPT GitHub Actions
This GitHub Action automates code review for pull requests using OpenAI's GPT models. It posts detailed AI-generated reviews directly in PR comments, helping maintain code quality, enforce best practices, and surface bugs or improvements.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| openai_api_key | OpenAI API Key | yes | "" |
| github_token | GitHub API Key | yes | "" |
| github_pr_id | GitHub PR ID | yes | "" |
| github_reviewer | Reviewer username that was requested (optional filter) | no | "" |
| openai_model | OpenAI model to use (e.g. 'gpt-4o', 'o3-2025-04-16') | no | gpt-4o |
| openai_temperature | Sampling temperature (creativity). 0–1 or 0–2 depending on model. | no | 0.5 |
| openai_max_tokens | Maximum tokens the model may generate for the review | no | 2048 |
| mode | Review mode: 'files' (last commit) or 'patch' (full diff) | no | files |
| language | Natural language for the review comments | no | en |
| custom_prompt | Optional custom system-prompt for the code review | no | "" |
| skip_file_globs | Comma-separated glob patterns of files/paths to exclude from the prompt (e.g. '*.min.js,dist/**,docs/**'). Binary and image files are already excluded automatically. | no | "" |
Outputs
no outputs