From fe08ecbfcb5ba7b958b30d708c7dc0b38bbbe4e4 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sat, 5 Mar 2022 17:08:59 +0800 Subject: [PATCH] [fix] branch error --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index d9d37ae..5be3745 100644 --- a/app.py +++ b/app.py @@ -38,7 +38,7 @@ async def webhook(): def generatePushMsg(data): msg = f'🔨 {data["total_commits_count"]} new commits to ' \ - f'{data["project"]["name"]}:{data["project"]["default_branch"]}:\n\n' + f'{data["project"]["name"]}:{data["ref"].replace("refs/heads/", "")}:\n\n' for commit in data['commits']: tag_link = f'{commit["id"][:7]}' msg = msg + f"{tag_link}: {commit['message'].rstrip()}\n"