coderabbitai / ai-pr-reviewer

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

fix issue with multiple release notes #452

Closed harjotgill closed 10 months ago

harjotgill commented 10 months ago

Summary by CodeRabbit

- Refactor: Updated `DESCRIPTION_START_TAG` constant to be a string and optimized the `removeContentWithinTags` function in `src/commenter.ts`.
- Documentation: Updated product name from "Professional Version of CodeRabbit" to "CodeRabbit Pro" in README.md and src/review.ts.
- New Feature: Announced that CodeRabbit Pro is now free for open source projects, as reflected in src/review.ts.
github-actions[bot] commented 10 months ago

Image description CodeRabbit

Walkthrough

This update primarily focuses on rebranding the product name from "Professional Version of CodeRabbit" to "CodeRabbit Pro". It also includes minor tweaks in src/commenter.ts for better string handling and formatting. The changes are straightforward and do not alter the core functionality of the code.

Changes

File Summary
README.md, src/review.ts Updated the product name from "Professional Version of CodeRabbit" to "CodeRabbit Pro". Added a note in src/review.ts stating that CodeRabbit Pro is free for open source projects.
src/commenter.ts Modified the DESCRIPTION_START_TAG constant to be a string instead of a template literal. Updated the removeContentWithinTags function to use lastIndexOf instead of indexOf when finding the end tag. Added newline characters before and after the release notes message in the newDescription variable.

🐇💻

With a hop, skip, and a jump,

CodeRabbit's got a new bump.

From professional to pro, we leap,

Making coding less of a steep.

In the world of code, we spin,

With every change, it's a win! 🎉


Uplevel your code reviews with CodeRabbit Pro ### CodeRabbit Pro If you like this project, please support us by purchasing the [Pro version](https://coderabbit.ai). The Pro version has advanced context, superior noise reduction and several proprietary improvements compared to the open source version. Moreover, CodeRabbit Pro is free for open source projects.