Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
[http-api] update code for new github client API
Browse files Browse the repository at this point in the history
  • Loading branch information
lewurm committed Mar 13, 2017
1 parent 86fa4c1 commit 2bf8d8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion http-api/db.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"context"
"encoding/json"
"fmt"
"time"
Expand Down Expand Up @@ -46,7 +47,7 @@ func ensureProductExists(database *pgx.Tx, product Product) (string, *requestErr
return "", badRequestError("Unknown product")
}

commit, _, err := githubClient.Git.GetCommit(owner, repo, product.Commit)
commit, _, err := githubClient.Git.GetCommit(context.Background(), owner, repo, product.Commit)
if err == nil {
sha = *commit.SHA
commitDate = *commit.Committer.Date
Expand Down

0 comments on commit 2bf8d8f

Please sign in to comment.