mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-02 11:50:37 +08:00
response
This commit is contained in:
@ -153,6 +153,22 @@ class BitbucketProvider(GitProvider):
|
||||
self.diff_files = diff_files
|
||||
return diff_files
|
||||
|
||||
|
||||
def publish_persistent_review(self, pr_comment: str):
|
||||
## not working yet, need to find a way to update the comment
|
||||
# try:
|
||||
# for comment in self.pr.comments():
|
||||
# body = comment.raw
|
||||
# if '## PR Analysis' in body:
|
||||
# pr_comment_updated = pr_comment.replace('## PR Analysis\n', '## PR Analysis (updated)\n')
|
||||
# comment.data['content']['raw']= pr_comment_updated
|
||||
# comment.update()
|
||||
# return
|
||||
# except Exception as e:
|
||||
# get_logger().exception(f"Failed to update persistent review, error: {e}")
|
||||
# pass
|
||||
self.publish_comment(pr_comment)
|
||||
|
||||
def publish_comment(self, pr_comment: str, is_temporary: bool = False):
|
||||
comment = self.pr.comment(pr_comment)
|
||||
if is_temporary:
|
||||
|
Reference in New Issue
Block a user