[fix] branch error
This commit is contained in:
parent
276271c8d4
commit
fe08ecbfcb
2
app.py
2
app.py
@ -38,7 +38,7 @@ async def webhook():
|
|||||||
|
|
||||||
def generatePushMsg(data):
|
def generatePushMsg(data):
|
||||||
msg = f'<b>🔨 {data["total_commits_count"]} new commits to ' \
|
msg = f'<b>🔨 {data["total_commits_count"]} new commits to ' \
|
||||||
f'{data["project"]["name"]}:{data["project"]["default_branch"]}</b>:\n\n'
|
f'{data["project"]["name"]}:{data["ref"].replace("refs/heads/", "")}</b>:\n\n'
|
||||||
for commit in data['commits']:
|
for commit in data['commits']:
|
||||||
tag_link = f'<a href="{commit["url"]}">{commit["id"][:7]}</a>'
|
tag_link = f'<a href="{commit["url"]}">{commit["id"][:7]}</a>'
|
||||||
msg = msg + f"{tag_link}: {commit['message'].rstrip()}\n"
|
msg = msg + f"{tag_link}: {commit['message'].rstrip()}\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user