sourcery-ai / sourcery

Instant AI code reviews
https://sourcery.ai
MIT License
1.56k stars 71 forks source link

PR review bot: Possible to disable "overall comments" and line-level suggestions? #439

Closed blakeNaccarato closed 6 days ago

blakeNaccarato commented 1 month ago

Checklist

Description

I like the PR summarizing/digest features of the AI review bot, and think it could be helpful as a "rough draft" review summary. However, I would really like to disable the line-level scrutiny, comments, and improvement suggestions of the review bot.

Regardless of the quality or tone of these suggestions, I'd like to have a policy in my projects that the quality of PRs submitted by others isn't directly assessed by the bot, which I think can be a bit impersonal and off-putting. Besides, any invalid/excessive suggestions may generate churn and unnecessary commits in an attempt to "appease" our robot overlords 😅 before a human reviewer gets around to it.

I tried passing the following to the "instructions" dashboard section, but review comments were still made. I left the path glob empty so maybe that needs to be **/* or * or something, or those instructions do not affect the actual comment mechanism itself.

- Please do not make any comments.
- Please do not give any suggestions for improvement.

Anyways, I appreciate that the other toggles are present, and I imagine the review comments are the "first line

ruancomelli commented 6 days ago

Hello, @blakeNaccarato!

Currently, our review instructions can only be used to generate additional review comments, not to suppress comments that it already generates by default. That's in our roadmap, but it's not available yet.

However, we now have an option to completely disable AI review comments. Please head over to your Sourcery dashboard and un-toggle the "Enable AI review comments" option:

Image

blakeNaccarato commented 6 days ago

Ah, alright I see that toggle now. Must've escaped me when I first raised the issue. Thanks for your help!