Skip to content
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

Setup CodeRabbit (uses ast-grep and AI to review PRs) #769

Closed
harjotgill opened this issue Dec 10, 2023 · 8 comments
Closed

Setup CodeRabbit (uses ast-grep and AI to review PRs) #769

harjotgill opened this issue Dec 10, 2023 · 8 comments
Labels
enhancement New feature or request

Comments

@harjotgill
Copy link

harjotgill commented Dec 10, 2023

⭐ Suggestion

We are a big fan of ast-grep, and we recently started using it at CodeRabbit. We review pull requests with AI and use gpt-4 to generate ast-grep search patterns to dive deep into the codebase and search for missing changes. We are getting excellent results so far.

We recommend setting up CodeRabbit in this project (it's free for all OSS projects) and seeing AI-powered ast-grep in action!

ast-grep is powering review comments such as these - openreplay/openreplay#1775 (comment)

@harjotgill harjotgill added the enhancement New feature or request label Dec 10, 2023
@HerringtonDarkholme
Copy link
Member

Hi @harjotgill I have enabled code rabbit but I didn't see any review coming in?

This is my dashboard. CR is detecting new pull requests and shows there are 2 reviews.

image

But I didn't see comment in the pull request.

#781

@HerringtonDarkholme
Copy link
Member

Also, if you don't mind adding your logo in #373, I will add a link to CodeRabbit in ast-grep's home page :)

@guritfaq
Copy link

@HerringtonDarkholme -

Thanks for installing CodeRabbit.
These file types are filtered out by default. However , you can change the filter pattern via the UI( under repositoiry settings) or by adding a yaml - https://coderabbit.ai/docs/get-started/customize-coderabbit.

We will make a change to post a PR comment when the review is skipped because of the file path pattern.

@HerringtonDarkholme
Copy link
Member

Wow, it works like a charm. Thanks!

@harjotgill
Copy link
Author

Wow, it works like a charm. Thanks!

Try chatting with the bot. Ask it anything about the codebase and it will generate ast-grep patterns :)

@HerringtonDarkholme
Copy link
Member

@harjotgill CodeRabbit has amazing output! Thought chains + script execution makes me feel it understands my code. Great job!

@HerringtonDarkholme
Copy link
Member

https://ast-grep.github.io/

Added via ast-grep/ast-grep.github.io@5ff1eb8

@guritfaq
Copy link

Appreciate it. Also, thank you for the shout-out on X.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants