-
Notifications
You must be signed in to change notification settings - Fork 564
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
Enhancement of Inline Comment Publishing in Bitbucket Provider and Logging Addition #485
Conversation
… logging for no suggestions in pr_code_suggestions.py
/describe |
PR Analysis(review updated until commit 51e1278)
PR Feedback
|
Persistent review updated to latest commit 51e1278 |
3 similar comments
Persistent review updated to latest commit 51e1278 |
Persistent review updated to latest commit 51e1278 |
Persistent review updated to latest commit 51e1278 |
Enhancement of Inline Comment Publishing in Bitbucket Provider and Logging Addition
type:
Enhancement
description:
This PR primarily focuses on enhancing the inline comment publishing feature in the Bitbucket provider and adding logging for cases where no suggestions are found in the
pr_code_suggestions.py
file. The key changes include:bitbucket_provider.py
file, thepublish_inline_comments
method has been updated to handle different types of comments, including multi-line and single-line comments. It also logs an error if it cannot publish an inline comment.pr_code_suggestions.py
file, a logging statement has been added to inform when no suggestions are found to improve a PR.main_files_walkthrough:
files:
pr_agent/git_providers/bitbucket_provider.py
: Thepublish_inline_comments
method has been updated to handle different types of comments. It now checks if the comment is a multi-line comment, a single-line comment, or if it has a position. If none of these conditions are met, it logs an error message.pr_agent/tools/pr_code_suggestions.py
: A logging statement has been added to thepush_inline_code_suggestions
method to inform when no suggestions are found to improve a PR.Tested:
tested on https://bitbucket.org/codiumai/pr-agent/pull-requests/7:
'improve' and 'review --pr_reviewer.inline_code_comments=true'