update readme

This commit is contained in:
sarbjitgrewal
2023-08-24 15:56:20 +05:30
parent 67ff50583a
commit db6bf41051
3 changed files with 18 additions and 10 deletions

View File

@ -78,12 +78,12 @@ CodiumAI `PR-Agent` is an open-source tool aiming to help developers review pull
| | | GitHub | Gitlab | Bitbucket |
|-------|---------------------------------------------|:------:|:------:|:---------:|
| TOOLS | Review | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | ⮑ Inline review | :white_check_mark: | :white_check_mark: | |
| | ⮑ Inline review | :white_check_mark: | :white_check_mark: | :white_check_mark:
| | Ask | :white_check_mark: | :white_check_mark: | :white_check_mark:
| | Auto-Description | :white_check_mark: | :white_check_mark: | |
| | Improve Code | :white_check_mark: | :white_check_mark: | |
| | Auto-Description | :white_check_mark: | :white_check_mark: | :white_check_mark:
| | Improve Code | :white_check_mark: | :white_check_mark: | :white_check_mark:
| | Reflect and Review | :white_check_mark: | | |
| | Update CHANGELOG.md | :white_check_mark: | | |
| | Update CHANGELOG.md | :white_check_mark: | | :white_check_mark:
| | | | | |
| USAGE | CLI | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | App / webhook | :white_check_mark: | :white_check_mark: | |

View File

@ -225,3 +225,7 @@ class BitbucketProvider:
def get_commit_messages(self):
return "" # not implemented yet
# bitbucket does not support labels
def publish_description(self, pr_title: str, pr_body: str):
return ""

View File

@ -72,6 +72,10 @@ class PRDescription:
logging.info('Pushing answer...')
if get_settings().pr_description.publish_description_as_comment:
self.git_provider.publish_comment(pr_body)
else:
# bitbucket does not support publishing PR labels yet
if get_settings().config.git_provider == 'bitbucket':
return
else:
self.git_provider.publish_description(pr_title, pr_body)
if self.git_provider.is_supported("get_labels"):