mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-13 03:15:17 +00:00
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:
commit
8fea771502
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue