cirolini/ChatGPT GitHub Actions
This GitHub Action automates code review for pull requests using OpenAI's GPT models. By integrating this action into your CI/CD pipeline, it provides detailed, AI-generated reviews of your code directly within the PR comments. This tool helps maintain code quality, ensures adherence to best practices, and highlights potential improvements and bugs.
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 | "" |
| openai_model | The OpenAI model to use for generating responses. Examples: 'gpt-3.5-turbo', 'gpt-4' | no | gpt-3.5-turbo |
| openai_temperature | The temperature for OpenAI responses. Controls the creativity of the responses. Higher values (e.g., 0.9) make output more random, while lower values (e.g., 0.1) make it more focused and deterministic. | no | 0.5 |
| openai_max_tokens | The maximum number of tokens to generate in the OpenAI response. Example: 1000 | no | 2048 |
| mode | The mode of operation for the action. Options: 'files' to review file changes, 'patch' to review the patch changes. | no | files |
| language | The language for the code review | no | en |
| custom_prompt | Custom prompt to use for generating responses. If not provided, a default prompt will be used based on the mode. | no | "" |
Outputs
no outputs