Skip to content

Add 'review' flag for code review functionality in CLI. #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 1, 2024

Conversation

catatsuy
Copy link
Owner

@catatsuy catatsuy commented Sep 1, 2024

This pull request adds a new feature to the CLI tool, enabling it to review source code. The changes include adding a new flag for code review, updating error handling, and modifying the prompt generation logic.

New feature for code review:

  • internal/cli/cli.go: Added a new boolean flag review to enable code review functionality. [1] [2]
  • internal/cli/cli.go: Updated error handling to allow the -language option to be used with either the -translate or -review options.
  • internal/cli/cli.go: Modified the prompt logic to generate a detailed review prompt when the review flag is set. The prompt instructs the reviewer to focus on specific aspects like Completeness, Bugs, Security, etc., and to provide feedback only if there are issues.

@catatsuy catatsuy merged commit 8f508dc into main Sep 1, 2024
5 checks passed
@catatsuy catatsuy deleted the feature-add-review-option-to-cli branch September 1, 2024 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant