Mise à jour du système de signalisation de bugs automatiser et manuel

This commit is contained in:
Mathis 2026-02-07 19:57:50 +01:00
parent 88aa73cda9
commit 482e60cc44
4 changed files with 81 additions and 1 deletions

View file

@ -13,6 +13,7 @@ class GitLabClient:
def __init__(self):
self.token = os.getenv("GITLAB_TOKEN")
self.project_id = os.getenv("GITLAB_PROJECT_ID")
self.assignee_id = os.getenv("GITLAB_ASSIGNEE_ID")
self.base_url = os.getenv("GITLAB_URL", "https://gitlab.com").rstrip("/")
# Ensure base_url only contains the schema and domain for the API endpoint
if "api/v4" not in self.base_url:
@ -43,6 +44,9 @@ class GitLabClient:
"description": description,
"labels": ",".join(labels) if labels else ""
}
if self.assignee_id:
data["assignee_ids"] = [self.assignee_id]
async with aiohttp.ClientSession() as session:
try: