From 1626886e51c2f2c0bf2730abb4d69c07df448d3e Mon Sep 17 00:00:00 2001 From: streetturtle Date: Thu, 17 Dec 2020 20:25:36 -0500 Subject: fix #228 - add gitlab readme --- gitlab-widget/gitlab.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gitlab-widget/gitlab.lua') diff --git a/gitlab-widget/gitlab.lua b/gitlab-widget/gitlab.lua index 2ab65b6..5d771b9 100644 --- a/gitlab-widget/gitlab.lua +++ b/gitlab-widget/gitlab.lua @@ -1,6 +1,7 @@ ------------------------------------------------- -- Gitlab Widget for Awesome Window Manager --- Shows the number of currently assigned pull requests +-- Shows the number of currently assigned merge requests +-- and information about them -- More details could be found here: -- https://github.com/streetturtle/awesome-wm-widgets/tree/master/gitlab-widget @@ -140,7 +141,7 @@ local function worker(user_args) local args = user_args or {} local icon = args.icon or WIDGET_DIR .. '/icons/gitlab-icon.svg' - local api_token = args.api_token or show_warning('API Token is not set') + local access_token = args.access_token or show_warning('API Token is not set') local host = args.host or show_warning('Gitlab host is not set') local timeout = args.timeout or 60 @@ -391,7 +392,7 @@ local function worker(user_args) ) ) - watch(string.format(GET_PRS_CMD, api_token, host), + watch(string.format(GET_PRS_CMD, access_token, host), -- string.format(GET_PRS_CMD, host, workspace, repo_slug, uuid, uuid), timeout, update_widget, gitlab_widget) return gitlab_widget -- cgit v1.2.3