diff --git a/docs/index.xml b/docs/index.xml index 4a67aa43..df581d78 100644 --- a/docs/index.xml +++ b/docs/index.xml @@ -62,13 +62,13 @@ position Where in the grid this module’s widget will be displayed.Fri, 08 Jun 2018 13:14:11 -0700 https://wtfutil.com/posts/modules/gitlab/ - Displays information about your projects hosted on Gitlab: + Added in v0.0.8. +Displays information about your projects hosted on Gitlab: Open Approval Requests All open merge requests that are requesting your approval. Open Merge Requests All open merge requests created by you. Source Code wtf/gitlab/ Required ENV Variables Key: WTF_GITLAB_TOKEN Action: A Gitlab personal access token. Requires at least api access. Keyboard Commands Key: / Action: Open/close the widget’s help window. -Key: h Action: Show the previous project. -Key: l Action: Show the next project. +Key: h Action: Show the previous project. diff --git a/docs/posts/index.xml b/docs/posts/index.xml index 35750299..0ecc040d 100644 --- a/docs/posts/index.xml +++ b/docs/posts/index.xml @@ -62,13 +62,13 @@ position Where in the grid this module’s widget will be displayed.Fri, 08 Jun 2018 13:14:11 -0700 https://wtfutil.com/posts/modules/gitlab/ - Displays information about your projects hosted on Gitlab: + Added in v0.0.8. +Displays information about your projects hosted on Gitlab: Open Approval Requests All open merge requests that are requesting your approval. Open Merge Requests All open merge requests created by you. Source Code wtf/gitlab/ Required ENV Variables Key: WTF_GITLAB_TOKEN Action: A Gitlab personal access token. Requires at least api access. Keyboard Commands Key: / Action: Open/close the widget’s help window. -Key: h Action: Show the previous project. -Key: l Action: Show the next project. +Key: h Action: Show the previous project. diff --git a/docs/posts/modules/gitlab/index.html b/docs/posts/modules/gitlab/index.html index b9ad3488..096390ec 100644 --- a/docs/posts/modules/gitlab/index.html +++ b/docs/posts/modules/gitlab/index.html @@ -117,6 +117,10 @@ +

Added in v0.0.8.

+ +

gitlab screenshot

+

Displays information about your projects hosted on Gitlab:

Open Approval Requests

@@ -127,8 +131,6 @@

All open merge requests created by you.

-

gitlab screenshot

-

Source Code

wtf/gitlab/

Required ENV Variables

diff --git a/wtf.go b/wtf.go index f29f4af0..3f2f6ea1 100644 --- a/wtf.go +++ b/wtf.go @@ -21,15 +21,11 @@ import ( "github.com/senorprogrammer/wtf/gcal" "github.com/senorprogrammer/wtf/git" "github.com/senorprogrammer/wtf/github" -<<<<<<< HEAD -======= "github.com/senorprogrammer/wtf/gitlab" ->>>>>>> dlom-gitlab "github.com/senorprogrammer/wtf/gspreadsheets" "github.com/senorprogrammer/wtf/help" "github.com/senorprogrammer/wtf/ipapi" "github.com/senorprogrammer/wtf/ipinfo" - "github.com/senorprogrammer/wtf/ipapi" "github.com/senorprogrammer/wtf/jenkins" "github.com/senorprogrammer/wtf/jira" "github.com/senorprogrammer/wtf/newrelic" @@ -197,21 +193,14 @@ func addWidget(app *tview.Application, pages *tview.Pages, widgetName string) { Widgets = append(Widgets, git.NewWidget(app, pages)) case "github": Widgets = append(Widgets, github.NewWidget(app, pages)) -<<<<<<< HEAD - case "gspreadsheets": - Widgets = append(Widgets, gspreadsheets.NewWidget()) -======= case "gitlab": Widgets = append(Widgets, gitlab.NewWidget(app, pages)) case "gspreadsheets": - Widgets = append(Widgets, gspreadsheets.NewWidget()) - case "ipapi": + Widgets = append(Widgets, gspreadsheets.NewWidget()) + case "ipapi": Widgets = append(Widgets, ipapi.NewWidget()) ->>>>>>> dlom-gitlab case "ipinfo": Widgets = append(Widgets, ipinfo.NewWidget()) - case "ipapi": - Widgets = append(Widgets, ipapi.NewWidget()) case "jenkins": Widgets = append(Widgets, jenkins.NewWidget()) case "jira": @@ -254,16 +243,11 @@ func makeWidgets(app *tview.Application, pages *tview.Pages) { gcal.Config = Config git.Config = Config github.Config = Config -<<<<<<< HEAD - gspreadsheets.Config = Config -======= gitlab.Config = Config gspreadsheets.Config = Config ipapi.Config = Config ->>>>>>> dlom-gitlab ipinfo.Config = Config - ipapi.Config = Config - jenkins.Config = Config + jenkins.Config = Config jira.Config = Config newrelic.Config = Config opsgenie.Config = Config @@ -279,7 +263,7 @@ func makeWidgets(app *tview.Application, pages *tview.Pages) { mods, _ := Config.Map("wtf.mods") for mod := range mods { - if enabled, _ := Config.Bool("wtf.mods." + mod + ".enabled"); enabled { + if enabled := Config.UBool("wtf.mods."+mod+".enabled", false); enabled { addWidget(app, pages, mod) }