mlarhrouch / azure-pipeline-gpt-pr-review

Azure DevOps extension adding tools to review Pull Requets using Azure Pipelines
MIT License
57 stars 57 forks source link

Optimize Plugin to Reduce Redundant Code Reviews #16

Open shailesh opened 1 year ago

shailesh commented 1 year ago

Issue Description:

Currently, the GPT Reviewer plugin performs a code review on every file in a commit, regardless of whether those files were reviewed in a previous commit. This approach incurs unnecessary costs when using the maximum tokens for code review. We should optimize the plugin to avoid redundant reviews and save money by utilizing the previous review results.

Expected Behavior:

The GPT Reviewer plugin should intelligently track the reviewed files and their associated reviews to avoid redundant code reviews. It should utilize the existing review results when the reviewed files have not changed since the previous commit, thereby reducing costs when employing the maximum tokens for code review.