formatters: fix github format

This commit is contained in:
Guilhem Saurel 2021-08-28 00:40:56 +02:00
parent 7aa5df3871
commit d0c4cd4227
2 changed files with 3 additions and 3 deletions

View file

@ -22,8 +22,8 @@ def github(data, headers):
pusher, ref, a, b, c = [
data[k] for k in ["pusher", "ref", "after", "before", "compare"]
]
pusher = f"[{pusher['name']}](https://github.com/{pusher['name']})"
data["body"] = f"@{pusher} pushed on {ref}: [{b}{a}]({c}):\n\n"
pusher = f"[@{pusher['name']}](https://github.com/{pusher['name']})"
data["body"] = f"{pusher} pushed on {ref}: [{b}{a}]({c}):\n\n"
for commit in data["commits"]:
data["body"] += f"- [{commit['message']}]({commit['url']})\n"
else: