Skip to content

Commit

Permalink
chg: [FediVuln-Publish] Added the title of the comment in the templat…
Browse files Browse the repository at this point in the history
…e dedicated to comments.
  • Loading branch information
cedricbonhomme committed Dec 11, 2024
1 parent 6ca0c56 commit d1d6656
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fedivuln/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"vulnerability": "You can now share your thoughts on vulnerability "
"<VULNID> in Vulnerability-Lookup:\n<LINK>\n\n#VulnerabilityLookup #Vulnerability",
"comment": "Vulnerability <VULNID> has received a comment on "
"Vulnerability-Lookup:\n<LINK>\n\n#VulnerabilityLookup #Vulnerability",
"Vulnerability-Lookup:\n\n<TITLE>\n<LINK>\n\n#VulnerabilityLookup #Vulnerability",
"bundle": "A new bundle, <BUNDLETITLE>, has been published "
"on Vulnerability-Lookup:\n<LINK>\n\n#VulnerabilityLookup #Vulnerability",
}
Expand All @@ -43,6 +43,7 @@ def create_status_content(event_data: str, topic: str) -> str:
status = status.replace("<VULNID>", event_dict["payload"]["vulnerability"])
case "comment":
status = status.replace("<VULNID>", event_dict["payload"]["vulnerability"])
status = status.replace("<TITLE>", event_dict["payload"]["title"])
case "bundle":
status = status.replace("<BUNDLETITLE>", event_dict["payload"]["name"])
case _:
Expand Down

0 comments on commit d1d6656

Please sign in to comment.