From daf3e4b41dc71e84fb148851fe531f5dd2fb790b Mon Sep 17 00:00:00 2001 From: streetturtle Date: Sun, 23 Feb 2020 21:07:44 -0500 Subject: [jira] add gif and update readme --- jira-widget/README.md | 2 ++ jira-widget/jira.lua | 3 ++- jira-widget/out.gif | Bin 0 -> 122723 bytes 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 jira-widget/out.gif (limited to 'jira-widget') 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 new file mode 100644 index 0000000..37d8e4a Binary files /dev/null and b/jira-widget/out.gif differ -- cgit v1.2.3