platisd/Autofill PR Description with OpenAI
Autofill you pull request with a high quality description by harvesting the power of OpenAI and ChatGPT
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | The GitHub token | yes | — |
| openai_api_key | OpenAI API key | yes | — |
| pull_request_id | Pull request id (otherwise attempt to extract it from the GitHub metadata) | no | "" |
| allowed_users | Comma-separated list of GitHub usernames this action will run for, if empty it will run for all users | no | "" |
| openai_model | OpenAI model to use, needs to be compatible with the chat/completions endpoint | no | gpt-4o-mini |
| max_tokens | Maximum number of prompt tokens to use | no | 1000 |
| temperature | Temperature for the model, higher values will make the model more creative, lower values will make it more conservative | no | 0.6 |
| sample_prompt | Sample prompt to use for the model, refer to SAMPLE_PROMPT in the Python file. | no | "" |
| sample_response | A sample of an ideal response based on the sample prompt | no | "" |
| completion_prompt | Prompt to use as the final prompt to the model, refer to COMPLETION_PROMPT in the Python file. | no | "" |
| overwrite_description | Overwrite the PR description if it already exists. This also means that the action will run on every PR update | no | false |
| azure_endpoint | Azure endpoint for OpenAI, if you are using Azure. Setting this will make the action use Azure OpenAI. | no | "" |
| azure_openai_api_version | OpenAI API version, if you are using Azure. | no | "" |
Outputs
no outputs