diff --git a/app/main.py b/app/main.py index 51c5c1c..794a583 100644 --- a/app/main.py +++ b/app/main.py @@ -20,12 +20,11 @@ async def intgr(request: Request): [tag, number, *args] = branch.split("-") logger.info(f"input tag {tag} number {number} args {args}") - logger.info(body) bx_comment = ( f"Сообщение от GITEA для задачи {number} (ветка {body['ref']} в репозитории {body['repository']['full_name']})" "\n\n" - f"{body['head_commit']['message']}" + f"{'Создана ветка' if not 'head_commit' in body else body['head_commit']['message']}" ) bx_res = requests.get(