mirror of
https://github.com/YunoHost/webhooks.git
synced 2024-09-03 19:56:54 +02:00
[fix] stupid f-strings
This commit is contained in:
parent
b5e5dd82f2
commit
da3a8b14b2
1 changed files with 2 additions and 2 deletions
|
@ -460,12 +460,12 @@ async def github(request):
|
|||
repository = request.json["repository"]["name"]
|
||||
user = request.json["sender"]["login"]
|
||||
url = request.json["commit"]["html_url"]
|
||||
commit_message = request.json["commit"]["commit"]["message"]
|
||||
commit_message = request.json["commit"]["commit"]["message"].replace("\n", " ")
|
||||
commit_author = request.json["commit"]["committer"]["login"]
|
||||
|
||||
if state not in ("success", "pending"):
|
||||
await notify(
|
||||
f'[{repository}] {description} {target_url} on commit {url} "{commit_message.replace("\n", " ")}" by @{commit_author}'
|
||||
f'[{repository}] {description} {target_url} on commit {url} "{commit_message}" by @{commit_author}'
|
||||
)
|
||||
else:
|
||||
print(
|
||||
|
|
Loading…
Reference in a new issue