Repository: lindell/multi-gitter
Pull request #412 (2023-11-01 03:08:31)

dep: update module github.com/google/go-github/v55 to v56
[![Mend 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/v55](https://togithub.com/google/go-github) | require | major | `v55.0.0` -> `v56.0.0` |

---

### Release Notes

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

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

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

This release contains the following breaking API changes:

-   Remove ListServiceHooks ([#&#8203;2917](https://togithub.com/google/go-github/issues/2917))
-   Fix SecretScanning API by switching arguments from url to json ([#&#8203;2934](https://togithub.com/google/go-github/issues/2934))
-   Remove openpgp and change CreateCommit signature ([#&#8203;2935](https://togithub.com/google/go-github/issues/2935))
-   Allow up to maxRedirects upon receiving HTTP 301 status ([#&#8203;2939](https://togithub.com/google/go-github/issues/2939))
-   Escape branch string before inserting it in URL ([#&#8203;2948](https://togithub.com/google/go-github/issues/2948))
-   Create MarkdownService, EmojisService, CodesOfConductService and MetaService ([#&#8203;2937](https://togithub.com/google/go-github/issues/2937))
-   Support options for GetCodeownersErrors ([#&#8203;2953](https://togithub.com/google/go-github/issues/2953))

(NOTE: In particular, please play close attention to [#&#8203;2948](https://togithub.com/google/go-github/issues/2948) as it may affect the code around the call.
Specifically, you may be required to remove any escaping that you perform prior to calling the modified methods.)

...and the following additional changes:

-   Bump go-github from v54 to v55 in /scrape ([#&#8203;2915](https://togithub.com/google/go-github/issues/2915))
-   Add enterprise runner group operations ([#&#8203;2891](https://togithub.com/google/go-github/issues/2891))
-   Add GenerateEnterpriseJITConfig ([#&#8203;2890](https://togithub.com/google/go-github/issues/2890))
-   Fix linting ([#&#8203;2903](https://togithub.com/google/go-github/issues/2903))
-   Handle encoding value of "none" ([#&#8203;2924](https://togithub.com/google/go-github/issues/2924))
-   Correct NewEnterpriseClient deprecation message ([#&#8203;2923](https://togithub.com/google/go-github/issues/2923))
-   Fix golangci-lint timeout failures ([#&#8203;2931](https://togithub.com/google/go-github/issues/2931))
-   Bump golang.org/x/net from 0.14.0 to 0.15.0 in /scrape ([#&#8203;2925](https://togithub.com/google/go-github/issues/2925))
-   Add missing secret scanning alert fields ([#&#8203;2930](https://togithub.com/google/go-github/issues/2930))
-   Add development scripts ([#&#8203;2928](https://togithub.com/google/go-github/issues/2928))
-   Add enterprise actions permissions endpoints and reorg files ([#&#8203;2920](https://togithub.com/google/go-github/issues/2920))
-   Add SAML SSO audit log fields ([#&#8203;2941](https://togithub.com/google/go-github/issues/2941))
-   Add test for resource JSON marshaling - ActionVariable ([#&#8203;2942](https://togithub.com/google/go-github/issues/2942))
-   Add json marshaling tests for action usage and OIDC types ([#&#8203;2944](https://togithub.com/google/go-github/issues/2944))
-   Add List Installation Requests API ([#&#8203;2947](https://togithub.com/google/go-github/issues/2947))
-   Add support for "performed_via_github_app" and "requested_team" in IssueEvent ([#&#8203;2946](https://togithub.com/google/go-github/issues/2946))
-   Add "organization" field to more events ([#&#8203;2949](https://togithub.com/google/go-github/issues/2949))
-   Add Repository Security Advisories APIs ([#&#8203;2902](https://togithub.com/google/go-github/issues/2902))
-   Bump golang.org/x/net from 0.15.0 to 0.16.0 in /scrape ([#&#8203;2954](https://togithub.com/google/go-github/issues/2954))
-   Add prevent_self_review on repo environments ([#&#8203;2951](https://togithub.com/google/go-github/issues/2951))
-   Add type field to DeploymentBranchPolicy ([#&#8203;2957](https://togithub.com/google/go-github/issues/2957))
-   Bump golang.org/x/net from 0.16.0 to 0.17.0 in /scrape ([#&#8203;2958](https://togithub.com/google/go-github/issues/2958))
-   Bump golang.org/x/net from 0.10.0 to 0.17.0 in /example ([#&#8203;2960](https://togithub.com/google/go-github/issues/2960))
-   Bump version of go-github to v56.0.0 ([#&#8203;2961](https://togithub.com/google/go-github/issues/2961))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "on the first day of the month also on the 2nd day of the month before 5pm" (UTC), 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/lindell/multi-gitter).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMS41IiwidXBkYXRlZEluVmVyIjoiMzcuMzEuNSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9-->


renovate[bot]: ### ⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

 - any of the package files in this branch needs updating, or 
 - the branch becomes conflicted, or
 - you click the rebase/retry checkbox if found above, or
 - you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

##### File name: go.sum

```
Command failed: docker run --rm --name=renovate_a_sidecar --label=renovate_a_child --memory=3584m -v "/tmp/worker/bec664/898328/repos/github/lindell/multi-gitter":"/tmp/worker/bec664/898328/repos/github/lindell/multi-gitter" -v "/tmp/worker/bec664/898328/cache":"/tmp/worker/bec664/898328/cache" -e GOPATH -e GOPROXY -e GOSUMDB -e GOFLAGS -e CGO_ENABLED -e GIT_CONFIG_KEY_0 -e GIT_CONFIG_VALUE_0 -e GIT_CONFIG_KEY_1 -e GIT_CONFIG_VALUE_1 -e GIT_CONFIG_KEY_2 -e GIT_CONFIG_VALUE_2 -e GIT_CONFIG_COUNT -e CONTAINERBASE_CACHE_DIR -w "/tmp/worker/bec664/898328/repos/github/lindell/multi-gitter" ghcr.io/containerbase/sidecar:9.23.5 bash -l -c "install-tool golang 1.21.3 && go get -d -t ./... && go install github.com/marwan-at-work/mod/cmd/mod@latest && mod upgrade --mod-name=github.com/google/go-github/v55 -t=56 && go mod tidy && go mod tidy"
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/sirupsen/logrus v1.9.3
go: downloading github.com/spf13/cobra v1.7.0
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/spf13/viper v1.16.0
go: downloading github.com/go-git/go-git/v5 v5.10.0
go: downloading github.com/stretchr/testify v1.8.4
go: downloading github.com/eiannone/keyboard v0.0.0-20220611211555-0d226195f203
go: downloading github.com/gfleury/go-bitbucket-v1 v0.0.0-20230626192437-8d7be5866751
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading code.gitea.io/sdk/gitea v0.16.0
go: downloading github.com/xanzy/go-gitlab v0.92.3
go: downloading golang.org/x/oauth2 v0.12.0
go: downloading golang.org/x/sys v0.13.0
go: downloading github.com/inconshreveable/mousetrap v1.1.0
go: downloading github.com/fsnotify/fsnotify v1.6.0
go: downloading github.com/spf13/afero v1.9.5
go: downloading github.com/spf13/cast v1.5.1
go: downloading github.com/spf13/jwalterweatherman v1.1.0
go: downloading dario.cat/mergo v1.0.0
go: downloading github.com/go-git/go-billy/v5 v5.5.0
go: downloading github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371
go: downloading github.com/sergi/go-diff v1.1.0
go: downloading github.com/emirpasic/gods v1.18.1
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading golang.org/x/net v0.17.0
go: downloading github.com/davidmz/go-pageant v1.0.2
go: downloading github.com/go-fed/httpsig v1.1.0
go: downloading github.com/hashicorp/go-version v1.5.0
go: downloading golang.org/x/crypto v0.14.0
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.2
go: downloading github.com/google/go-querystring v1.1.0
go: downloading github.com/hashicorp/go-cleanhttp v0.5.2
go: downloading github.com/hashicorp/go-retryablehttp v0.7.2
go: downloading golang.org/x/time v0.3.0
go: downloading golang.org/x/text v0.13.0
go: downloading github.com/subosito/gotenv v1.4.2
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading gopkg.in/ini.v1 v1.67.0
go: downloading github.com/magiconair/properties v1.8.7
go: downloading github.com/pelletier/go-toml/v2 v2.0.8
go: downloading github.com/cyphar/filepath-securejoin v0.2.4
go: downloading github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376
go: downloading github.com/pjbgf/sha1cd v0.3.0
go: downloading github.com/acomagu/bufpipe v1.0.4
go: downloading github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99
go: downloading google.golang.org/appengine v1.6.7
go: downloading github.com/russross/blackfriday/v2 v2.1.0
go: downloading gopkg.in/warnings.v0 v0.1.2
go: downloading github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
go: downloading github.com/kevinburke/ssh_config v1.2.0
go: downloading github.com/skeema/knownhosts v1.2.0
go: downloading github.com/xanzy/ssh-agent v0.3.3
go: downloading github.com/cloudflare/circl v1.3.3
go: downloading github.com/golang/protobuf v1.5.3
go: downloading github.com/Microsoft/go-winio v0.6.1
go: downloading golang.org/x/tools v0.13.0
go: downloading google.golang.org/protobuf v1.31.0
go: downloading golang.org/x/mod v0.12.0
go: downloading github.com/google/go-github/v55 v55.0.0
go: downloading github.com/google/go-github v17.0.0+incompatible
go: added github.com/google/go-github/v55 v55.0.0
go: downloading github.com/marwan-at-work/mod v0.7.0
go: downloading github.com/urfave/cli/v2 v2.25.1
go: downloading github.com/PuerkitoBio/goquery v1.8.1
go: downloading github.com/google/go-github/v52 v52.0.0
go: downloading golang.org/x/mod v0.13.0
go: downloading golang.org/x/oauth2 v0.7.0
go: downloading github.com/andybalholm/cascadia v1.3.2
go: downloading golang.org/x/net v0.15.0
go: downloading github.com/ProtonMail/go-crypto v0.0.0-20230426101702-58e86b294756
go: downloading golang.org/x/sys v0.12.0
go: downloading golang.org/x/crypto v0.13.0
go: downloading github.com/cloudflare/circl v1.3.2
go: downloading github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673
panic: SetRequire called with conflicting versions for path github.com/google/go-github/v56 (latest and v56.0.0)

goroutine 1 [running]:
golang.org/x/mod/modfile.(*File).SetRequire(0xc0001ac200, {0xc0001bc600, 0x3f, 0xc0001a4480?})
	/go/pkg/mod/golang.org/x/mod@v0.13.0/modfile/rule.go:1088 +0x4c5
github.com/marwan-at-work/mod/major.Run({0xa827a8, 0x1}, {0x9b10df, 0x7}, {0x7fff5bc47a5f, 0x1f}, 0xdd9a60?)
	/go/pkg/mod/github.com/marwan-at-work/mod@v0.7.0/major/major.go:72 +0x7ac
main.upgrade(0x8ff1a0?)
	/go/pkg/mod/github.com/marwan-at-work/mod@v0.7.0/cmd/mod/main.go:75 +0x6f
main.main.withExit.func1(0xc0000d42c0?)
	/go/pkg/mod/github.com/marwan-at-work/mod@v0.7.0/cmd/mod/main.go:88 +0x17
github.com/urfave/cli/v2.(*Command).Run(0xc0000d42c0, 0xc000186100, {0xc0000f81b0, 0x3, 0x3})
	/go/pkg/mod/github.com/urfave/cli/v2@v2.25.1/command.go:274 +0x998
github.com/urfave/cli/v2.(*Command).Run(0xc00018a160, 0xc000186040, {0xc000022080, 0x4, 0x4})
	/go/pkg/mod/github.com/urfave/cli/v2@v2.25.1/command.go:267 +0xbe5
github.com/urfave/cli/v2.(*App).RunContext(0xc00014c000, {0xa8bde8?, 0xe080e0}, {0xc000022080, 0x4, 0x4})
	/go/pkg/mod/github.com/urfave/cli/v2@v2.25.1/app.go:332 +0x5b7
github.com/urfave/cli/v2.(*App).Run(...)
	/go/pkg/mod/github.com/urfave/cli/v2@v2.25.1/app.go:309
main.main()
	/go/pkg/mod/github.com/marwan-at-work/mod@v0.7.0/cmd/mod/main.go:71 +0x68b

```



Patch:
diff --git a/go.mod b/go.mod
index 6916e97..97c4bf9 100644
--- a/go.mod
+++ b/go.mod
@@ -7,7 +7,7 @@ require (
 	github.com/eiannone/keyboard v0.0.0-20220611211555-0d226195f203
 	github.com/gfleury/go-bitbucket-v1 v0.0.0-20230626192437-8d7be5866751
 	github.com/go-git/go-git/v5 v5.10.0
-	github.com/google/go-github/v55 v55.0.0
+	github.com/google/go-github/v56 v56.0.0
 	github.com/mitchellh/mapstructure v1.5.0
 	github.com/pkg/errors v0.9.1
 	github.com/sirupsen/logrus v1.9.3
diff --git a/go.sum b/go.sum
index 9d93416..da8a2ff 100644
--- a/go.sum
+++ b/go.sum
@@ -153,8 +153,8 @@ github.com/google/go-cmp v0.5.4/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.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
 github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
-github.com/google/go-github/v55 v55.0.0 h1:4pp/1tNMB9X/LuAhs5i0KQAE40NmiR/y6prLNb9x9cg=
-github.com/google/go-github/v55 v55.0.0/go.mod h1:JLahOTA1DnXzhxEymmFF5PP2tSS9JVNj68mSZNDwskA=
+github.com/google/go-github/v56 v56.0.0 h1:TysL7dMa/r7wsQi44BjqlwaHvwlFlqkK8CtBWCX3gb4=
+github.com/google/go-github/v56 v56.0.0/go.mod h1:D8cdcX98YWJvi7TLo7zM4/h8ZTx6u6fwGEkCdisopo0=
 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/internal/scm/github/github.go b/internal/scm/github/github.go
index be47903..10a1c6f 100755
--- a/internal/scm/github/github.go
+++ b/internal/scm/github/github.go
@@ -9,7 +9,7 @@ import (
 	"sync"
 	"time"
 
-	"github.com/google/go-github/v55/github"
+	"github.com/google/go-github/v56/github"
 	"github.com/lindell/multi-gitter/internal/scm"
 	"github.com/pkg/errors"
 	log "github.com/sirupsen/logrus"
diff --git a/internal/scm/github/pullrequest.go b/internal/scm/github/pullrequest.go
index e3477cf..0b8c902 100644
--- a/internal/scm/github/pullrequest.go
+++ b/internal/scm/github/pullrequest.go
@@ -3,7 +3,7 @@ package github
 import (
 	"fmt"
 
-	"github.com/google/go-github/v55/github"
+	"github.com/google/go-github/v56/github"
 
 	"github.com/lindell/multi-gitter/internal/scm"
 )
diff --git a/internal/scm/github/repository.go b/internal/scm/github/repository.go
index bf156a2..35a04ea 100644
--- a/internal/scm/github/repository.go
+++ b/internal/scm/github/repository.go
@@ -4,7 +4,7 @@ import (
 	"fmt"
 	"net/url"
 
-	"github.com/google/go-github/v55/github"
+	"github.com/google/go-github/v56/github"
 	"github.com/pkg/errors"
 )
 
diff --git a/internal/scm/github/retry.go b/internal/scm/github/retry.go
index a5cbd85..fc63d3a 100644
--- a/internal/scm/github/retry.go
+++ b/internal/scm/github/retry.go
@@ -7,7 +7,7 @@ import (
 	"strings"
 	"time"
 
-	"github.com/google/go-github/v55/github"
+	"github.com/google/go-github/v56/github"
 	"github.com/pkg/errors"
 	log "github.com/sirupsen/logrus"
 )
diff --git a/internal/scm/github/util.go b/internal/scm/github/util.go
index 2ef96b1..3a0aac7 100644
--- a/internal/scm/github/util.go
+++ b/internal/scm/github/util.go
@@ -3,7 +3,7 @@ package github
 import (
 	"strings"
 
-	"github.com/google/go-github/v55/github"
+	"github.com/google/go-github/v56/github"
 	"github.com/lindell/multi-gitter/internal/scm"
 )
 


Test patch:
diff --git a/internal/scm/github/retry_test.go b/internal/scm/github/retry_test.go
index ebd1a8a..261c8bf 100644
--- a/internal/scm/github/retry_test.go
+++ b/internal/scm/github/retry_test.go
@@ -8,7 +8,7 @@ import (
 	"testing"
 	"time"
 
-	"github.com/google/go-github/v55/github"
+	"github.com/google/go-github/v56/github"
 	"github.com/pkg/errors"
 	"github.com/stretchr/testify/assert"
 )