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

Commit

Permalink
Bump github.com/google/go-github/ to v42
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-chrismc committed Jan 15, 2022
1 parent 7496936 commit 8af1c49
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 13 deletions.
6 changes: 3 additions & 3 deletions cmd/cpr/pending_review.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"time"

"github.com/google/go-github/v41/github"
"github.com/google/go-github/v42/github"
"github.com/prince-chrismc/conan-center-index-pending-review/v2/internal"
"github.com/prince-chrismc/conan-center-index-pending-review/v2/internal/format"
"github.com/prince-chrismc/conan-center-index-pending-review/v2/internal/stats"
Expand Down Expand Up @@ -44,10 +44,10 @@ func PendingReview(token string, dryRun bool) error {

var stats stats.Stats
var retval []*pending_review.PullRequestSummary
opt := &github.PullRequestListOptions{
opt := &pending_review.PullRequestListOptions{
Sort: "created",
Direction: "asc",
ListOptions: github.ListOptions{
ListOptions: pending_review.ListOptions{
Page: 0,
PerPage: 100,
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/ovm/opened_versus_merged.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"time"

"github.com/google/go-github/v41/github"
"github.com/google/go-github/v42/github"
"github.com/prince-chrismc/conan-center-index-pending-review/v2/internal"
"github.com/prince-chrismc/conan-center-index-pending-review/v2/internal/charts"
"github.com/prince-chrismc/conan-center-index-pending-review/v2/internal/duration"
Expand Down
2 changes: 1 addition & 1 deletion cmd/tir/time_in_review.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"time"

"github.com/google/go-github/v41/github"
"github.com/google/go-github/v42/github"
"github.com/prince-chrismc/conan-center-index-pending-review/v2/internal"
"github.com/prince-chrismc/conan-center-index-pending-review/v2/internal/charts"
"github.com/prince-chrismc/conan-center-index-pending-review/v2/internal/stats"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.15

require (
github.com/go-git/go-git/v5 v5.4.2
github.com/google/go-github/v41 v41.0.0
github.com/google/go-github/v42 v42.0.0
github.com/stretchr/testify v1.7.0
github.com/urfave/cli/v2 v2.3.0
github.com/wcharczuk/go-chart/v2 v2.1.0
Expand Down
7 changes: 5 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7/go.mod h1:z4/
github.com/acomagu/bufpipe v1.0.3/go.mod h1:mxdxdup/WdsKVreO5GpW4+M/1CE2sMG4jeGJ2sYmHc4=
github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c=
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
github.com/bradleyfalzon/ghinstallation/v2 v2.0.3/go.mod h1:tlgi+JWCXnKFx/Y4WtnDbZEINo31N5bcvnCoqieefmk=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
Expand Down Expand Up @@ -67,6 +68,7 @@ github.com/go-git/go-git/v5 v5.4.2/go.mod h1:gQ1kArt6d+n+BGd+/B/I74HwRTLhth2+zti
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg=
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 h1:DACJavvAHhabrF08vX0COfcOBJRhZ8lUbR+ZWIs0Y5g=
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k=
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
Expand Down Expand Up @@ -106,8 +108,9 @@ github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ=
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-github/v41 v41.0.0 h1:HseJrM2JFf2vfiZJ8anY2hqBjdfY1Vlj/K27ueww4gg=
github.com/google/go-github/v41 v41.0.0/go.mod h1:XgmCA5H323A9rtgExdTcnDkcqp6S30AVACCBDOonIxg=
github.com/google/go-github/v39 v39.0.0/go.mod h1:C1s8C5aCC9L+JXIYpJM5GYytdX52vC1bLvHEF1IhBrE=
github.com/google/go-github/v42 v42.0.0 h1:YNT0FwjPrEysRkLIiKuEfSvBPCGKphW5aS5PxwaoLec=
github.com/google/go-github/v42 v42.0.0/go.mod h1:jgg/jvyI0YlDOM1/ps6XYh04HNQ3vKf0CVko62/EhRg=
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
Expand Down
2 changes: 1 addition & 1 deletion internal/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"time"

git "github.com/go-git/go-git/v5/plumbing"
"github.com/google/go-github/v41/github"
"github.com/google/go-github/v42/github"
"github.com/prince-chrismc/conan-center-index-pending-review/v2/pkg/pending_review"
)

Expand Down
5 changes: 4 additions & 1 deletion pkg/pending_review/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"net/http"

"github.com/google/go-github/v41/github"
"github.com/google/go-github/v42/github"
)

// Response is a GitHub API response.
Expand All @@ -16,6 +16,9 @@ type PullRequest = github.PullRequest
// PullRequestReview represents a review of a pull request.
type PullRequestReview = github.PullRequestReview

// PullRequestListOptions specifies the optional parameters to the Pull Request service
type PullRequestListOptions = github.PullRequestListOptions

// Label represents a GitHub label on an Issue
type Label = github.Label

Expand Down
2 changes: 1 addition & 1 deletion pkg/pending_review/pull_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"time"

"github.com/google/go-github/v41/github"
"github.com/google/go-github/v42/github"
)

// Category describing the type of change being introduced by the pull request
Expand Down
2 changes: 1 addition & 1 deletion pkg/pending_review/pull_request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/google/go-github/v41/github"
"github.com/google/go-github/v42/github"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/pending_review/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"errors"
"time"

"github.com/google/go-github/v41/github"
"github.com/google/go-github/v42/github"
)

// RepositoryService handles communication with the repository related methods of the GitHub API
Expand Down

0 comments on commit 8af1c49

Please sign in to comment.