freeedcom / ai-codereviewer

AI Code Reviewer: Enhance your GitHub workflow with AI-powered code review! Get intelligent feedback and suggestions on pull requests using OpenAI's GPT-4 API, improving code quality and saving developers time.
MIT License
479 stars 439 forks source link

add extra instructions option #48

Open MarkArts opened 4 months ago

MarkArts commented 4 months ago

This adds an option EXTRA_INSTRUCTIONS which will be added to the prompt. This can be used to fine tune reviews based on the repository.

For example by default, on adding the github action to the repo trough a PR, it will comment on Please add a newline at the end of the file to follow the best practices for POSIX standards.. Which is something that can be better enforced by linters. This change allows you to add intructions to ignore comments on linting and formating