From 79f5c6e76668604704fa43dbdf0cb0ecb6f8e275 Mon Sep 17 00:00:00 2001 From: Javier Campanini Date: Fri, 19 Oct 2018 08:38:29 -0400 Subject: [PATCH] use branch from ref and not label (#23) --- server/handler/base.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/handler/base.go b/server/handler/base.go index 91a8729d..24e5181f 100644 --- a/server/handler/base.go +++ b/server/handler/base.go @@ -81,7 +81,7 @@ func (b *Base) PostStatus(ctx context.Context, client *github.Client, pr *github publicURL := strings.TrimSuffix(b.BaseConfig.PublicURL, "/") detailsURL := fmt.Sprintf("%s/details/%s/%s/%d", publicURL, owner, repo, pr.GetNumber()) - contextWithBranch := fmt.Sprintf("%s: %s", b.PullOpts.StatusCheckContext, pr.GetBase().GetLabel()) + contextWithBranch := fmt.Sprintf("%s: %s", b.PullOpts.StatusCheckContext, pr.GetBase().GetRef()) status := &github.RepoStatus{ Context: &contextWithBranch, State: &state,