project/urljoin
Some checks failed
/ job (push) Failing after 1m26s

This commit is contained in:
Marc Beninca 2024-06-10 20:17:37 +02:00
parent a757855b38
commit 3115d47d6d
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1,8 +1,10 @@
"""CI project.""" """CI project."""
from __future__ import annotations from __future__ import annotations
from pathlib import Path from pathlib import Path
from typing import TYPE_CHECKING from typing import TYPE_CHECKING
from urllib import urljoin
if TYPE_CHECKING: if TYPE_CHECKING:
from cd.projects import Projects from cd.projects import Projects
@ -37,4 +39,4 @@ class Project:
if value := projects.environment.get(variable, None): if value := projects.environment.get(variable, None):
self.root = value self.root = value
# url # url
self.url = Path(projects.url) / self.name self.url = urljoin(projects.url, self.name)