remove author name
This commit is contained in:
parent
1990c9a48d
commit
f07439de54
|
@ -17,7 +17,7 @@ async def intgr(request: Request):
|
||||||
body = await request.json()
|
body = await request.json()
|
||||||
ref = body["ref"]
|
ref = body["ref"]
|
||||||
branch = ref.split("/")[-1]
|
branch = ref.split("/")[-1]
|
||||||
|
|
||||||
[tag, number, *args] = branch.split("-")
|
[tag, number, *args] = branch.split("-")
|
||||||
logger.info(f"input tag {tag} number {number} args {args}")
|
logger.info(f"input tag {tag} number {number} args {args}")
|
||||||
|
|
||||||
|
@ -26,8 +26,8 @@ async def intgr(request: Request):
|
||||||
|
|
||||||
bx_res = requests.get(
|
bx_res = requests.get(
|
||||||
"https://crm.svs-tech.pro/rest/38/7ufrqnfpncmt279p/task.commentitem.add.json?"
|
"https://crm.svs-tech.pro/rest/38/7ufrqnfpncmt279p/task.commentitem.add.json?"
|
||||||
f"taskId={number}&fields[POST_MESSAGE]={body['commits'][0]['message']}"
|
f"taskId={number}"
|
||||||
"&fields[AUTHOR_NAME]=GITEA INTEGRATION"
|
f"&fields[POST_MESSAGE]={body['commits'][0]['message']}"
|
||||||
)
|
)
|
||||||
logger.info(f"result {json.loads(bx_res.text)}")
|
logger.info(f"result {json.loads(bx_res.text)}")
|
||||||
return {"status": "success"}
|
return {"status": "success"}
|
||||||
|
|
Loading…
Reference in New Issue