Skip to content

Commit

Permalink
feat: upgrade go-github dependency to v69 (#59)
Browse files Browse the repository at this point in the history
Co-authored-by: hassnat <[email protected]>
  • Loading branch information
hassnatahmad and hassnat authored Feb 6, 2025
1 parent 6efb4eb commit 9f67982
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tasks:
cmds:
- echo "Starting pre-commit checks..."
- pre-commit autoupdate || (echo "Failed to autoupdate pre-commit"; exit 1)
- pre-commit install || (echo "Failed to install pre-commit"; exit 1)
# - pre-commit install || (echo "Failed to install pre-commit"; exit 1)
- pre-commit run --all-files || (echo "Pre-commit checks failed"; exit 1)
- echo "Pre-commit checks completed successfully"

Expand Down
2 changes: 1 addition & 1 deletion github/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/cloudnative-zoo/go-commons/util"
"github.com/gofri/go-github-ratelimit/github_ratelimit"
"github.com/google/go-github/v68/github"
"github.com/google/go-github/v69/github"
)

// Options defines a function signature for configuring a GitHub Service instance.
Expand Down
2 changes: 1 addition & 1 deletion github/org.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"strings"

"github.com/google/go-github/v68/github"
"github.com/google/go-github/v69/github"
)

// ListOrganizations fetches all organizations associated with the authenticated user.
Expand Down
2 changes: 1 addition & 1 deletion github/org_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package github_test
import (
"testing"

"github.com/google/go-github/v68/github"
"github.com/google/go-github/v69/github"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion github/pr.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/google/go-github/v68/github"
"github.com/google/go-github/v69/github"
)

// ListOpenPullRequests lists all pull requests for a repository.
Expand Down
2 changes: 1 addition & 1 deletion github/ratelimit.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/google/go-github/v68/github"
"github.com/google/go-github/v69/github"
)

// CheckRateLimit retrieves the current rate limits for the authenticated user or application.
Expand Down
2 changes: 1 addition & 1 deletion github/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/google/go-github/v68/github"
"github.com/google/go-github/v69/github"
)

// GetLatestRelease fetches the latest release from a GitHub repository.
Expand Down
2 changes: 1 addition & 1 deletion github/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"errors"

"github.com/google/go-github/v68/github"
"github.com/google/go-github/v69/github"
)

// ListRepositories retrieves repositories for the given target (user or organization).
Expand Down
2 changes: 1 addition & 1 deletion github/types.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package github

import (
"github.com/google/go-github/v68/github"
"github.com/google/go-github/v69/github"
)

type Service struct {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/bas24/googletranslatefree v0.0.0-20231117033553-f5859fe54d30
github.com/go-git/go-git/v5 v5.13.2
github.com/gofri/go-github-ratelimit v1.1.0
github.com/google/go-github/v68 v68.0.0
github.com/google/go-github/v69 v69.0.0
github.com/sashabaranov/go-openai v1.36.1
github.com/spf13/cobra v1.8.1
github.com/stretchr/testify v1.10.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8/go.mod h1:wcDNUv
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/go-github/v68 v68.0.0 h1:ZW57zeNZiXTdQ16qrDiZ0k6XucrxZ2CGmoTvcCyQG6s=
github.com/google/go-github/v68 v68.0.0/go.mod h1:K9HAUBovM2sLwM408A18h+wd9vqdLOEqTUCbnRIcx68=
github.com/google/go-github/v69 v69.0.0 h1:YnFvZ3pEIZF8KHmI8xyQQe3mYACdkhnaTV2hr7CP2/w=
github.com/google/go-github/v69 v69.0.0/go.mod h1:xne4jymxLR6Uj9b7J7PyTpkMYstEMMwGZa0Aehh1azM=
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/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ=
Expand Down

0 comments on commit 9f67982

Please sign in to comment.