From e13d0200b5ce46d6b3a68f3c51c05b300dda8744 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Fri, 31 Jul 2020 11:58:38 -0400 Subject: [github-activity] add support of createEvent --- github-activity-widget/github-activity-widget.lua | 4 ++-- 1 file 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 } -- cgit v1.2.3