diff --git a/Gopkg.lock b/Gopkg.lock index c429c1fe..9211154d 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -17,7 +17,7 @@ branch = "master" name = "github.com/andygrunwald/go-gerrit" packages = ["."] - revision = "5632c7fad122548dfabeb3011e98d3b0a08a89d7" + revision = "5ea603106b4869cc3f38322ee17d5fc1360ee1e3" [[projects]] branch = "master" @@ -110,7 +110,7 @@ branch = "master" name = "github.com/rivo/tview" packages = ["."] - revision = "306abd9cb98c97417ab6c58aa0400b2e5daac88b" + revision = "83483397e826c343edb7b8c1f33fb7983dda9fc5" [[projects]] name = "github.com/stretchr/testify" @@ -119,10 +119,10 @@ version = "v1.2.2" [[projects]] + branch = "master" name = "github.com/xanzy/go-gitlab" packages = ["."] - revision = "5c6e84fea386746fd31ff46da2253f6b7ed7dce2" - version = "v0.10.6" + revision = "6ada444068f460636db26ca0dd66cf2aa518fa8f" [[projects]] branch = "master" @@ -137,7 +137,7 @@ "context", "context/ctxhttp" ] - revision = "afe8f62b1d6bbd81f31868121a50b06d8188e1f9" + revision = "e514e69ffb8bc3c76a71ae40de0118d794855992" [[projects]] branch = "master" @@ -173,7 +173,7 @@ "googleapi/internal/uritemplates", "sheets/v4" ] - revision = "3639d6d93f377f39a1de765fa4ef37b3c7ca8bd9" + revision = "082d671a2a341aa205b22b580fa69747dcc3cdc8" [[projects]] name = "google.golang.org/appengine" diff --git a/vendor/github.com/adlio/trello/label.go b/vendor/github.com/adlio/trello/label.go index 343542a2..c805b1f2 100644 --- a/vendor/github.com/adlio/trello/label.go +++ b/vendor/github.com/adlio/trello/label.go @@ -25,4 +25,4 @@ func (b *Board) GetLabels(args Arguments) (labels []*Label, err error) { path := fmt.Sprintf("boards/%s/labels", b.ID) err = b.client.Get(path, args, &labels) return -} +} \ No newline at end of file diff --git a/vendor/github.com/andygrunwald/go-gerrit/changes.go b/vendor/github.com/andygrunwald/go-gerrit/changes.go index db5f6a72..301819f5 100644 --- a/vendor/github.com/andygrunwald/go-gerrit/changes.go +++ b/vendor/github.com/andygrunwald/go-gerrit/changes.go @@ -288,7 +288,7 @@ type ChangeInfo struct { Labels map[string]LabelInfo `json:"labels,omitempty"` PermittedLabels map[string][]string `json:"permitted_labels,omitempty"` RemovableReviewers []AccountInfo `json:"removable_reviewers,omitempty"` - Reviewers map[string][]AccountInfo `json:"removable_reviewers,omitempty"` + Reviewers map[string][]AccountInfo `json:"reviewers,omitempty"` Messages []ChangeMessageInfo `json:"messages,omitempty"` CurrentRevision string `json:"current_revision,omitempty"` Revisions map[string]RevisionInfo `json:"revisions,omitempty"` diff --git a/vendor/github.com/olebedev/config/doc.go b/vendor/github.com/olebedev/config/doc.go index d0ab6062..f1bd7f33 100644 --- a/vendor/github.com/olebedev/config/doc.go +++ b/vendor/github.com/olebedev/config/doc.go @@ -22,7 +22,7 @@ Let's start with a simple YAML file config.yml: We can parse it using ParseYaml(), which will return a *Config instance on success: - + file, err := ioutil.ReadFile("config.yml") if err != nil { panic(err) diff --git a/vendor/github.com/rivo/tview/application.go b/vendor/github.com/rivo/tview/application.go index 31821d9d..f8935781 100644 --- a/vendor/github.com/rivo/tview/application.go +++ b/vendor/github.com/rivo/tview/application.go @@ -41,8 +41,8 @@ type Application struct { // was drawn. afterDraw func(screen tcell.Screen) - // If this value is true, the application has entered suspended mode. - suspended bool + // Halts the event loop during suspended mode. + suspendMutex sync.Mutex } // NewApplication creates and returns a new application. @@ -103,28 +103,20 @@ func (a *Application) Run() error { // Start event loop. for { - a.Lock() + // Do not poll events during suspend mode + a.suspendMutex.Lock() + a.RLock() screen := a.screen - if a.suspended { - a.suspended = false // Clear previous suspended flag. - } - a.Unlock() + a.RUnlock() if screen == nil { + a.suspendMutex.Unlock() break } // Wait for next event. event := a.screen.PollEvent() + a.suspendMutex.Unlock() if event == nil { - a.Lock() - if a.suspended { - // This screen was renewed due to suspended mode. - a.suspended = false - a.Unlock() - continue // Resume. - } - a.Unlock() - // The screen was finalized. Exit the loop. break } @@ -158,9 +150,9 @@ func (a *Application) Run() error { } } case *tcell.EventResize: - a.Lock() + a.RLock() screen := a.screen - a.Unlock() + a.RUnlock() screen.Clear() a.Draw() } @@ -171,8 +163,8 @@ func (a *Application) Run() error { // Stop stops the application, causing Run() to return. func (a *Application) Stop() { - a.RLock() - defer a.RUnlock() + a.Lock() + defer a.Unlock() if a.screen == nil { return } @@ -188,17 +180,18 @@ func (a *Application) Stop() { // was called. If false is returned, the application was already suspended, // terminal UI mode was not exited, and "f" was not called. func (a *Application) Suspend(f func()) bool { - a.Lock() + a.RLock() - if a.suspended || a.screen == nil { - // Application is already suspended. - a.Unlock() + if a.screen == nil { + // Screen has not yet been initialized. + a.RUnlock() return false } // Enter suspended mode. - a.suspended = true - a.Unlock() + a.suspendMutex.Lock() + defer a.suspendMutex.Unlock() + a.RUnlock() a.Stop() // Deal with panics during suspended mode. Exit the program. diff --git a/vendor/github.com/xanzy/go-gitlab/issues.go b/vendor/github.com/xanzy/go-gitlab/issues.go index 411146a3..481721d9 100644 --- a/vendor/github.com/xanzy/go-gitlab/issues.go +++ b/vendor/github.com/xanzy/go-gitlab/issues.go @@ -310,7 +310,7 @@ type UpdateIssueOptions struct { Title *string `url:"title,omitempty" json:"title,omitempty"` Description *string `url:"description,omitempty" json:"description,omitempty"` Confidential *bool `url:"confidential,omitempty" json:"confidential,omitempty"` - AssigneeID *int `url:"assignee_id,omitempty" json:"assignee_id,omitempty"` + AssigneeIDs []int `url:"assignee_ids,omitempty" json:"assignee_ids,omitempty"` MilestoneID *int `url:"milestone_id,omitempty" json:"milestone_id,omitempty"` Labels Labels `url:"labels,comma,omitempty" json:"labels,omitempty"` StateEvent *string `url:"state_event,omitempty" json:"state_event,omitempty"`