Update label comparison logic in pr_reviewer.py and pr_description.py to consider unordered lists

This commit is contained in:
mrT23
2024-03-12 18:25:42 +02:00
parent 8b29c3a2be
commit 78cabf28a4
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ class PRDescription:
user_labels = get_user_labels(original_labels)
new_labels = pr_labels + user_labels
get_logger().debug(f"published labels", artifact=new_labels)
if new_labels != original_labels:
if sorted(new_labels) != sorted(original_labels):
self.git_provider.publish_labels(new_labels)
else:
get_logger().debug(f"Labels are the same, not updating")