Skip to content

Commit

Permalink
my bad
Browse files Browse the repository at this point in the history
  • Loading branch information
m-dzianishchyts committed Oct 22, 2024
1 parent e42d7b2 commit 2b0fae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/changelog/check_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def is_label_set_manually(label_name: str, pr_events: list[github.IssueEvent], b
"""Find latest event for the label and make sure it wasn't set by the bot."""
events_labeled = list(event for event in pr_events if event.event == "labeled" and event.label.name == label_name)
events_sorted = sorted(events_labeled, key=lambda event: event.created_at, reverse=True)
if len(events_sorted):
if not len(events_sorted):
raise Exception(f"No event found related to label '{label_name}'")

return events_sorted[0].actor.id != bot_id
Expand Down

0 comments on commit 2b0fae1

Please sign in to comment.