Repository: lindell/multi-gitter
Pull request #319 (2023-02-01 04:46:16)

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

---

### Release Notes

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

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

[Compare Source](https://togithub.com/google/go-github/compare/v49.1.0...v50.0.0)

This release contains the following breaking API changes:

-   Change total_minutes_used and included_minutes from int to float64 ([#&#8203;2643](https://togithub.com/google/go-github/issues/2643))
-   Change all fields from time.Time to github.Timestamp ([#&#8203;2646](https://togithub.com/google/go-github/issues/2646))

and the following additional changes:

-   Add new DeploymentBranchPolicies endpoints ([#&#8203;2621](https://togithub.com/google/go-github/issues/2621))
-   Bump github.com/google/go-github/v49 from 49.0.0 to 49.1.0 in /scrape ([#&#8203;2627](https://togithub.com/google/go-github/issues/2627))
-   Add RequireLastPushApproval field to UpdateBranchProtection ([#&#8203;2629](https://togithub.com/google/go-github/issues/2629))
-   Add workflow_name to WorkflowJob struct ([#&#8203;2630](https://togithub.com/google/go-github/issues/2630))
-   Support users and teams in branch protection access restrictions ([#&#8203;2561](https://togithub.com/google/go-github/issues/2561))
-   Add httpcache code example to README.md ([#&#8203;2632](https://togithub.com/google/go-github/issues/2632))
-   Bump golangci/golangci-lint-action from 3.3.1 to 3.4.0 ([#&#8203;2638](https://togithub.com/google/go-github/issues/2638))
-   Add NewTokenClient ([#&#8203;2637](https://togithub.com/google/go-github/issues/2637))
-   Add method to update codescanning alert ([#&#8203;2639](https://togithub.com/google/go-github/issues/2639))
-   Add JSON tag for ErrorResponse ([#&#8203;2641](https://togithub.com/google/go-github/issues/2641))
-   Use NewTokenClient in tests and examples ([#&#8203;2644](https://togithub.com/google/go-github/issues/2644))

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

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

This minor release contains the following changes:

-   Update scrape dependency to v49 ([#&#8203;2617](https://togithub.com/google/go-github/issues/2617))
-   Add support for GitHub Actions cache API ([#&#8203;2604](https://togithub.com/google/go-github/issues/2604))
-   Support OIDC subject claim customization templates for actions ([#&#8203;2615](https://togithub.com/google/go-github/issues/2615))
-   Omit OpenID Connect customization template claims when none are set ([#&#8203;2620](https://togithub.com/google/go-github/issues/2620))
-   Update minor version to v49.1.0 ([#&#8203;2623](https://togithub.com/google/go-github/issues/2623))

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

[Compare Source](https://togithub.com/google/go-github/compare/v48.2.0...v49.0.0)

This release contains the following breaking API changes:

-   Fix JSON protection unmarshal error ([#&#8203;2606](https://togithub.com/google/go-github/issues/2606))
-   Change actions billing structs to maps ([#&#8203;2597](https://togithub.com/google/go-github/issues/2597))

and the following additional changes:

-   Bump scrape and examples to use v48.2.0 ([#&#8203;2596](https://togithub.com/google/go-github/issues/2596))
-   Fix GitHub docs URL for get repository API ([#&#8203;2600](https://togithub.com/google/go-github/issues/2600))
-   Enable secret scanning with the enterprise-level REST API ([#&#8203;2607](https://togithub.com/google/go-github/issues/2607))
-   Add installation to CodeScanningAlertEvent type ([#&#8203;2609](https://togithub.com/google/go-github/issues/2609))
-   Add support for GitHub Environments for Pro/Teams pricing plans ([#&#8203;2611](https://togithub.com/google/go-github/issues/2611))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 8am on the first day of the month" (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://app.renovatebot.com/dashboard#github/lindell/multi-gitter).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMTcuMSIsInVwZGF0ZWRJblZlciI6IjM0LjExNy4xIn0=-->



Patch:
diff --git a/go.mod b/go.mod
index c3394a6..5696df5 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-20220418082332-711d7d5e805f
 	github.com/go-git/go-git/v5 v5.5.2
-	github.com/google/go-github/v48 v48.2.0
+	github.com/google/go-github/v50 v50.0.0
 	github.com/mitchellh/mapstructure v1.5.0
 	github.com/pkg/errors v0.9.1
 	github.com/sirupsen/logrus v1.9.0
diff --git a/go.sum b/go.sum
index da50ab3..33bfdcb 100644
--- a/go.sum
+++ b/go.sum
@@ -140,8 +140,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/v48 v48.2.0 h1:68puzySE6WqUY9KWmpOsDEQfDZsso98rT6pZcz9HqcE=
-github.com/google/go-github/v48 v48.2.0/go.mod h1:dDlehKBDo850ZPvCTK0sEqTCVWcrGl2LcDiajkYi89Y=
+github.com/google/go-github/v50 v50.0.0 h1:gdO1AeuSZZK4iYWwVbjni7zg8PIQhp7QfmPunr016Jk=
+github.com/google/go-github/v50 v50.0.0/go.mod h1:Ev4Tre8QoKiolvbpOSG3FIi4Mlon3S2Nt9W5JYqKiwA=
 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 dad9dc5..b738955 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/v48/github"
+	"github.com/google/go-github/v50/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 cdbf7d8..ea55348 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/v48/github"
+	"github.com/google/go-github/v50/github"
 
 	"github.com/lindell/multi-gitter/internal/scm"
 )
diff --git a/internal/scm/github/repository.go b/internal/scm/github/repository.go
index 5f8662c..1978f0b 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/v48/github"
+	"github.com/google/go-github/v50/github"
 	"github.com/pkg/errors"
 )
 
diff --git a/internal/scm/github/retry.go b/internal/scm/github/retry.go
index 2a49980..b838bb3 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/v48/github"
+	"github.com/google/go-github/v50/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 068f9cc..20a829e 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/v48/github"
+	"github.com/google/go-github/v50/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 739da7c..e722051 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/v48/github"
+	"github.com/google/go-github/v50/github"
 	"github.com/pkg/errors"
 	"github.com/stretchr/testify/assert"
 )