diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2023-03-14 11:08:14 +0100 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2023-03-14 11:08:14 +0100 |
commit | 3536de674fe296ab93ab16533e3653d0611b2d69 (patch) | |
tree | 7ee5b9b98bfb3ac707dc3a8777aedd2373603544 /labbot/addons/merge-label.py | |
parent | 0a940eb06326643ee7271df036ca7de47cadd132 (diff) | |
download | lab-bot-3536de674fe296ab93ab16533e3653d0611b2d69.tar.gz lab-bot-3536de674fe296ab93ab16533e3653d0611b2d69.zip |
add project information to debug prints
Diffstat (limited to 'labbot/addons/merge-label.py')
-rw-r--r-- | labbot/addons/merge-label.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/labbot/addons/merge-label.py b/labbot/addons/merge-label.py index eead985..2b6dffa 100644 --- a/labbot/addons/merge-label.py +++ b/labbot/addons/merge-label.py @@ -79,13 +79,15 @@ async def merge_label_hook(event, gl, *args, **kwargs): has_label = False issue_data = await gl.getitem(base_url) - for label in issue_data["labels"]: + issue_labels = issue_data["labels"] + for label in issue_labels: if label in config["act_labels"] or label in config["state_label"].values(): has_label = True break if not has_label: - log.debug(f"Issue #{issue} does not have a relevant label") + label_str = ", ".join(issue_labels) + log.debug(f"Issue #{issue}({event.project_id}) does not have a relevant label (has: '{label_str}')") continue delete_labels = config["act_labels"] + list(config["state_label"].values()) |