mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-21 07:49:34 +01:00
Merge pull request #268 from nightvisi0n/fix_go-github-api-break
fix api breaking of google/go-github
This commit is contained in:
commit
d6f12251c6
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user