summaryrefslogtreecommitdiff
path: root/jira-widget
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2020-02-23 21:07:44 -0500
committerstreetturtle <streetturtle@gmail.com>2020-02-23 21:07:44 -0500
commitdaf3e4b41dc71e84fb148851fe531f5dd2fb790b (patch)
tree8f4bfe0ea005494dc32bd2c04db998e122f8ce0f /jira-widget
parent0eead5da70569e8a15c66a37d731ee18f34a6c28 (diff)
[jira] add gif and update readme
Diffstat (limited to 'jira-widget')
-rw-r--r--jira-widget/README.md2
-rw-r--r--jira-widget/jira.lua3
-rw-r--r--jira-widget/out.gifbin0 -> 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
new file mode 100644
index 0000000..37d8e4a
--- /dev/null
+++ b/jira-widget/out.gif
Binary files differ