Remove previous review comment on push event

This commit is contained in:
zmeir
2023-10-26 11:24:24 +03:00
parent 65bb70a1dd
commit 02570ea797
9 changed files with 73 additions and 11 deletions

View File

@ -287,10 +287,16 @@ class GitLabProvider(GitProvider):
def remove_initial_comment(self):
try:
for comment in self.temp_comments:
comment.delete()
self.remove_comment(comment)
except Exception as e:
get_logger().exception(f"Failed to remove temp comments, error: {e}")
def remove_comment(self, comment):
try:
comment.delete()
except Exception as e:
get_logger().exception(f"Failed to remove comment, error: {e}")
def get_title(self):
return self.mr.title