Mise à jour du système de signalisation de bugs automatiser et manuel
This commit is contained in:
parent
88aa73cda9
commit
482e60cc44
4 changed files with 81 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue