[reformat] text
This commit is contained in:
parent
53f77db105
commit
276271c8d4
4
app.py
4
app.py
@ -37,8 +37,8 @@ async def webhook():
|
|||||||
|
|
||||||
|
|
||||||
def generatePushMsg(data):
|
def generatePushMsg(data):
|
||||||
msg = f'*🔨 {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"]}*:\n\n'
|
f'{data["project"]["name"]}:{data["project"]["default_branch"]}</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