Skip to content

Commit

Permalink
de-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoby committed Sep 12, 2024
1 parent b5ce072 commit fdd686a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def createTitle(self):
# starCount = self.repoJson["stargazers_count"]
# starUrl = f"{repoUrl}/stargazers"

title = f"{self.eventName.capitalize().replace('_',' ')}"
title = f"{self.eventName.capitalize().replace('_', ' ')}"

try:
action = self.eventJson["action"]
Expand Down Expand Up @@ -344,7 +344,7 @@ def addWatchDetails(self):
def addDefaultDetails(self):
self.attachment["color"] = self.todoColor
self.attachment["text"] = self.createTitle()
self.attachment["fallback"] = f"{eventName.capitalize().replace('_',' ')} by {self.senderJson['login']} in {self.repoJson['full_name']}"
self.attachment["fallback"] = f"{eventName.capitalize().replace('_', ' ')} by {self.senderJson['login']} in {self.repoJson['full_name']}"

def dumpJson(self):
return json.dumps(self.body)
Expand Down

0 comments on commit fdd686a

Please sign in to comment.