Add labels

This commit is contained in:
Ori Kotek
2023-07-24 16:00:51 +03:00
parent c9c95d60d4
commit 2c03a67312
2 changed files with 10 additions and 4 deletions

View File

@ -48,6 +48,8 @@ class PRDescription:
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 ""