Update jira.lua
This commit is contained in:
parent
9e42fec6b1
commit
fb334f27fa
|
@ -112,7 +112,8 @@ local function worker(user_args)
|
|||
|
||||
local args = user_args or {}
|
||||
|
||||
local icon = args.icon or HOME_DIR .. '/.config/awesome/awesome-wm-widgets/jira-widget/icon/jira-mark-gradient-blue.svg'
|
||||
local icon = args.icon or
|
||||
HOME_DIR .. '/.config/awesome/awesome-wm-widgets/jira-widget/icon/jira-mark-gradient-blue.svg'
|
||||
local host = args.host or show_warning('Jira host is unknown')
|
||||
local query = args.query or 'jql=assignee=currentuser() AND resolution=Unresolved'
|
||||
local timeout = args.timeout or 600
|
||||
|
@ -222,7 +223,8 @@ local function worker(user_args)
|
|||
widget = wibox.widget.textbox
|
||||
},
|
||||
{
|
||||
markup = "<span foreground='#888888'>" .. issue.fields.assignee.displayName .. "</span>",
|
||||
markup = "<span foreground='#888888'>"
|
||||
.. issue.fields.assignee.displayName .. "</span>",
|
||||
widget = wibox.widget.textbox
|
||||
},
|
||||
spacing = 8,
|
||||
|
@ -288,10 +290,7 @@ local function worker(user_args)
|
|||
end)
|
||||
)
|
||||
)
|
||||
watch(
|
||||
'cat /home/pmakhov/.config/JetBrains/IntelliJIdea2020.2/scratches/scratch_27.json',
|
||||
--string.format(GET_ISSUES_CMD, host, query:gsub(' ', '+')),
|
||||
timeout, update_widget, jira_widget)
|
||||
watch(string.format(GET_ISSUES_CMD, host, query:gsub(' ', '+')), timeout, update_widget, jira_widget)
|
||||
return jira_widget
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue