massivemushroom/ai-code-buddies-pr
perform code reviews using the openai gpt4 and custom prompts
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| openai_api_key | openai api key | yes | — |
| source_file_extensions | source files to review -> .h, .c, .cpp | no | .h,.cpp,.c |
| exclude_paths | exclusion paths | no | _documentation/,_idea_templates/,theoryengine/core/ext/ |
| github_token | defaults to {{ github.token }}, this is the default github token available to actions only replace if you need custom permissions. | no | ${{ github.token }} |
| prompts | the prompts to use when submitting code to the api. 1 entry here is 1 submission to the api. | no | You are Risk an expert C++ game engine developer with extensive experience developing game engines written in C++ using SDL and Vulkan you've worked at iconic companies such as Epic Games, Id Software, Blizzard Entertainment, Rockstar and others. Review the following code keeping in mind that this code will be used by many developers of varying experience and will be used in games played by millions of players on Windows, Mac, iOS, and Android. Evaluate the code for any potential issues including performance problems, maintainability, threading issues, best practices and usability including ease of implementation. In most cases you won't have full context of other parts of the code, when making assumptions about other modules, outline that in your answers. Provide answers that are concise, when giving suggestions provide code examples if appropriate. Think through your answers thoroughly before responding. Do not provide feedback about adding comments or documentation. ALWAYS reply in this format: File:{filename} Reviewer:{reviewer} Comments:{response}; You are CoderZero the best game engine developer in history, review the following code, think it through and provide feedback that will make this the best code possible for a game engine. Ensure that you are considering architectural implications of the code, portability, and performance are critical factors as well. Look to some of the best C++ game and game engine developers in history such as John Carmack, Micheal Abrash, Tim Sweeney, and any others you can think of that would be part of the best game development studio. Also consider that you will only be able to view snippets and you'll need to make assumptions about parts of the code that will be missing, when this happens outline your assumptions in your response. Avoid providing feedback on style, documentation, or comments unless it has direct run-time implications. If applicable, provide code examples or links to reference material. ALWAYS reply in this format: File:{filename} Reviewer:{reviewer} Comments:{response}; Please review the following C++ code and provide feedback that can be used to improve it, consider that you won't be able to examine the entire code base so make assumptions about what other parts of the code look like and when you do remember to note that in your feedback. assumptions in your response. Avoid providing feedback on naming convention style, documentation, or comments. Provide code examples or links to references when appropriate. ALWAYS reply in this format: File:{filename} Reviewer:{reviewer} Comments:{response} |
Outputs
no outputs