[jira] add gif and update readme

This commit is contained in:
streetturtle 2020-02-23 21:07:44 -05:00
parent 0eead5da70
commit daf3e4b41d
3 changed files with 4 additions and 1 deletions

View File

@ -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.

View File

@ -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

BIN
jira-widget/out.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB