Repository: reviewdog/reviewdog
Pull request #2140 (2025-05-08 16:27:23)

fix(deps): update module github.com/google/go-github/v71 to v72
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/google/go-github/v71](https://redirect.github.com/google/go-github) | `v71.0.0` -> `v72.0.0` | [![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fgoogle%2fgo-github%2fv71/v72.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%2fv71/v72.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%2fv71/v71.0.0/v72.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%2fv71/v71.0.0/v72.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

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

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

[Compare Source](https://redirect.github.com/google/go-github/compare/v71.0.0...v72.0.0)

This release contains the following breaking API changes:

-   chore!: Remove support for Required Workflows ([#&#8203;3538](https://redirect.github.com/google/go-github/issues/3538))
-   fix!: Differentiate merge method of pull request and merge queue ([#&#8203;3559](https://redirect.github.com/google/go-github/issues/3559))
    BREAKING CHANGE: `MergeMethod*` consts have been split into: `PullRequestMergeMethod*` and `MergeQueueMergeMethod*`.
-   feat!: Add support for pagination options in rules API methods ([#&#8203;3562](https://redirect.github.com/google/go-github/issues/3562))
    BREAKING CHANGE: `GetRulesForBranch`, `GetAllRulesets`, and `GetAllRepositoryRulesets` now accept `opts`.

...and the following additional changes:

-   Bump go-github from v70 to v71 in /scrape ([#&#8203;3541](https://redirect.github.com/google/go-github/issues/3541))
-   build(deps): bump golang.org/x/net from 0.37.0 to 0.38.0 in /scrape ([#&#8203;3536](https://redirect.github.com/google/go-github/issues/3536))
-   build(deps): bump github.com/alecthomas/kong from 1.9.0 to 1.10.0 in /tools ([#&#8203;3542](https://redirect.github.com/google/go-github/issues/3542))
-   build(deps): bump golang.org/x/sync from 0.12.0 to 0.13.0 in /tools ([#&#8203;3543](https://redirect.github.com/google/go-github/issues/3543))
-   Add support for registry_package event ([#&#8203;3545](https://redirect.github.com/google/go-github/issues/3545))
-   build(deps): bump codecov/codecov-action from 5.4.0 to 5.4.2 ([#&#8203;3551](https://redirect.github.com/google/go-github/issues/3551))
-   build(deps): bump golang.org/x/net from 0.38.0 to 0.39.0 in /scrape ([#&#8203;3549](https://redirect.github.com/google/go-github/issues/3549))
-   build(deps): bump github.com/PuerkitoBio/goquery from 1.10.2 to 1.10.3 in /scrape ([#&#8203;3550](https://redirect.github.com/google/go-github/issues/3550))
-   feat: Add EPSS to Dependabot alerts ([#&#8203;3547](https://redirect.github.com/google/go-github/issues/3547))
-   Revert "build(deps): bump codecov/codecov-action from 5.4.0 to 5.4.2" ([#&#8203;3552](https://redirect.github.com/google/go-github/issues/3552))
-   feat: Add new fields and options to secret scanning structs ([#&#8203;3548](https://redirect.github.com/google/go-github/issues/3548))
-   build(deps): bump golang.org/x/net from 0.36.0 to 0.38.0 in /example in the go_modules group across 1 directory ([#&#8203;3553](https://redirect.github.com/google/go-github/issues/3553))
-   Add case-instensitive GetHeader for HookRequest & HookResponse ([#&#8203;3556](https://redirect.github.com/google/go-github/issues/3556))
-   Add issue Type to IssueRequest ([#&#8203;3567](https://redirect.github.com/google/go-github/issues/3567))
-   build(deps): bump golang.org/x/sync from 0.13.0 to 0.14.0 in /tools ([#&#8203;3568](https://redirect.github.com/google/go-github/issues/3568))
-   build(deps): bump github.com/getkin/kin-openapi from 0.131.0 to 0.132.0 in /tools ([#&#8203;3569](https://redirect.github.com/google/go-github/issues/3569))
-   Add ListCursorOptions to list Issues methods ([#&#8203;3570](https://redirect.github.com/google/go-github/issues/3570))
-   Bump version of go-github to v72.0.0 ([#&#8203;3571](https://redirect.github.com/google/go-github/issues/3571))

</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 was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/reviewdog/reviewdog).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC43LjEiLCJ1cGRhdGVkSW5WZXIiOiI0MC43LjEiLCJ0YXJnZXRCcmFuY2giOiJtYXN0ZXIiLCJsYWJlbHMiOlsicmVub3ZhdGUiXX0=-->



Patch:
diff --git a/cmd/reviewdog/main.go b/cmd/reviewdog/main.go
index 4e7162e4..c1057506 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/v71/github"
+	"github.com/google/go-github/v72/github"
 	"github.com/mattn/go-shellwords"
 	"github.com/reviewdog/errorformat/fmts"
 	gitlab "gitlab.com/gitlab-org/api/client-go"
diff --git a/doghouse/appengine/github.go b/doghouse/appengine/github.go
index 4a1ba949..d2de55bd 100644
--- a/doghouse/appengine/github.go
+++ b/doghouse/appengine/github.go
@@ -12,7 +12,7 @@ import (
 	"net/url"
 	"strings"
 
-	"github.com/google/go-github/v71/github"
+	"github.com/google/go-github/v72/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 0f1b479a..63f894d7 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/v71/github"
+	"github.com/google/go-github/v72/github"
 
 	"github.com/reviewdog/reviewdog/doghouse/server/storage"
 )
diff --git a/doghouse/server/doghouse.go b/doghouse/server/doghouse.go
index 906b20d9..ab2f4b1d 100644
--- a/doghouse/server/doghouse.go
+++ b/doghouse/server/doghouse.go
@@ -6,7 +6,7 @@ import (
 	"errors"
 	"fmt"
 
-	"github.com/google/go-github/v71/github"
+	"github.com/google/go-github/v72/github"
 
 	"github.com/reviewdog/reviewdog"
 	"github.com/reviewdog/reviewdog/diff"
diff --git a/doghouse/server/github.go b/doghouse/server/github.go
index d35fb0ec..84448623 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/v71/github"
+	"github.com/google/go-github/v72/github"
 )
 
 type NewGitHubClientOption struct {
diff --git a/go.mod b/go.mod
index eefee5b4..57b93023 100644
--- a/go.mod
+++ b/go.mod
@@ -11,7 +11,7 @@ require (
 	contrib.go.opencensus.io/exporter/stackdriver v0.13.12
 	github.com/bradleyfalzon/ghinstallation/v2 v2.16.0
 	github.com/google/go-cmp v0.7.0
-	github.com/google/go-github/v71 v71.0.0
+	github.com/google/go-github/v72 v72.0.0
 	github.com/haya14busa/go-actions-toolkit v0.0.0-20200105081403-ca0307860f01
 	github.com/haya14busa/go-sarif v0.0.0-20240630170108-a3ba8d79599f
 	github.com/haya14busa/secretbox v0.0.0-20180525171038-07c7ecf409f5
@@ -51,7 +51,6 @@ require (
 	github.com/golang-jwt/jwt/v4 v4.5.2 // indirect
 	github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
 	github.com/golang/protobuf v1.5.4 // indirect
-	github.com/google/go-github/v72 v72.0.0 // indirect
 	github.com/google/go-querystring v1.1.0 // indirect
 	github.com/google/s2a-go v0.1.8 // indirect
 	github.com/googleapis/enterprise-certificate-proxy v0.3.4 // indirect
diff --git a/go.sum b/go.sum
index 548eeab7..35bb13a0 100644
--- a/go.sum
+++ b/go.sum
@@ -168,8 +168,6 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
 github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
 github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
 github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
-github.com/google/go-github/v71 v71.0.0 h1:Zi16OymGKZZMm8ZliffVVJ/Q9YZreDKONCr+WUd0Z30=
-github.com/google/go-github/v71 v71.0.0/go.mod h1:URZXObp2BLlMjwu0O8g4y6VBneUj2bCHgnI8FfgZ51M=
 github.com/google/go-github/v72 v72.0.0 h1:FcIO37BLoVPBO9igQQ6tStsv2asG4IPcYFi655PPvBM=
 github.com/google/go-github/v72 v72.0.0/go.mod h1:WWtw8GMRiL62mvIquf1kO3onRHeWWKmK01qdCY8c5fg=
 github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
diff --git a/scripts/trigger-depup/go.mod b/scripts/trigger-depup/go.mod
index 8387cc50..2c067ccd 100644
--- a/scripts/trigger-depup/go.mod
+++ b/scripts/trigger-depup/go.mod
@@ -5,7 +5,7 @@ go 1.23.0
 toolchain go1.24.3
 
 require (
-	github.com/google/go-github/v71 v71.0.0
+	github.com/google/go-github/v72 v72.0.0
 	golang.org/x/oauth2 v0.30.0
 )
 
diff --git a/scripts/trigger-depup/go.sum b/scripts/trigger-depup/go.sum
index d27d1637..a5d7b700 100644
--- a/scripts/trigger-depup/go.sum
+++ b/scripts/trigger-depup/go.sum
@@ -1,8 +1,8 @@
 github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
 github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
 github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
-github.com/google/go-github/v71 v71.0.0 h1:Zi16OymGKZZMm8ZliffVVJ/Q9YZreDKONCr+WUd0Z30=
-github.com/google/go-github/v71 v71.0.0/go.mod h1:URZXObp2BLlMjwu0O8g4y6VBneUj2bCHgnI8FfgZ51M=
+github.com/google/go-github/v72 v72.0.0 h1:FcIO37BLoVPBO9igQQ6tStsv2asG4IPcYFi655PPvBM=
+github.com/google/go-github/v72 v72.0.0/go.mod h1:WWtw8GMRiL62mvIquf1kO3onRHeWWKmK01qdCY8c5fg=
 github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
 github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
 golang.org/x/oauth2 v0.30.0 h1:dnDm7JmhM45NNpd8FDDeLhK6FwqbOf4MLCM9zb1BOHI=
diff --git a/scripts/trigger-depup/main.go b/scripts/trigger-depup/main.go
index 2164b014..62a7cede 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/v71/github"
+	"github.com/google/go-github/v72/github"
 	"golang.org/x/oauth2"
 )
 
diff --git a/service/github/check.go b/service/github/check.go
index 6628583b..10755607 100644
--- a/service/github/check.go
+++ b/service/github/check.go
@@ -9,7 +9,7 @@ import (
 	"sync"
 	"time"
 
-	"github.com/google/go-github/v71/github"
+	"github.com/google/go-github/v72/github"
 	"github.com/reviewdog/reviewdog"
 	"github.com/reviewdog/reviewdog/cienv"
 	"github.com/reviewdog/reviewdog/filter"
diff --git a/service/github/diff.go b/service/github/diff.go
index 955c03ee..2d4434b0 100644
--- a/service/github/diff.go
+++ b/service/github/diff.go
@@ -8,7 +8,7 @@ import (
 	"os"
 	"os/exec"
 
-	"github.com/google/go-github/v71/github"
+	"github.com/google/go-github/v72/github"
 	"github.com/reviewdog/reviewdog"
 )
 
diff --git a/service/github/github.go b/service/github/github.go
index de770ff1..8d525a6c 100644
--- a/service/github/github.go
+++ b/service/github/github.go
@@ -13,7 +13,7 @@ import (
 	"strings"
 	"sync"
 
-	"github.com/google/go-github/v71/github"
+	"github.com/google/go-github/v72/github"
 	"google.golang.org/protobuf/proto"
 
 	"github.com/reviewdog/reviewdog"


Test patch:
diff --git a/doghouse/server/doghouse_test.go b/doghouse/server/doghouse_test.go
index ad7c1793..c152747a 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/v71/github"
+	"github.com/google/go-github/v72/github"
 	"github.com/reviewdog/reviewdog/doghouse"
 	"github.com/reviewdog/reviewdog/proto/rdf"
 )
diff --git a/service/github/check_test.go b/service/github/check_test.go
index ea721530..7363482f 100644
--- a/service/github/check_test.go
+++ b/service/github/check_test.go
@@ -11,7 +11,7 @@ import (
 	"testing"
 
 	"github.com/google/go-cmp/cmp"
-	"github.com/google/go-github/v71/github"
+	"github.com/google/go-github/v72/github"
 	"github.com/reviewdog/reviewdog"
 	"github.com/reviewdog/reviewdog/filter"
 	"github.com/reviewdog/reviewdog/proto/rdf"
diff --git a/service/github/diff_test.go b/service/github/diff_test.go
index aa020370..45a1cbc3 100644
--- a/service/github/diff_test.go
+++ b/service/github/diff_test.go
@@ -9,7 +9,7 @@ import (
 	"strings"
 	"testing"
 
-	"github.com/google/go-github/v71/github"
+	"github.com/google/go-github/v72/github"
 )
 
 const sampleDiff = `--- a/sample.old.txt	2016-10-13 05:09:35.820791185 +0900
diff --git a/service/github/github_test.go b/service/github/github_test.go
index 0c24fc4c..8508db24 100644
--- a/service/github/github_test.go
+++ b/service/github/github_test.go
@@ -12,7 +12,7 @@ import (
 	"strings"
 	"testing"
 
-	"github.com/google/go-github/v71/github"
+	"github.com/google/go-github/v72/github"
 	"github.com/kylelemons/godebug/pretty"
 	"golang.org/x/oauth2"