summaryrefslogtreecommitdiff
path: root/github-activity-widget
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2020-07-31 11:58:38 -0400
committerstreetturtle <streetturtle@gmail.com>2020-07-31 11:59:15 -0400
commite13d0200b5ce46d6b3a68f3c51c05b300dda8744 (patch)
tree8e7083ab3e2b43431b9af977cabc3d8dafe4b317 /github-activity-widget
parente3a376a03f4980c8760f31de87ea5a2032e4757a (diff)
[github-activity] add support of createEvent
Diffstat (limited to 'github-activity-widget')
-rw-r--r--github-activity-widget/github-activity-widget.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/github-activity-widget/github-activity-widget.lua b/github-activity-widget/github-activity-widget.lua
index b3e29bc..4af0c13 100644
--- a/github-activity-widget/github-activity-widget.lua
+++ b/github-activity-widget/github-activity-widget.lua
@@ -94,12 +94,12 @@ local function generate_action_string(event)
icon = 'comment.svg'
elseif (event.type == "WatchEvent") then
action_string = 'starred'
- link = 'http://github.com/' .. event.repo.name
icon = 'star.svg'
elseif (event.type == "ForkEvent") then
action_string = 'forked'
- link = 'http://github.com/' .. event.repo.name
icon = 'fork.svg'
+ elseif (event.type == "CreateEvent") then
+ action_string = 'created'
end
return { action_string = action_string, link = link, icon = icon }