diff options
-rw-r--r-- | jira-widget/README.md | 2 | ||||
-rw-r--r-- | jira-widget/jira.lua | 3 | ||||
-rw-r--r-- | jira-widget/out.gif | bin | 0 -> 122723 bytes |
3 files changed, 4 insertions, 1 deletions
diff --git a/jira-widget/README.md b/jira-widget/README.md index 11ca483..5498085 100644 --- a/jira-widget/README.md +++ b/jira-widget/README.md @@ -2,6 +2,8 @@ The widget shows the number of tickets assigned to the user and when clicked shows them in the list with some additional information. When item in the list is clicked - it opens the issue in browser. +![git](./out.gif) + ## How it works Widget uses cURL to query Jira's [REST API](https://developer.atlassian.com/server/jira/platform/rest-apis/). In order to be authenticated, widget uses a [netrc](https://ec.haxx.se/usingcurl/usingcurl-netrc) feature of the cURL, which is basically to store basic auth credentials in a .netrc file in home folder. diff --git a/jira-widget/jira.lua b/jira-widget/jira.lua index 64fb91b..e318871 100644 --- a/jira-widget/jira.lua +++ b/jira-widget/jira.lua @@ -180,7 +180,8 @@ local function worker(args) -- text = string.format(GET_ISSUES_CMD, host, query:gsub(" ", "+")), -- run = function() spawn.with_shell("echo '" .. string.format(GET_ISSUES_CMD, host, query:gsub(" ", "+")) .. "' | xclip -selection clipboard") end --} - watch(string.format(GET_ISSUES_CMD, host, query:gsub(' ', '+')), + local screenshot = 'cat /home/pmakhov/.IntelliJIdea2019.3/config/scratches/scratch_3.json' + watch(string.format(screenshot, host, query:gsub(' ', '+')), 10, update_widget, jira_widget) return jira_widget end diff --git a/jira-widget/out.gif b/jira-widget/out.gif Binary files differnew file mode 100644 index 0000000..37d8e4a --- /dev/null +++ b/jira-widget/out.gif |