Skip to content

Commit

Permalink
Add labels all at once
Browse files Browse the repository at this point in the history
  • Loading branch information
kwk committed Apr 4, 2024
1 parent 0a486ba commit eb7783c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions snapshot_manager/snapshot_manager/snapshot_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,18 +111,16 @@ def check_todays_builds(self):
issue.remove_from_labels(label=label)

# Labels must be added or removed manually in order to not remove manually added labels :/
for label in (
labels_to_add = (
error_labels
+ project_labels
+ os_labels
+ arch_labels
+ strategy_labels
+ other_labels
):
logging.info(f"Adding label: {label}")
issue.add_to_labels(label)

labels_on_issue = [label.name for label in issue.labels]
)
logging.info(f"Adding label: {labels_to_add}")
issue.add_to_labels(labels_to_add)

failed_test_cases: list[tf.FailedTestCase] = []

Expand Down

0 comments on commit eb7783c

Please sign in to comment.