diff options
Diffstat (limited to 'coordinator.py')
-rw-r--r-- | coordinator.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/coordinator.py b/coordinator.py index 4a01e54..2d4d3e4 100644 --- a/coordinator.py +++ b/coordinator.py @@ -176,5 +176,13 @@ class Connection: async def _handle_send_work_event(self, data: Optional[Dict[str, Any]]) -> None: async with self.work_event_received: + # Older work items do not have the "repo" field. In that case, parse the repository from + # the integration URL. This workaround should only be necessary for about two weeks. + # + # 2025-05-21 + if data: + if not "repo" in data or data["repo"] is None: + data["repo"] = data["integrationURL"].split("/")[2] + self.work_item = data self.work_event_received.notify() |