Skip to content

Commit 9f632fb

Browse files
Update module github.com/google/go-github/v64 to v69 (#73) [skip ci]
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Emma Sax <[email protected]>
1 parent 031a67e commit 9f632fb

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/emmahsax/go-git-helper
33
go 1.23.1
44

55
require (
6-
github.com/google/go-github/v64 v64.0.0
6+
github.com/google/go-github/v69 v69.0.0
77
github.com/pterm/pterm v0.12.79
88
github.com/spf13/cobra v1.8.1
99
github.com/tidwall/gjson v1.18.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4Nij
2727
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
2828
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
2929
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
30-
github.com/google/go-github/v64 v64.0.0 h1:4G61sozmY3eiPAjjoOHponXDBONm+utovTKbyUb2Qdg=
31-
github.com/google/go-github/v64 v64.0.0/go.mod h1:xB3vqMQNdHzilXBiO2I+M7iEFtHf+DP/omBOv6tQzVo=
30+
github.com/google/go-github/v69 v69.0.0 h1:YnFvZ3pEIZF8KHmI8xyQQe3mYACdkhnaTV2hr7CP2/w=
31+
github.com/google/go-github/v69 v69.0.0/go.mod h1:xne4jymxLR6Uj9b7J7PyTpkMYstEMMwGZa0Aehh1azM=
3232
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
3333
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
3434
github.com/gookit/color v1.4.2/go.mod h1:fqRyamkC1W8uxl+lxCQxOT09l/vYfZ+QeiX3rKQHCoQ=

internal/github/github.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
"github.com/emmahsax/go-git-helper/internal/configfile"
99
"github.com/emmahsax/go-git-helper/internal/utils"
10-
"github.com/google/go-github/v64/github"
10+
"github.com/google/go-github/v69/github"
1111
"golang.org/x/oauth2"
1212
)
1313

@@ -35,7 +35,7 @@ func (c *GitHub) CreatePullRequest(owner, repo string, options *github.NewPullRe
3535
if err != nil {
3636
if strings.Contains(err.Error(), "422 Draft pull requests are not supported in this repository.") {
3737
fmt.Println("Draft pull requests are not supported in this repository. Retrying.")
38-
options.Draft = github.Bool(false)
38+
options.Draft = github.Ptr(false)
3939
continue
4040
}
4141
utils.HandleError(err, c.Debug, nil)

internal/githubPullRequest/githubPullRequest.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/emmahsax/go-git-helper/internal/commandline"
1313
"github.com/emmahsax/go-git-helper/internal/github"
1414
"github.com/emmahsax/go-git-helper/internal/utils"
15-
go_github "github.com/google/go-github/v64/github"
15+
go_github "github.com/google/go-github/v69/github"
1616
)
1717

1818
type GitHubPullRequest struct {
@@ -40,12 +40,12 @@ func NewGitHubPullRequest(options map[string]string, debug bool) *GitHubPullRequ
4040
func (pr *GitHubPullRequest) Create() {
4141
d, _ := strconv.ParseBool(pr.Draft)
4242
options := go_github.NewPullRequest{
43-
Base: go_github.String(pr.BaseBranch),
44-
Body: go_github.String(pr.newPrBody()),
45-
Draft: go_github.Bool(d),
46-
Head: go_github.String(pr.LocalBranch),
47-
MaintainerCanModify: go_github.Bool(true),
48-
Title: go_github.String(pr.NewPrTitle),
43+
Base: go_github.Ptr(pr.BaseBranch),
44+
Body: go_github.Ptr(pr.newPrBody()),
45+
Draft: go_github.Ptr(d),
46+
Head: go_github.Ptr(pr.LocalBranch),
47+
MaintainerCanModify: go_github.Ptr(true),
48+
Title: go_github.Ptr(pr.NewPrTitle),
4949
}
5050

5151
repo := strings.Split(pr.LocalRepo, "/")

0 commit comments

Comments
 (0)