From f07439de5451330829fdceef2476457fcee5013c Mon Sep 17 00:00:00 2001 From: aarizona Date: Thu, 2 May 2024 12:33:20 +0300 Subject: [PATCH] remove author name --- app/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/main.py b/app/main.py index 5799fe2..fc535b8 100644 --- a/app/main.py +++ b/app/main.py @@ -17,7 +17,7 @@ async def intgr(request: Request): body = await request.json() ref = body["ref"] branch = ref.split("/")[-1] - + [tag, number, *args] = branch.split("-") logger.info(f"input tag {tag} number {number} args {args}") @@ -26,8 +26,8 @@ async def intgr(request: Request): bx_res = requests.get( "https://crm.svs-tech.pro/rest/38/7ufrqnfpncmt279p/task.commentitem.add.json?" - f"taskId={number}&fields[POST_MESSAGE]={body['commits'][0]['message']}" - "&fields[AUTHOR_NAME]=GITEA INTEGRATION" + f"taskId={number}" + f"&fields[POST_MESSAGE]={body['commits'][0]['message']}" ) logger.info(f"result {json.loads(bx_res.text)}") return {"status": "success"}