Do bump go-github in codebase to fix build error in CI builds (#853)

This commit is contained in:
Yusuke Kuoka 2021-09-30 10:35:24 +09:00 committed by GitHub
parent 24224613f3
commit 1bc1712519
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ import (
"time"
"github.com/actions-runner-controller/actions-runner-controller/github"
gogithub "github.com/google/go-github/v36/github"
gogithub "github.com/google/go-github/v37/github"
)
type server struct {
@ -126,7 +126,7 @@ OUTER:
s.Logf("Received %T at %s: %v", payload, deliveredAt, payload)
if deliveredAt.After(pos.deliveredAt) {
pos.deliveredAt = deliveredAt
pos.deliveredAt = deliveredAt.Time
}
if id > pos.id {
@ -142,7 +142,7 @@ OUTER:
}
sort.Slice(deliveries, func(a, b int) bool {
return deliveries[b].GetDeliveredAt().After(deliveries[a].GetDeliveredAt())
return deliveries[b].GetDeliveredAt().After(deliveries[a].GetDeliveredAt().Time)
})
var payloads [][]byte