coderabbitai / ai-pr-reviewer

AI-based Pull Request Summarizer and Reviewer with Chat Capabilities.
https://coderabbit.ai
MIT License
1.51k stars 287 forks source link

language support #430

Closed harjotgill closed 1 year ago

harjotgill commented 1 year ago

Summary by CodeRabbit

**New Features:**
- Added a new input parameter `language` to the `run()` function, allowing users to specify the language ISO code.

**Bug Fixes:**
- Fixed syntax error in the `add` function.
- Improved logic in `complex_function`.

**Documentation:**
- Updated project documentation and instructions in README.md.
- Enhanced review comment guidelines for better clarity.

**Refactor:**
- Refactored rendering and summarizing of file diffs in `review.ts`.
- Updated `Options` class to include a new property `language`.

**Chore:**
- Updated Node.js version requirement to 17+.
- Added exclusion patterns for additional file extensions in GitHub PR workflow.
github-actions[bot] commented 1 year ago

Image description CodeRabbit

Walkthrough: This pull request primarily focuses on updating the documentation and instructions for the ai-pr-reviewer project, including changes to the required Node.js version and exclusion patterns. It also introduces a new input parameter language in the codebase, affecting several files and functions. Additionally, it refactors some existing functions and improves the formatting of review comments.

Changes:

Files Summary
README.md, action.yml Updated the documentation and instructions, including Node.js version and file exclusion patterns.
src/bot.ts, src/main.ts, src/options.ts, src/prompts.ts, src/review.ts Added a new input parameter language, affecting function signatures and behavior. Refactored existing functions and improved the formatting of review comments.