Skip to content

Commit

Permalink
Dereference matrix values for travis builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Matt committed Feb 25, 2018
1 parent 2956e5f commit 45c4552
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion travis.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const (
var (
travisTestEndpoint = "https://travis-ci.org/thefederationinfo/federation-tests/builds/%d"
travisTestDescription = "Continuous integration tests for the federation network"
travisTestContext = "Federation Test Suite"
travisTestContext = "Federation Suite"
travisEndpoint = "https://api.travis-ci.org/repo/"
travisSlug = "thefederationinfo%2Ffederation-tests"
travisRequests = travisEndpoint + travisSlug + "/requests"
Expand Down
10 changes: 6 additions & 4 deletions webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,12 @@ func webhook(w http.ResponseWriter, r *http.Request) {
}

var request TravisRequest
go request.Run(token, []string{fmt.Sprintf(
`"PRREPO=%s PRSHA=%s"`,
pr.Head.Repo.CloneURL,
pr.Head.SHA)}, pr)
go request.Run(token,
[]string{fmt.Sprintf(
`"PRREPO=%s PRSHA=%s"`,
*pr.Head.Repo.CloneURL,
*pr.Head.SHA,
)}, pr)

fmt.Fprintf(w, `{}`)
}

0 comments on commit 45c4552

Please sign in to comment.