Repository: reviewdog/reviewdog
Pull request #1025 (2021-08-11 11:58:49)

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

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/google/go-github/v37](https://togithub.com/google/go-github) | require | major | `v37.0.0` -> `v38.0.0` |

---

### Release Notes

<details>
<summary>google/go-github</summary>

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

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

This release contains the following breaking API changes:

-   Add ListOptions to GetCommit and CompareCommits to support pagination ([#&#8203;1960](https://togithub.com/google/go-github/issues/1960))
-   Fix deprecated state/open field ([#&#8203;2017](https://togithub.com/google/go-github/issues/2017))

and the following additional changes:

-   Add RequiredConversationResolution ProtectionRequest field ([#&#8203;1959](https://togithub.com/google/go-github/issues/1959))
-   Add missing CreatedAt and UpdatedAt fields to CheckSuite. ([#&#8203;1983](https://togithub.com/google/go-github/issues/1983))
-   Add support for listing and getting repository/organization webhook deliveries ([#&#8203;1934](https://togithub.com/google/go-github/issues/1934))
-   Expose event message headers, introduce a new way to read the body from an `io.Reader` ([#&#8203;1955](https://togithub.com/google/go-github/issues/1955))
-   Add allows_public_repositories to actions_runner_group ([#&#8203;1998](https://togithub.com/google/go-github/issues/1998))
-   Add methods to add and remove repos for actions on org level ([#&#8203;1997](https://togithub.com/google/go-github/issues/1997))
-   Add new GitHub code scanning Alert fields ([#&#8203;2013](https://togithub.com/google/go-github/issues/2013))
-   Add Client method ([#&#8203;2016](https://togithub.com/google/go-github/issues/2016))
-   Add avatar_url field to RepoStatus ([#&#8203;2021](https://togithub.com/google/go-github/issues/2021))
-   Add Slug field to AppConfig ([#&#8203;2029](https://togithub.com/google/go-github/issues/2029))
-   Add TokenExpiration to Response ([#&#8203;2031](https://togithub.com/google/go-github/issues/2031))

plus the following test- or documentation-only changes:

-   Add test cases for JSON resource marshaling ([#&#8203;1961](https://togithub.com/google/go-github/issues/1961))
-   Add test cases for JSON resource marshaling ([#&#8203;1965](https://togithub.com/google/go-github/issues/1965))
-   Add test cases for JSON resource marshaling ([#&#8203;1966](https://togithub.com/google/go-github/issues/1966))
-   Add test cases for JSON resource marshaling ([#&#8203;1967](https://togithub.com/google/go-github/issues/1967))
-   Add test cases for JSON resource marshaling ([#&#8203;1968](https://togithub.com/google/go-github/issues/1968))
-   Add test cases for JSON resource marshaling ([#&#8203;1969](https://togithub.com/google/go-github/issues/1969))
-   Add test cases for JSON resource marshaling ([#&#8203;1970](https://togithub.com/google/go-github/issues/1970))
-   Add test cases for JSON resource marshaling ([#&#8203;1971](https://togithub.com/google/go-github/issues/1971))
-   Add test cases for JSON resource marshaling ([#&#8203;1972](https://togithub.com/google/go-github/issues/1972))
-   Add test cases for JSON resource marshaling ([#&#8203;1973](https://togithub.com/google/go-github/issues/1973))
-   Add test cases for JSON resource marshaling ([#&#8203;1974](https://togithub.com/google/go-github/issues/1974))
-   Add test cases for JSON resource marshaling ([#&#8203;1975](https://togithub.com/google/go-github/issues/1975))
-   Add test cases for JSON resource marshaling ([#&#8203;1976](https://togithub.com/google/go-github/issues/1976))
-   Add test cases for JSON resource marshaling ([#&#8203;1977](https://togithub.com/google/go-github/issues/1977))
-   Add test cases for JSON resource marshaling ([#&#8203;1978](https://togithub.com/google/go-github/issues/1978))
-   Add test cases for JSON resource marshaling ([#&#8203;1979](https://togithub.com/google/go-github/issues/1979))
-   Add test cases for JSON resource marshaling ([#&#8203;1981](https://togithub.com/google/go-github/issues/1981))
-   Add test cases for JSON resource marshaling ([#&#8203;1982](https://togithub.com/google/go-github/issues/1982))
-   Add test cases for JSON resource marshaling ([#&#8203;1984](https://togithub.com/google/go-github/issues/1984))
-   Add test cases for JSON resource marshaling ([#&#8203;1985](https://togithub.com/google/go-github/issues/1985))
-   Add test cases for JSON resource marshaling ([#&#8203;1986](https://togithub.com/google/go-github/issues/1986))
-   Add test cases for JSON resource marshaling ([#&#8203;1987](https://togithub.com/google/go-github/issues/1987))
-   Add test cases for JSON resource marshaling ([#&#8203;1988](https://togithub.com/google/go-github/issues/1988))
-   Add test cases for JSON resource marshaling ([#&#8203;1989](https://togithub.com/google/go-github/issues/1989))
-   Add test cases for JSON resource marshaling ([#&#8203;1990](https://togithub.com/google/go-github/issues/1990))
-   Add test cases for JSON resource marshaling ([#&#8203;1991](https://togithub.com/google/go-github/issues/1991))
-   Add test cases for JSON resource marshaling ([#&#8203;1992](https://togithub.com/google/go-github/issues/1992))
-   Add test cases for JSON resource marshaling ([#&#8203;1994](https://togithub.com/google/go-github/issues/1994))
-   Add test cases for JSON resource marshaling ([#&#8203;2000](https://togithub.com/google/go-github/issues/2000))
-   Add test cases for JSON resource marshaling ([#&#8203;2001](https://togithub.com/google/go-github/issues/2001))
-   Make test names consistent ([#&#8203;2002](https://togithub.com/google/go-github/issues/2002))
-   Add test cases for JSON resource marshaling ([#&#8203;2003](https://togithub.com/google/go-github/issues/2003))
-   Add test cases for JSON resource marshaling ([#&#8203;2004](https://togithub.com/google/go-github/issues/2004))
-   Make test names consistent ([#&#8203;2005](https://togithub.com/google/go-github/issues/2005))
-   Add test cases for JSON resource marshaling ([#&#8203;2006](https://togithub.com/google/go-github/issues/2006))
-   Add test cases for JSON resource marshaling ([#&#8203;2007](https://togithub.com/google/go-github/issues/2007))
-   Add test cases for JSON resource marshaling ([#&#8203;2009](https://togithub.com/google/go-github/issues/2009))
-   Add test cases for JSON resource marshaling ([#&#8203;2010](https://togithub.com/google/go-github/issues/2010))
-   Add test cases for JSON resource marshaling ([#&#8203;2011](https://togithub.com/google/go-github/issues/2011))
-   Update AUTHORS with recent contributors ([#&#8203;2012](https://togithub.com/google/go-github/issues/2012))
-   Add test cases for JSON resource marshaling ([#&#8203;2014](https://togithub.com/google/go-github/issues/2014))
-   Add mention to go-github-mock in README ([#&#8203;2025](https://togithub.com/google/go-github/issues/2025))
-   Use x crypto instead of sodium ([#&#8203;2034](https://togithub.com/google/go-github/issues/2034))

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

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

♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found.

🔕 **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 [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/reviewdog/reviewdog).


Patch:
diff --git a/cmd/reviewdog/main.go b/cmd/reviewdog/main.go
index 857ab24b..3d1da392 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/v37/github"
+	"github.com/google/go-github/v38/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 a366c710..edca3204 100644
--- a/doghouse/appengine/github.go
+++ b/doghouse/appengine/github.go
@@ -13,7 +13,7 @@ import (
 	"net/url"
 	"strings"
 
-	"github.com/google/go-github/v37/github"
+	"github.com/google/go-github/v38/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 6d63b235..255de2a5 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/v37/github"
+	"github.com/google/go-github/v38/github"
 
 	"github.com/reviewdog/reviewdog/doghouse/server/storage"
 )
diff --git a/doghouse/client/github_client.go b/doghouse/client/github_client.go
index 757731d6..479a6933 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/v37/github"
+	"github.com/google/go-github/v38/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 7a335196..228168dd 100644
--- a/doghouse/server/doghouse.go
+++ b/doghouse/server/doghouse.go
@@ -8,7 +8,7 @@ import (
 	"strings"
 	"time"
 
-	"github.com/google/go-github/v37/github"
+	"github.com/google/go-github/v38/github"
 
 	"github.com/reviewdog/reviewdog/diff"
 	"github.com/reviewdog/reviewdog/doghouse"
diff --git a/doghouse/server/github.go b/doghouse/server/github.go
index 97d63d82..4bd3a5e7 100644
--- a/doghouse/server/github.go
+++ b/doghouse/server/github.go
@@ -6,7 +6,7 @@ import (
 	"net/http"
 
 	"github.com/bradleyfalzon/ghinstallation"
-	"github.com/google/go-github/v37/github"
+	"github.com/google/go-github/v38/github"
 )
 
 type NewGitHubClientOption struct {
diff --git a/doghouse/server/github_checker.go b/doghouse/server/github_checker.go
index a0fe7575..3e9cf507 100644
--- a/doghouse/server/github_checker.go
+++ b/doghouse/server/github_checker.go
@@ -5,7 +5,7 @@ import (
 	"io/ioutil"
 	"time"
 
-	"github.com/google/go-github/v37/github"
+	"github.com/google/go-github/v38/github"
 	"github.com/vvakame/sdlog/aelog"
 )
 
diff --git a/go.mod b/go.mod
index a437614e..9f25cc74 100644
--- a/go.mod
+++ b/go.mod
@@ -9,7 +9,7 @@ require (
 	github.com/bradleyfalzon/ghinstallation v1.1.1
 	github.com/golang/protobuf v1.5.2
 	github.com/google/go-cmp v0.5.6
-	github.com/google/go-github/v37 v37.0.0
+	github.com/google/go-github/v38 v38.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 e8e93d98..a3476df4 100644
--- a/go.sum
+++ b/go.sum
@@ -140,8 +140,8 @@ github.com/google/go-github v17.0.0+incompatible h1:N0LgJ1j65A7kfXrZnUDaYCs/Sf4r
 github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ=
 github.com/google/go-github/v29 v29.0.2 h1:opYN6Wc7DOz7Ku3Oh4l7prmkOMwEcQxpFtxdU8N8Pts=
 github.com/google/go-github/v29 v29.0.2/go.mod h1:CHKiKKPHJ0REzfwc14QMklvtHwCveD0PxlMjLlzAM5E=
-github.com/google/go-github/v37 v37.0.0 h1:rCspN8/6kB1BAJWZfuafvHhyfIo5fkAulaP/3bOQ/tM=
-github.com/google/go-github/v37 v37.0.0/go.mod h1:LM7in3NmXDrX58GbEHy7FtNLbI2JijX93RnMKvWG3m4=
+github.com/google/go-github/v38 v38.0.0 h1:l/BalRp6dmFh/SFbl32RrlaVvbByhxpy+/LY0sv9isM=
+github.com/google/go-github/v38 v38.0.0/go.mod h1:cStvrz/7nFr0FoENgG6GLbp53WaelXucT+BBz/3VKx4=
 github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk=
 github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
 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 c6d3658b..1b111786 100644
--- a/scripts/trigger-depup/go.mod
+++ b/scripts/trigger-depup/go.mod
@@ -3,6 +3,6 @@ module github.com/reviewdog/reviewdog/scripts/trigger-depup
 go 1.16
 
 require (
-	github.com/google/go-github/v37 v37.0.0
+	github.com/google/go-github/v38 v38.0.0
 	golang.org/x/oauth2 v0.0.0-20210810183815-faf39c7919d5
 )
diff --git a/scripts/trigger-depup/main.go b/scripts/trigger-depup/main.go
index c5b1dc2c..e3fb2bce 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/v37/github"
+	"github.com/google/go-github/v38/github"
 	"golang.org/x/oauth2"
 )
 
diff --git a/service/github/github.go b/service/github/github.go
index 592703a2..385f8604 100644
--- a/service/github/github.go
+++ b/service/github/github.go
@@ -8,7 +8,7 @@ import (
 	"strings"
 	"sync"
 
-	"github.com/google/go-github/v37/github"
+	"github.com/google/go-github/v38/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 a182ec0f..bc94404c 100644
--- a/doghouse/server/doghouse_test.go
+++ b/doghouse/server/doghouse_test.go
@@ -7,7 +7,7 @@ import (
 	"testing"
 
 	"github.com/google/go-cmp/cmp"
-	"github.com/google/go-github/v37/github"
+	"github.com/google/go-github/v38/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 47234c4b..8eed49fa 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/v37/github"
+	"github.com/google/go-github/v38/github"
 	"github.com/kylelemons/godebug/pretty"
 	"golang.org/x/oauth2"