Merge pull request #796 from Codium-ai/tr/split

Initialize current_labels to empty list if no labels exist in pr_revi…
This commit is contained in:
Tal 2024-03-17 11:40:36 +02:00 committed by GitHub
commit 8fea771502
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -373,6 +373,8 @@ class PRReviewer:
review_labels.append('Possible security concern')
current_labels = self.git_provider.get_pr_labels(update=True)
if not current_labels:
current_labels = []
get_logger().debug(f"Current labels:\n{current_labels}")
if current_labels:
current_labels_filtered = [label for label in current_labels if