summaryrefslogtreecommitdiff
path: root/gerrit-widget/README.md
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@users.noreply.github.com>2019-11-05 22:04:31 -0500
committerGitHub <noreply@github.com>2019-11-05 22:04:31 -0500
commit1dacf4b89d54300d680caa31e191ae5b38451a44 (patch)
tree507cd00a94105386589ffa2afb78bf0523eaf201 /gerrit-widget/README.md
parenta995b89701c4dc9082bc14515eeabfea3fb99198 (diff)
Update README.md
Diffstat (limited to 'gerrit-widget/README.md')
-rw-r--r--gerrit-widget/README.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/gerrit-widget/README.md b/gerrit-widget/README.md
index fde1fd8..c9b603b 100644
--- a/gerrit-widget/README.md
+++ b/gerrit-widget/README.md
@@ -22,10 +22,10 @@ It is possible to customize widget by providing a table with all or some of the
1. This widget relies on Gerrit [REST API](https://gerrit-review.googlesource.com/Documentation/rest-api.html), so you need to have a permission to access it. You also need to setup [netrc](https://ec.haxx.se/usingcurl-netrc.html), as widget uses curl to communicate with API and you have to be authenticated.
To test if you have access to API and netrc setup is correct run following command, you should have a json response:
-```bash
- curl -s --request GET --netrc https://gerrit-host.com/a/changes/\?q\=status:open+AND+NOT+is:wip+AND+is:reviewer | tail -n +2
-```
-Note: `tail -n +2` is needed to skip first line of the response, as gerrit returns some characters there in order to prevent XSS hacks.
+ ```bash
+ curl -s --request GET --netrc https://gerrit-host.com/a/changes/\?q\=status:open+AND+NOT+is:wip+AND+is:reviewer | tail -n +2
+ ```
+ Note: `tail -n +2` is needed to skip first line of the response, as gerrit returns some characters there in order to prevent XSS hacks.
1. Download json parser for lua from [github.com/rxi/json.lua](https://github.com/rxi/json.lua) and place it under **~/.config/awesome/** (don't forget to star a repo):
@@ -61,4 +61,4 @@ Note: `tail -n +2` is needed to skip first line of the response, as gerrit retur
})
...
```
- \ No newline at end of file
+