set commit status for all commits in GH, not just pull requests

This commit is contained in:
Brad Rydzewski 2015-06-08 08:26:58 -07:00
parent e935bed53e
commit 13a05a0106
2 changed files with 5 additions and 3 deletions

View file

@ -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

View file

@ -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)