author name
This commit is contained in:
parent
f69e47d303
commit
1990c9a48d
12
app/main.py
12
app/main.py
|
@ -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"}
|
||||
|
|
Loading…
Reference in New Issue