From 13a05a0106a92a4bbed388169f1be5eb112f74b3 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Mon, 8 Jun 2015 08:26:58 -0700 Subject: [PATCH] set commit status for all commits in GH, not just pull requests --- pkg/config/config.go | 4 ++++ pkg/remote/builtin/github/github.go | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index e68bf38fb..c0367cc63 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -56,6 +56,10 @@ type Config struct { Swarm bool `envconfig:"optional"` } + // Environment represents a set of global environment + // variable declarations that can be injected into + // build plugins. An example use case might be SMTP + // configuration. Environment []string `envconfig:"optional"` // Plugins represents a white-list of plugins diff --git a/pkg/remote/builtin/github/github.go b/pkg/remote/builtin/github/github.go index c10728bed..fcbe4448a 100644 --- a/pkg/remote/builtin/github/github.go +++ b/pkg/remote/builtin/github/github.go @@ -214,9 +214,7 @@ func (g *GitHub) Deactivate(u *common.User, r *common.Repo, link string) error { func (g *GitHub) Status(u *common.User, r *common.Repo, c *common.Commit) error { client := NewClient(g.API, u.Token, g.SkipVerify) - if len(c.PullRequest) == 0 { - return nil - } + link := fmt.Sprintf("%s/%v", r.Self, c.Sequence) status := getStatus(c.State) desc := getDesc(c.State)