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

@ -73,12 +73,16 @@ 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)
# 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"):
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 ""