summaryrefslogtreecommitdiff
path: root/github-activity-widget/github-activity-widget.lua
diff options
context:
space:
mode:
Diffstat (limited to 'github-activity-widget/github-activity-widget.lua')
-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 }