add bitbucket pipeline

This commit is contained in:
sarbjitgrewal
2023-09-11 16:08:23 +05:30
parent ca8997b616
commit 12bd9e8b42
6 changed files with 91 additions and 7 deletions

View File

@ -75,12 +75,15 @@ class PRDescription:
if get_settings().pr_description.publish_description_as_comment:
self.git_provider.publish_comment(pr_body)
else:
self.git_provider.publish_description(pr_title, pr_body)
if self.git_provider.is_supported("get_labels"):
current_labels = self.git_provider.get_labels()
if current_labels is None:
current_labels = []
self.git_provider.publish_labels(pr_types + current_labels)
if get_settings().config.git_provider == 'bitbucket':
self.git_provider.publish_description(pr_title, description)
else:
self.git_provider.publish_description(pr_title, pr_body)
if self.git_provider.is_supported("get_labels"):
current_labels = self.git_provider.get_labels()
if current_labels is None:
current_labels = []
self.git_provider.publish_labels(pr_types + current_labels)
self.git_provider.remove_initial_comment()
return ""