mo7amedsmahdi/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
- Stalelast commit Jul 9, 2023
- License
- None
Pinned Snippet
uses: mo7amedsmahdi/gpt-pr-description@b7870b7f8cf98bcf32b9ae50d6d8c749440e3ae6 # alpha-1tags can be moved; commit SHAs can't. why a SHA?
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-3.5-turbo-16k |
| 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 | "" |
Outputs
no outputs