mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-13 03:15:17 +00:00
Initialize current_labels to empty list if no labels exist in pr_reviewer.py
This commit is contained in:
parent
ac2c062190
commit
b6dd57375f
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