Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

Commit

Permalink
remove redundant repository link from release messages
Browse files Browse the repository at this point in the history
  • Loading branch information
hyper-neutrino committed Jul 13, 2021
1 parent 1894a18 commit 1d77ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webhook-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def receive_github_webhook():
alert = data["alert"]
send(f"**security alert** ({alert['severity']}) created by {link(data['sender']['login'])} in {linkrepo(data['repository'])}) (affected package: _{msgify(alert['affected_package_name'])} {alert['affected_range']})")
elif data.get("action") == "published" and "release" in data:
send(f"[**{data['release']['name'] or data['release']['tag_name']}**]({data['release']['html_url']}) ({linkrepo(data['repository'])})", pin = data["repository"]["full_name"] == "Vyxal/Vyxal")
send(f"[**{data['release']['name'] or data['release']['tag_name']}**]({data['release']['html_url']})", pin = data["repository"]["full_name"] == "Vyxal/Vyxal")
return ""

if __name__ == "__main__":
Expand Down

0 comments on commit 1d77ebb

Please sign in to comment.