Skip to content

Commit

Permalink
upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
pPrecel committed Oct 20, 2023
1 parent 785d008 commit 1a4b0e4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ go 1.21

require (
github.com/cli/oauth v1.0.1
github.com/google/go-github/v53 v53.1.0
github.com/google/go-github/v53 v53.2.0
github.com/nguyenthenguyen/docx v0.0.0-20230621112118-9c8e795a11db
github.com/pkg/errors v0.9.1
github.com/pterm/pterm v0.12.69
github.com/stretchr/testify v1.8.4
github.com/urfave/cli/v2 v2.25.7
github.com/zalando/go-keyring v0.2.3
k8s.io/utils v0.0.0-20230505201702-9f6742963106
k8s.io/utils v0.0.0-20230726121419-3b25d923346b
)

require (
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ github.com/google/go-cmp v0.5.2/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/v53 v53.1.0 h1:mKJnR9lzZwD1fvbp27aK1i6rxyAbycWsXlN+r9JKPqM=
github.com/google/go-github/v53 v53.1.0/go.mod h1:XhFRObz+m/l+UCm9b7KSIC3lT3NWSXGt7mOsAWEloao=
github.com/google/go-github/v53 v53.2.0 h1:wvz3FyF53v4BK+AsnvCmeNhf8AkTaeh2SoYu/XUvTtI=
github.com/google/go-github/v53 v53.2.0/go.mod h1:XhFRObz+m/l+UCm9b7KSIC3lT3NWSXGt7mOsAWEloao=
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/gookit/color v1.4.2/go.mod h1:fqRyamkC1W8uxl+lxCQxOT09l/vYfZ+QeiX3rKQHCoQ=
Expand Down Expand Up @@ -182,5 +182,5 @@ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
k8s.io/utils v0.0.0-20230505201702-9f6742963106 h1:EObNQ3TW2D+WptiYXlApGNLVy0zm/JIBVY9i+M4wpAU=
k8s.io/utils v0.0.0-20230505201702-9f6742963106/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
k8s.io/utils v0.0.0-20230726121419-3b25d923346b h1:sgn3ZU783SCgtaSJjpcVVlRqd6GSnlTLKgpAAttJvpI=
k8s.io/utils v0.0.0-20230726121419-3b25d923346b/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
14 changes: 7 additions & 7 deletions pkg/artifacts/artifacts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/pPrecel/PKUP/pkg/github/automock"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
"k8s.io/utils/pointer"
"k8s.io/utils/ptr"
)

func TestGenUserArtifactsToDir(t *testing.T) {
Expand All @@ -21,15 +21,15 @@ func TestGenUserArtifactsToDir(t *testing.T) {
diff := "+ anything"
testPRs := []*gh.PullRequest{
{
Title: pointer.String("test PR 1"),
MergeCommitSHA: pointer.String("sha1"),
Number: pointer.Int(123),
Title: ptr.To[string]("test PR 1"),
MergeCommitSHA: ptr.To[string]("sha1"),
Number: ptr.To[int](123),
ClosedAt: &gh.Timestamp{},
},
{
Title: pointer.String("test PR 2"),
MergeCommitSHA: pointer.String("sha2"),
Number: pointer.Int(124),
Title: ptr.To[string]("test PR 2"),
MergeCommitSHA: ptr.To[string]("sha2"),
Number: ptr.To[int](124),
MergedAt: &gh.Timestamp{Time: time.Now()},
},
}
Expand Down
14 changes: 7 additions & 7 deletions pkg/github/pullrequest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/google/go-github/v53/github"
"github.com/stretchr/testify/require"
"k8s.io/utils/pointer"
"k8s.io/utils/ptr"
)

const (
Expand All @@ -31,13 +31,13 @@ var (
}
testPullRequests = []*github.PullRequest{
{
MergeCommitSHA: pointer.String("9c3af6972080f7b8e20948bfd61f755cf3e74ab8"),
MergeCommitSHA: ptr.To[string]("9c3af6972080f7b8e20948bfd61f755cf3e74ab8"),
MergedAt: &github.Timestamp{
Time: testMergedBefore.AddDate(0, 0, -1),
},
},
{
MergeCommitSHA: pointer.String("9c3af6972080f7b8e20948bfd61f755cf3e74ab8"),
MergeCommitSHA: ptr.To[string]("9c3af6972080f7b8e20948bfd61f755cf3e74ab8"),
MergedAt: &github.Timestamp{
Time: testMergedBefore.AddDate(0, 0, -3),
},
Expand All @@ -46,18 +46,18 @@ var (
testCommits = []*github.RepositoryCommit{
{
Author: &github.User{
Login: pointer.String("anyone"),
Login: ptr.To[string]("anyone"),
},
Committer: &github.User{
Login: pointer.String("anyone"),
Login: ptr.To[string]("anyone"),
},
},
{
Author: &github.User{
Login: pointer.String("pPrecel"),
Login: ptr.To[string]("pPrecel"),
},
Committer: &github.User{
Login: pointer.String("pPrecel"),
Login: ptr.To[string]("pPrecel"),
},
},
}
Expand Down

0 comments on commit 1a4b0e4

Please sign in to comment.