Merge pull request #268 from nightvisi0n/fix_go-github-api-break

fix api breaking of google/go-github
This commit is contained in:
Matej Kramny 2017-02-21 12:52:42 -08:00 committed by GitHub
commit d6f12251c6

View File

@ -10,6 +10,7 @@ import (
"path/filepath"
"runtime"
"time"
"context"
"github.com/google/go-github/github"
)
@ -96,7 +97,7 @@ func findAsset(release *github.RepositoryRelease) *github.ReleaseAsset {
func CheckUpdate(version string) error {
// fetch releases
gh := github.NewClient(nil)
releases, _, err := gh.Repositories.ListReleases("ansible-semaphore", "semaphore", nil)
releases, _, err := gh.Repositories.ListReleases(context.TODO(), "ansible-semaphore", "semaphore", nil)
if err != nil {
return err
}