set commit status for all commits in GH, not just pull requests
This commit is contained in:
parent
e935bed53e
commit
13a05a0106
2 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue