diff options
author | streetturtle <streetturtle@gmail.com> | 2020-12-17 20:25:36 -0500 |
---|---|---|
committer | streetturtle <streetturtle@gmail.com> | 2020-12-17 20:25:36 -0500 |
commit | 1626886e51c2f2c0bf2730abb4d69c07df448d3e (patch) | |
tree | 4de38b5673fbbfa448677e43ef4212aa583c242e /gitlab-widget/gitlab.lua | |
parent | 8ad4d0228dfb686309ae7a7235940dea2e5bf211 (diff) |
fix #228 - add gitlab readme
Diffstat (limited to 'gitlab-widget/gitlab.lua')
-rw-r--r-- | gitlab-widget/gitlab.lua | 7 |
1 files changed, 4 insertions, 3 deletions
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 |