formatters: fix github format
This commit is contained in:
parent
7aa5df3871
commit
d0c4cd4227
2 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue