Skip to content

Commit 4fba59e

Browse files
KyleJuKyle Ju
andauthored
Upgrade to go-github v33 (#2405)
* Upgrade to go-github v33 * Remove HeadSHA Co-authored-by: Kyle Ju <[email protected]>
1 parent 2b38c03 commit 4fba59e

28 files changed

+37
-39
lines changed

api/checks/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"net/url"
1313
"time"
1414

15-
"github.com/google/go-github/v32/github"
15+
"github.com/google/go-github/v33/github"
1616
"github.com/web-platform-tests/wpt.fyi/api/checks/summaries"
1717
"github.com/web-platform-tests/wpt.fyi/shared"
1818
)

api/checks/jwt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"time"
1818

1919
jwt "github.com/dgrijalva/jwt-go"
20-
"github.com/google/go-github/v32/github"
20+
"github.com/google/go-github/v33/github"
2121
"github.com/web-platform-tests/wpt.fyi/shared"
2222
"golang.org/x/oauth2"
2323
)

api/checks/mock_checks/api_mock.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/checks/runs.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"fmt"
1010
"time"
1111

12-
"github.com/google/go-github/v32/github"
12+
"github.com/google/go-github/v33/github"
1313
"github.com/web-platform-tests/wpt.fyi/api/checks/summaries"
1414
"github.com/web-platform-tests/wpt.fyi/shared"
1515
)
@@ -88,8 +88,8 @@ func getExistingCheckRuns(ctx context.Context, suite shared.CheckSuite) ([]*gith
8888
}
8989

9090
var runs []*github.CheckRun
91-
options := github.ListCheckRunsOptions {
92-
ListOptions: github.ListOptions {
91+
options := github.ListCheckRunsOptions{
92+
ListOptions: github.ListOptions{
9393
// 100 is the maximum allowed items per page; see
9494
// https://developer.github.com/v3/guides/traversing-with-pagination/#changing-the-number-of-items-received
9595
PerPage: 100,
@@ -135,7 +135,6 @@ func updateExistingCheckRunSummary(ctx context.Context, summary summaries.Summar
135135
title := state.Title()
136136
opts := github.UpdateCheckRunOptions{
137137
Name: state.Name(),
138-
HeadSHA: &state.HeadSHA,
139138
DetailsURL: &detailsURLStr,
140139
Status: &state.Status,
141140
Conclusion: state.Conclusion,

api/checks/summaries/actions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
package summaries
66

7-
import "github.com/google/go-github/v32/github"
7+
import "github.com/google/go-github/v33/github"
88

99
// RecomputeAction is an action that can be taken to
1010
// trigger a recompute of the diff, against the latest

api/checks/summaries/actions_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ package summaries
99
import (
1010
"testing"
1111

12-
"github.com/google/go-github/v32/github"
12+
"github.com/google/go-github/v33/github"
1313
"github.com/stretchr/testify/assert"
1414
)
1515

api/checks/summaries/compile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
mapset "github.com/deckarep/golang-set"
1717
"github.com/gobuffalo/packr/v2"
1818

19-
"github.com/google/go-github/v32/github"
19+
"github.com/google/go-github/v33/github"
2020
"github.com/web-platform-tests/wpt.fyi/shared"
2121
)
2222

api/checks/summaries/completed.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
package summaries
66

77
import (
8-
"github.com/google/go-github/v32/github"
8+
"github.com/google/go-github/v33/github"
99
"github.com/web-platform-tests/wpt.fyi/shared"
1010
)
1111

api/checks/summaries/pending.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
package summaries
66

7-
import "github.com/google/go-github/v32/github"
7+
import "github.com/google/go-github/v33/github"
88

99
// Pending is the struct for pending.md.
1010
type Pending struct {

api/checks/summaries/regressed.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
package summaries
66

77
import (
8-
"github.com/google/go-github/v32/github"
8+
"github.com/google/go-github/v33/github"
99
"github.com/web-platform-tests/wpt.fyi/shared"
1010
)
1111

0 commit comments

Comments
 (0)