Skip to content

Commit

Permalink
use branch from ref and not label (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcampanini committed Oct 19, 2018
1 parent 1505863 commit 79f5c6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/handler/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 79f5c6e

Please sign in to comment.