author name

This commit is contained in:
aarizona 2024-05-02 12:31:17 +03:00
parent f69e47d303
commit 1990c9a48d
1 changed files with 4 additions and 10 deletions

View File

@ -24,16 +24,10 @@ async def intgr(request: Request):
if number == "test":
number = 423
bx_data = {
"taskId": number,
"fields": {
"POST_MESSAGE": body['commits'][0]['message']
},
}
bx_res = requests.get(
"https://crm.svs-tech.pro/rest/38/7ufrqnfpncmt279p/task.commentitem.add.json",
json=bx_data
"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"
)
logger.info(f"result {json.loads(bx_res.text)}")
return {"status": "success"}