Skip to content

Commit

Permalink
Merge branch 'anandsudhir-add-gerrit-widget'
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Cummer committed Jun 28, 2018
2 parents 5caff0c + 574693d commit c4210f7
Show file tree
Hide file tree
Showing 99 changed files with 8,339 additions and 270 deletions.
30 changes: 18 additions & 12 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
name = "github.com/xanzy/go-gitlab"
branch = "master"

[[constraint]]
name = "github.com/andygrunwald/go-gerrit"
branch = "master"

[[constraint]]
name = "github.com/jessevdk/go-flags"
version = "1.4.0"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Many thanks to all these developers.

* [calendar](https://google.golang.org/api/calendar/v3)
* [config](https://github.com/olebedev/config)
* [go-gerrit](https://github.com/andygrunwald/go-gerrit)
* [go-github](https://github.com/google/go-github)
* [goreleaser](https://github.com/goreleaser/goreleaser)
* [newrelic](https://github.com/yfronto/newrelic)
Expand Down
90 changes: 90 additions & 0 deletions _site/content/posts/modules/gerrit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
---
title: "Gerrit"
date: 2018-06-27T15:55:42-07:00
draft: false
---

<img src="/imgs/modules/gerrit.png" width="640" height="384" alt="gerrit screenshot" />

Displays information about your projects hosted on Gerrit:

#### Open Incoming Reviews

All open reviews that are requesting your approval.

#### My Outgoing Reviews

All open reviews created by you.

## Source Code

```bash
wtf/gerrit/
```

## Required ENV Variables

<span class="caption">Key:</span> `WTF_GERRIT_PASSWORD` <br />
<span class="caption">Action:</span> Your <a href="https://gerrit-review.googlesource.com/Documentation/user-upload.html#http">Gerrit HTTP Password</a>.

## Keyboard Commands

<span class="caption">Key:</span> `/` <br />
<span class="caption">Action:</span> Open/close the widget's help window.

<span class="caption">Key:</span> `h` <br />
<span class="caption">Action:</span> Show the previous project.

<span class="caption">Key:</span> `l` <br />
<span class="caption">Action:</span> Show the next project.

<span class="caption">Key:</span> `` <br />
<span class="caption">Action:</span> Show the previous project.

<span class="caption">Key:</span> `` <br />
<span class="caption">Action:</span> Show the next project.

## Configuration

```yaml
gerrit:
enabled: true
position:
top: 2
left: 3
height: 2
width: 2
refreshInterval: 300
projects:
- org/test-project"
- dotfiles
username: "myname"
```
### Attributes
`enabled` <br />
Determines whether or not this module is executed and if its data displayed onscreen. <br />
Values: `true`, `false`.

`position` <br />
Defines where in the grid this module's widget will be displayed. <br />

`refreshInterval` <br />
How often, in seconds, this module will update its data. <br />
Values: A positive integer, `0..n`.

`domain` <br />
_Optional_. Your Gerrit corporate domain. <br />
Values: A valid URI.

`projects` <br />
A list of Gerrit project names to fetch data for. <br />

`username` <br />
Your Gerrit username. <br />

`verifyServerCertificate` <br />
_Optional_ <br />
Determines whether or not the server's certificate chain and host name are verified. <br />
Values: `true`, `false`.
Binary file added _site/static/imgs/modules/gerrit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions _site/themes/hyde-hyde/layouts/partials/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ <h3 style="color: white;">Content</h3>
<li class="sidebar-list-item-2"><a href="/posts/modules/clocks/">Clocks</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/cryptocurrencies/cryptolive/">CryptoLive</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/cmdrunner/">CmdRunner</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/gerrit/">Gerrit</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/git/">Git</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/github/">GitHub</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/gitlab/">Gitlab</a></li>
Expand Down
1 change: 1 addition & 0 deletions docs/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ <h3 style="color: white;">Content</h3>
<li class="sidebar-list-item-2"><a href="/posts/modules/clocks/">Clocks</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/cryptocurrencies/cryptolive/">CryptoLive</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/cmdrunner/">CmdRunner</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/gerrit/">Gerrit</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/git/">Git</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/github/">GitHub</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/gitlab/">Gitlab</a></li>
Expand Down
1 change: 1 addition & 0 deletions docs/categories/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ <h3 style="color: white;">Content</h3>
<li class="sidebar-list-item-2"><a href="/posts/modules/clocks/">Clocks</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/cryptocurrencies/cryptolive/">CryptoLive</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/cmdrunner/">CmdRunner</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/gerrit/">Gerrit</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/git/">Git</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/github/">GitHub</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/gitlab/">Gitlab</a></li>
Expand Down
Binary file added docs/imgs/modules/gerrit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ <h3 style="color: white;">Content</h3>
<li class="sidebar-list-item-2"><a href="/posts/modules/clocks/">Clocks</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/cryptocurrencies/cryptolive/">CryptoLive</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/cmdrunner/">CmdRunner</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/gerrit/">Gerrit</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/git/">Git</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/github/">GitHub</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/gitlab/">Gitlab</a></li>
Expand Down
20 changes: 18 additions & 2 deletions docs/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,27 @@
<description>Recent content on WTF - A Terminal Dashboard</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Sat, 16 Jun 2018 14:22:18 -0700</lastBuildDate>
<lastBuildDate>Wed, 27 Jun 2018 15:55:42 -0700</lastBuildDate>

<atom:link href="https://wtfutil.com/index.xml" rel="self" type="application/rss+xml" />


<item>
<title>Gerrit</title>
<link>https://wtfutil.com/posts/modules/gerrit/</link>
<pubDate>Wed, 27 Jun 2018 15:55:42 -0700</pubDate>

<guid>https://wtfutil.com/posts/modules/gerrit/</guid>
<description>Displays information about your projects hosted on Gerrit:
Open Incoming Reviews All open reviews that are requesting your approval.
My Outgoing Reviews All open reviews created by you.
Source Code wtf/gerrit/ Required ENV Variables Key: WTF_GERRIT_PASSWORD Action: Your Gerrit HTTP Password.
Keyboard Commands Key: / Action: Open/close the widget&amp;rsquo;s help window.
Key: h Action: Show the previous project.
Key: l Action: Show the next project.
Key: ← Action: Show the previous project.</description>
</item>

<item>
<title>Logger</title>
<link>https://wtfutil.com/posts/modules/logger/</link>
Expand Down Expand Up @@ -144,7 +160,7 @@ summary enabled Determines whether or not this module is executed and if its dat
Compare crypto currencies using CryptoCompare.
Source Code wtf/cryptoexchanges/cryptolive/ Required ENV Vars None.
Keyboard Commands None.
Configuration cryptolive:colors:from:name:coraldisplayName:greyto:name:whiteprice:greencurrencies:BTC:displayName:Bitcointo:-USD-EUR-ETHETH:displayName:Ethereumto:-USD-EUR-ETHenabled:trueposition:top:5left:2height:1width:2updateInterval:15 Attributes colors.from.name Values: Any X11 color name.
Configuration cryptolive:enabled:trueposition:top:5left:2height:1width:2updateInterval:15currencies:BTC:displayName:Bitcointo:-USD-EUR-ETH-LTC-DOGELTC:displayName:Ethereumto:-USD-EUR-BTCtop:BTC:displayName:Bitcoinlimit:5to:-USDcolors:from:name:coraldisplayName:greyto:name:whiteprice:greentop:from:name:greydisplayName:coralto:name:redfield:whitevalue:green Attributes colors.from.name Values: Any X11 color name.
colors.from.dispayName Values: Any X11 color name.
colors.to.name Values: Any X11 color name.
colors.to.price Values: Any X11 color name.
Expand Down
1 change: 1 addition & 0 deletions docs/posts/configuration/attributes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ <h3 style="color: white;">Content</h3>
<li class="sidebar-list-item-2"><a href="/posts/modules/clocks/">Clocks</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/cryptocurrencies/cryptolive/">CryptoLive</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/cmdrunner/">CmdRunner</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/gerrit/">Gerrit</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/git/">Git</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/github/">GitHub</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/gitlab/">Gitlab</a></li>
Expand Down
1 change: 1 addition & 0 deletions docs/posts/configuration/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ <h3 style="color: white;">Content</h3>
<li class="sidebar-list-item-2"><a href="/posts/modules/clocks/">Clocks</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/cryptocurrencies/cryptolive/">CryptoLive</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/cmdrunner/">CmdRunner</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/gerrit/">Gerrit</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/git/">Git</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/github/">GitHub</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/gitlab/">Gitlab</a></li>
Expand Down
1 change: 1 addition & 0 deletions docs/posts/configuration/iterm2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ <h3 style="color: white;">Content</h3>
<li class="sidebar-list-item-2"><a href="/posts/modules/clocks/">Clocks</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/cryptocurrencies/cryptolive/">CryptoLive</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/cmdrunner/">CmdRunner</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/gerrit/">Gerrit</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/git/">Git</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/github/">GitHub</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/gitlab/">Gitlab</a></li>
Expand Down
1 change: 1 addition & 0 deletions docs/posts/glossary/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ <h3 style="color: white;">Content</h3>
<li class="sidebar-list-item-2"><a href="/posts/modules/clocks/">Clocks</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/cryptocurrencies/cryptolive/">CryptoLive</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/cmdrunner/">CmdRunner</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/gerrit/">Gerrit</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/git/">Git</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/github/">GitHub</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/gitlab/">Gitlab</a></li>
Expand Down
8 changes: 8 additions & 0 deletions docs/posts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ <h3 style="color: white;">Content</h3>
<li class="sidebar-list-item-2"><a href="/posts/modules/clocks/">Clocks</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/cryptocurrencies/cryptolive/">CryptoLive</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/cmdrunner/">CmdRunner</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/gerrit/">Gerrit</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/git/">Git</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/github/">GitHub</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/gitlab/">Gitlab</a></li>
Expand Down Expand Up @@ -119,6 +120,13 @@ <h3 style="color: white;">Content</h3>
<h1 class="title">Posts</h1>
<ul class="posts">
<li>
<span>
<a href="https://wtfutil.com/posts/modules/gerrit/">Gerrit</a>

<time class="pull-right post-list">Jun 27, 2018</time>

</span>
</li><li>
<span>
<a href="https://wtfutil.com/posts/modules/logger/">Logger</a>

Expand Down
20 changes: 18 additions & 2 deletions docs/posts/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,27 @@
<description>Recent content in Posts on WTF - A Terminal Dashboard</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Sat, 16 Jun 2018 14:22:18 -0700</lastBuildDate>
<lastBuildDate>Wed, 27 Jun 2018 15:55:42 -0700</lastBuildDate>

<atom:link href="https://wtfutil.com/posts/index.xml" rel="self" type="application/rss+xml" />


<item>
<title>Gerrit</title>
<link>https://wtfutil.com/posts/modules/gerrit/</link>
<pubDate>Wed, 27 Jun 2018 15:55:42 -0700</pubDate>

<guid>https://wtfutil.com/posts/modules/gerrit/</guid>
<description>Displays information about your projects hosted on Gerrit:
Open Incoming Reviews All open reviews that are requesting your approval.
My Outgoing Reviews All open reviews created by you.
Source Code wtf/gerrit/ Required ENV Variables Key: WTF_GERRIT_PASSWORD Action: Your Gerrit HTTP Password.
Keyboard Commands Key: / Action: Open/close the widget&amp;rsquo;s help window.
Key: h Action: Show the previous project.
Key: l Action: Show the next project.
Key: ← Action: Show the previous project.</description>
</item>

<item>
<title>Logger</title>
<link>https://wtfutil.com/posts/modules/logger/</link>
Expand Down Expand Up @@ -144,7 +160,7 @@ summary enabled Determines whether or not this module is executed and if its dat
Compare crypto currencies using CryptoCompare.
Source Code wtf/cryptoexchanges/cryptolive/ Required ENV Vars None.
Keyboard Commands None.
Configuration cryptolive:colors:from:name:coraldisplayName:greyto:name:whiteprice:greencurrencies:BTC:displayName:Bitcointo:-USD-EUR-ETHETH:displayName:Ethereumto:-USD-EUR-ETHenabled:trueposition:top:5left:2height:1width:2updateInterval:15 Attributes colors.from.name Values: Any X11 color name.
Configuration cryptolive:enabled:trueposition:top:5left:2height:1width:2updateInterval:15currencies:BTC:displayName:Bitcointo:-USD-EUR-ETH-LTC-DOGELTC:displayName:Ethereumto:-USD-EUR-BTCtop:BTC:displayName:Bitcoinlimit:5to:-USDcolors:from:name:coraldisplayName:greyto:name:whiteprice:greentop:from:name:greydisplayName:coralto:name:redfield:whitevalue:green Attributes colors.from.name Values: Any X11 color name.
colors.from.dispayName Values: Any X11 color name.
colors.to.name Values: Any X11 color name.
colors.to.price Values: Any X11 color name.
Expand Down
1 change: 1 addition & 0 deletions docs/posts/installation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ <h3 style="color: white;">Content</h3>
<li class="sidebar-list-item-2"><a href="/posts/modules/clocks/">Clocks</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/cryptocurrencies/cryptolive/">CryptoLive</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/cmdrunner/">CmdRunner</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/gerrit/">Gerrit</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/git/">Git</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/github/">GitHub</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/gitlab/">Gitlab</a></li>
Expand Down
1 change: 1 addition & 0 deletions docs/posts/modules/bamboohr/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ <h3 style="color: white;">Content</h3>
<li class="sidebar-list-item-2"><a href="/posts/modules/clocks/">Clocks</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/cryptocurrencies/cryptolive/">CryptoLive</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/cmdrunner/">CmdRunner</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/gerrit/">Gerrit</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/git/">Git</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/github/">GitHub</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/gitlab/">Gitlab</a></li>
Expand Down
1 change: 1 addition & 0 deletions docs/posts/modules/circleci/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ <h3 style="color: white;">Content</h3>
<li class="sidebar-list-item-2"><a href="/posts/modules/clocks/">Clocks</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/cryptocurrencies/cryptolive/">CryptoLive</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/cmdrunner/">CmdRunner</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/gerrit/">Gerrit</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/git/">Git</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/github/">GitHub</a></li>
<li class="sidebar-list-item-2"><a href="/posts/modules/gitlab/">Gitlab</a></li>
Expand Down
Loading

0 comments on commit c4210f7

Please sign in to comment.