mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Another actions test (#889)
* Another actions test Signed-off-by: Chris Cummer <chriscummer@me.com> * Add BuildTest action Signed-off-by: Chris Cummer <chriscummer@me.com> * Remove lint check for the time being (so many issues) Signed-off-by: Chris Cummer <chriscummer@me.com> * Fix issues found by errcheck Signed-off-by: Chris Cummer <chriscummer@me.com> * Fix errors found by staticcheck Signed-off-by: Chris Cummer <chriscummer@me.com> * Fix issues found by goimports Signed-off-by: Chris Cummer <chriscummer@me.com> * Comment out the action for the time being Signed-off-by: Chris Cummer <chriscummer@me.com> * Fix shadowed variables Signed-off-by: Chris Cummer <chriscummer@me.com> * go mod tidy Signed-off-by: Chris Cummer <chriscummer@me.com> * Remove buildtest.yml Signed-off-by: Chris Cummer <chriscummer@me.com> * go mod tidy Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
@@ -45,7 +45,7 @@ func (widget *Widget) Create(jenkinsURL string, username string, apiKey string)
|
||||
return view, err
|
||||
}
|
||||
|
||||
respJobs := make([]Job, 0, len(view.Jobs) + len(view.ActiveConfigurations))
|
||||
respJobs := make([]Job, 0, len(view.Jobs)+len(view.ActiveConfigurations))
|
||||
respJobs = append(append(respJobs, view.Jobs...), view.ActiveConfigurations...)
|
||||
|
||||
jobs := make([]Job, 0)
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package jenkins
|
||||
|
||||
type View struct {
|
||||
Description string `json:"description"`
|
||||
Jobs []Job `json:"jobs"`
|
||||
ActiveConfigurations []Job `json:"activeConfigurations"`
|
||||
Name string `json:"name"`
|
||||
Url string `json:"url"`
|
||||
Description string `json:"description"`
|
||||
Jobs []Job `json:"jobs"`
|
||||
ActiveConfigurations []Job `json:"activeConfigurations"`
|
||||
Name string `json:"name"`
|
||||
Url string `json:"url"`
|
||||
}
|
||||
|
||||
@@ -2,10 +2,11 @@ package jenkins
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/url"
|
||||
|
||||
"github.com/rivo/tview"
|
||||
"github.com/wtfutil/wtf/utils"
|
||||
"github.com/wtfutil/wtf/view"
|
||||
"net/url"
|
||||
)
|
||||
|
||||
type Widget struct {
|
||||
|
||||
Reference in New Issue
Block a user