Repository: reviewdog/reviewdog
Pull request #1686 (2024-03-11 05:53:27)

fix(deps): update module github.com/google/go-github/v58 to v60
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/google/go-github/v58](https://togithub.com/google/go-github) | `v58.0.0` -> `v60.0.0` | [![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fgoogle%2fgo-github%2fv58/v60.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fgoogle%2fgo-github%2fv58/v60.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fgoogle%2fgo-github%2fv58/v58.0.0/v60.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fgoogle%2fgo-github%2fv58/v58.0.0/v60.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>google/go-github (github.com/google/go-github/v58)</summary>

### [`v60.0.0`](https://togithub.com/google/go-github/releases/tag/v60.0.0)

[Compare Source](https://togithub.com/google/go-github/compare/v59.0.0...v60.0.0)

This release contains the following breaking API changes:

-   Turn RequiredStatusChecks Checks and Contexts into pointers ([#&#8203;3070](https://togithub.com/google/go-github/issues/3070))
-   feat!: Change Hook.Config field from map to \*HookConfig ([#&#8203;3073](https://togithub.com/google/go-github/issues/3073))

...and the following additional changes:

-   Bump go-github from v58 to v59 in /scrape ([#&#8203;3069](https://togithub.com/google/go-github/issues/3069))
-   Bump golang.org/x/net from 0.20.0 to 0.21.0 in /scrape ([#&#8203;3071](https://togithub.com/google/go-github/issues/3071))
-   Update workflow and tools to use Go 1.22 and 1.21 ([#&#8203;3074](https://togithub.com/google/go-github/issues/3074))
-   Add test case for JSON resource marshaling ([#&#8203;3075](https://togithub.com/google/go-github/issues/3075))
-   Add test case for JSON resource marshaling ([#&#8203;3076](https://togithub.com/google/go-github/issues/3076))
-   Rename function parameters to match usage as url parameters ([#&#8203;3078](https://togithub.com/google/go-github/issues/3078))
-   Add test case for JSON resource marshaling ([#&#8203;3080](https://togithub.com/google/go-github/issues/3080))
-   Bump github.com/PuerkitoBio/goquery from 1.8.1 to 1.9.0 in /scrape ([#&#8203;3085](https://togithub.com/google/go-github/issues/3085))
-   Bump codecov/codecov-action from 4.0.1 to 4.0.2 ([#&#8203;3084](https://togithub.com/google/go-github/issues/3084))
-   Bump version of go-github to v60.0.0 ([#&#8203;3086](https://togithub.com/google/go-github/issues/3086))

### [`v59.0.0`](https://togithub.com/google/go-github/releases/tag/v59.0.0)

[Compare Source](https://togithub.com/google/go-github/compare/v58.0.0...v59.0.0)

This release contains the following breaking API changes:

-   Add suspended as option to AdminService.CreateUser() ([#&#8203;3049](https://togithub.com/google/go-github/issues/3049))

...and the following additional changes:

-   Bump go-github from v57 to v58 in /scrape ([#&#8203;3046](https://togithub.com/google/go-github/issues/3046))
-   Fix issue in AcceptedError handling for UploadSarif ([#&#8203;3047](https://togithub.com/google/go-github/issues/3047))
-   Fix typos ([#&#8203;3048](https://togithub.com/google/go-github/issues/3048))
-   Add MergedAt field to PullRequestLinks ([#&#8203;3053](https://togithub.com/google/go-github/issues/3053))
-   Add default workflow permissions for enterprise/org/repo ([#&#8203;3054](https://togithub.com/google/go-github/issues/3054))
-   Bump actions/cache from 3 to 4 ([#&#8203;3055](https://togithub.com/google/go-github/issues/3055))
-   Add Topics to EditChange struct ([#&#8203;3057](https://togithub.com/google/go-github/issues/3057))
-   Add list repo org variables and secrets ([#&#8203;3058](https://togithub.com/google/go-github/issues/3058))
-   Fix leaked client transport on copy ([#&#8203;3051](https://togithub.com/google/go-github/issues/3051))
-   Bump codecov/codecov-action from 3.1.4 to 3.1.5 ([#&#8203;3061](https://togithub.com/google/go-github/issues/3061))
-   Bump github.com/getkin/kin-openapi from 0.122.0 to 0.123.0 in /tools ([#&#8203;3062](https://togithub.com/google/go-github/issues/3062))
-   Add custom properties on Repository and PushEventRepository ([#&#8203;3065](https://togithub.com/google/go-github/issues/3065))
-   Add support for deployment protection rules ([#&#8203;3050](https://togithub.com/google/go-github/issues/3050))
-   Bump codecov/codecov-action from 3.1.5 to 4.0.1 ([#&#8203;3066](https://togithub.com/google/go-github/issues/3066))
-   Add ListWorkflowJobsAttempt method to ActionsService ([#&#8203;3060](https://togithub.com/google/go-github/issues/3060))
-   Bump version of go-github to v59.0.0 ([#&#8203;3068](https://togithub.com/google/go-github/issues/3068))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/reviewdog/reviewdog).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMzAuMCIsInVwZGF0ZWRJblZlciI6IjM3LjIzMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->



Patch:
diff --git a/cmd/reviewdog/main.go b/cmd/reviewdog/main.go
index c53698f0..92e7d13e 100644
--- a/cmd/reviewdog/main.go
+++ b/cmd/reviewdog/main.go
@@ -20,7 +20,7 @@ import (
 	"golang.org/x/build/gerrit"
 	"golang.org/x/oauth2"
 
-	"github.com/google/go-github/v58/github"
+	"github.com/google/go-github/v60/github"
 	"github.com/mattn/go-shellwords"
 	"github.com/reviewdog/errorformat/fmts"
 	"github.com/xanzy/go-gitlab"
diff --git a/doghouse/appengine/github.go b/doghouse/appengine/github.go
index adf4c12c..c9601a84 100644
--- a/doghouse/appengine/github.go
+++ b/doghouse/appengine/github.go
@@ -12,7 +12,7 @@ import (
 	"net/url"
 	"strings"
 
-	"github.com/google/go-github/v58/github"
+	"github.com/google/go-github/v60/github"
 	"github.com/justinas/nosurf"
 	"github.com/vvakame/sdlog/aelog"
 	"golang.org/x/oauth2"
diff --git a/doghouse/appengine/github_webhook.go b/doghouse/appengine/github_webhook.go
index c7442bcd..7538c307 100644
--- a/doghouse/appengine/github_webhook.go
+++ b/doghouse/appengine/github_webhook.go
@@ -6,7 +6,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/google/go-github/v58/github"
+	"github.com/google/go-github/v60/github"
 
 	"github.com/reviewdog/reviewdog/doghouse/server/storage"
 )
diff --git a/doghouse/client/github_client.go b/doghouse/client/github_client.go
index 24343040..50cbab2d 100644
--- a/doghouse/client/github_client.go
+++ b/doghouse/client/github_client.go
@@ -3,7 +3,7 @@ package client
 import (
 	"context"
 
-	"github.com/google/go-github/v58/github"
+	"github.com/google/go-github/v60/github"
 
 	"github.com/reviewdog/reviewdog/doghouse"
 	"github.com/reviewdog/reviewdog/doghouse/server"
diff --git a/doghouse/server/doghouse.go b/doghouse/server/doghouse.go
index 893cc4c2..596607fc 100644
--- a/doghouse/server/doghouse.go
+++ b/doghouse/server/doghouse.go
@@ -8,7 +8,7 @@ import (
 	"strings"
 	"time"
 
-	"github.com/google/go-github/v58/github"
+	"github.com/google/go-github/v60/github"
 
 	"github.com/reviewdog/reviewdog/diff"
 	"github.com/reviewdog/reviewdog/doghouse"
diff --git a/doghouse/server/github.go b/doghouse/server/github.go
index 293b7777..e0a1fae0 100644
--- a/doghouse/server/github.go
+++ b/doghouse/server/github.go
@@ -6,7 +6,7 @@ import (
 	"net/http"
 
 	"github.com/bradleyfalzon/ghinstallation/v2"
-	"github.com/google/go-github/v58/github"
+	"github.com/google/go-github/v60/github"
 )
 
 type NewGitHubClientOption struct {
diff --git a/doghouse/server/github_checker.go b/doghouse/server/github_checker.go
index c6aa2355..3051f0ff 100644
--- a/doghouse/server/github_checker.go
+++ b/doghouse/server/github_checker.go
@@ -5,7 +5,7 @@ import (
 	"io"
 	"time"
 
-	"github.com/google/go-github/v58/github"
+	"github.com/google/go-github/v60/github"
 	"github.com/vvakame/sdlog/aelog"
 )
 
diff --git a/go.mod b/go.mod
index a49a28dd..2ac33b57 100644
--- a/go.mod
+++ b/go.mod
@@ -10,7 +10,7 @@ require (
 	github.com/bradleyfalzon/ghinstallation/v2 v2.9.0
 	github.com/golang/protobuf v1.5.4
 	github.com/google/go-cmp v0.6.0
-	github.com/google/go-github/v58 v58.0.0
+	github.com/google/go-github/v60 v60.0.0
 	github.com/haya14busa/go-actions-toolkit v0.0.0-20200105081403-ca0307860f01
 	github.com/haya14busa/secretbox v0.0.0-20180525171038-07c7ecf409f5
 	github.com/justinas/nosurf v1.1.1
diff --git a/go.sum b/go.sum
index 77227ce9..a1cb208a 100644
--- a/go.sum
+++ b/go.sum
@@ -163,8 +163,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
 github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
 github.com/google/go-github/v57 v57.0.0 h1:L+Y3UPTY8ALM8x+TV0lg+IEBI+upibemtBD8Q9u7zHs=
 github.com/google/go-github/v57 v57.0.0/go.mod h1:s0omdnye0hvK/ecLvpsGfJMiRt85PimQh4oygmLIxHw=
-github.com/google/go-github/v58 v58.0.0 h1:Una7GGERlF/37XfkPwpzYJe0Vp4dt2k1kCjlxwjIvzw=
-github.com/google/go-github/v58 v58.0.0/go.mod h1:k4hxDKEfoWpSqFlc8LTpGd9fu2KrV1YAa6Hi6FmDNY4=
+github.com/google/go-github/v60 v60.0.0 h1:oLG98PsLauFvvu4D/YPxq374jhSxFYdzQGNCyONLfn8=
+github.com/google/go-github/v60 v60.0.0/go.mod h1:ByhX2dP9XT9o/ll2yXAu2VD8l5eNVg8hD4Cr0S/LmQk=
 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=
diff --git a/scripts/trigger-depup/go.mod b/scripts/trigger-depup/go.mod
index 0e20dd8a..7a136378 100644
--- a/scripts/trigger-depup/go.mod
+++ b/scripts/trigger-depup/go.mod
@@ -3,7 +3,6 @@ module github.com/reviewdog/reviewdog/scripts/trigger-depup
 go 1.21
 
 require (
-	github.com/google/go-github/v58 v58.0.0
 	github.com/google/go-github/v60 v60.0.0
 	golang.org/x/oauth2 v0.18.0
 )
diff --git a/scripts/trigger-depup/go.sum b/scripts/trigger-depup/go.sum
index ba373802..12d950e7 100644
--- a/scripts/trigger-depup/go.sum
+++ b/scripts/trigger-depup/go.sum
@@ -6,8 +6,7 @@ github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
 github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
 github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
 github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
-github.com/google/go-github/v58 v58.0.0 h1:Una7GGERlF/37XfkPwpzYJe0Vp4dt2k1kCjlxwjIvzw=
-github.com/google/go-github/v58 v58.0.0/go.mod h1:k4hxDKEfoWpSqFlc8LTpGd9fu2KrV1YAa6Hi6FmDNY4=
+github.com/google/go-github/v60 v60.0.0 h1:oLG98PsLauFvvu4D/YPxq374jhSxFYdzQGNCyONLfn8=
 github.com/google/go-github/v60 v60.0.0/go.mod h1:ByhX2dP9XT9o/ll2yXAu2VD8l5eNVg8hD4Cr0S/LmQk=
 github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
 github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
diff --git a/scripts/trigger-depup/main.go b/scripts/trigger-depup/main.go
index f654a3e8..d5d09961 100644
--- a/scripts/trigger-depup/main.go
+++ b/scripts/trigger-depup/main.go
@@ -10,7 +10,7 @@ import (
 	"os"
 	"strings"
 
-	"github.com/google/go-github/v58/github"
+	"github.com/google/go-github/v60/github"
 	"golang.org/x/oauth2"
 )
 
diff --git a/service/github/github.go b/service/github/github.go
index a2c69fcf..b73511d1 100644
--- a/service/github/github.go
+++ b/service/github/github.go
@@ -11,7 +11,7 @@ import (
 	"strings"
 	"sync"
 
-	"github.com/google/go-github/v58/github"
+	"github.com/google/go-github/v60/github"
 
 	"github.com/reviewdog/reviewdog"
 	"github.com/reviewdog/reviewdog/cienv"


Test patch:
diff --git a/doghouse/server/doghouse_test.go b/doghouse/server/doghouse_test.go
index e1cf46f0..eb14db47 100644
--- a/doghouse/server/doghouse_test.go
+++ b/doghouse/server/doghouse_test.go
@@ -9,7 +9,7 @@ import (
 	"testing"
 
 	"github.com/google/go-cmp/cmp"
-	"github.com/google/go-github/v58/github"
+	"github.com/google/go-github/v60/github"
 
 	"github.com/reviewdog/reviewdog/doghouse"
 	"github.com/reviewdog/reviewdog/filter"
diff --git a/service/github/github_test.go b/service/github/github_test.go
index 0d449502..f359d40c 100644
--- a/service/github/github_test.go
+++ b/service/github/github_test.go
@@ -10,7 +10,7 @@ import (
 	"strings"
 	"testing"
 
-	"github.com/google/go-github/v58/github"
+	"github.com/google/go-github/v60/github"
 	"github.com/kylelemons/godebug/pretty"
 	"golang.org/x/oauth2"