Open
Conversation
…th suggested changes
- Changed 'LoadConfig' to accept 'projectPath' as a parameter for better flexibility. - Updated flag variable 'projectPath' to 'ProjectPath' to align with Go naming conventions. - Introduced 'InitializeFlags' function to parse command-line flags before execution. - Adjusted 'main.go' to call 'InitializeFlags' before loading configuration.
- Added OpenAI provider with functionality to generate text based on a prompt. - Introduced an AI provider interface for easy addition of future AI providers. - Updated configuration to support AI provider setup. - Bumped Go version to 1.22.0 and updated dependencies.
- Introduced 'systemPrompt' in 'OpenAIProvider' to enable configurable system messages - Refactored 'NewOpenAIProvider' to accept 'systemPrompt' for more contextual AI responses - Replaced 'Provider' interface definition in 'ai/provider.go' with a structured 'types.Provider' - Enhanced 'Config' to expose getter methods for AI configuration values - Added default values for AI settings, including a default system prompt - Created 'internal/types/common.go' to define AI provider interface and configuration abstraction
23cb312 to
697fd04
Compare
- Add Review struct and ReviewList type - Implement GetSystemPrompt with default prompt - Create Review function for AI-powered code analysis - Add comprehensive tests for review functionality - Update review command to use AI provider - Handle both JSON and text format responses
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements a feature that automates the analysis of code changes, reducing the need for manual reviews and providing actionable suggestions directly in the CLI.