From 81e8b571732adf9cfb706b29b17319ca4945230c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20M=2E=20Thi=C3=A9ry?= Date: Thu, 7 Dec 2023 20:09:33 +0100 Subject: [PATCH] Potential workaround for patching how gitlab sees its url Might be useful for running tests locally with gitlab inside a container --- travo/gitlab.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/travo/gitlab.py b/travo/gitlab.py index 8cf3fd6b..859768b1 100644 --- a/travo/gitlab.py +++ b/travo/gitlab.py @@ -965,6 +965,9 @@ class ResourceRef: class ClassCallMetaclass(type): def __call__(cls: Type[R], *args: Any, **kwargs: Any) -> R: # type: ignore + if 'web_url' in kwargs: + kwargs['web_url'] = kwargs['web_url'].replace("gitlab.com", "mygitlab.fr") + print(kwargs) extra = kwargs # the collected datafields from the class kwargs = {} for f in fields(cls): -- GitLab