Skip to content

Commit c155e92

Browse files
committed
Refactor update logic for github and upgrade to v0.45.2
If implemented, we now use reflect package to dynamically create and update github repositories before reconciliation. Signed-off-by: Soule BA <[email protected]>
1 parent 0526032 commit c155e92

23 files changed

+102
-66
lines changed

github/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package github
1919
import (
2020
"fmt"
2121

22-
"github.com/google/go-github/v42/github"
22+
"github.com/google/go-github/v45/github"
2323

2424
"github.com/fluxcd/go-git-providers/gitprovider"
2525
)

github/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"context"
2121
"strings"
2222

23-
"github.com/google/go-github/v42/github"
23+
"github.com/google/go-github/v45/github"
2424

2525
"github.com/fluxcd/go-git-providers/gitprovider"
2626
)
@@ -77,7 +77,7 @@ func (c *Client) ProviderID() gitprovider.ProviderID {
7777
return ProviderID
7878
}
7979

80-
// Raw returns the Go GitHub client (github.com/google/go-github/v42/github *Client)
80+
// Raw returns the Go GitHub client (github.com/google/go-github/v45/github *Client)
8181
// used under the hood for accessing GitHub.
8282
func (c *Client) Raw() interface{} {
8383
return c.c.Client()

github/client_organization_teams.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package github
1919
import (
2020
"context"
2121

22-
"github.com/google/go-github/v42/github"
22+
"github.com/google/go-github/v45/github"
2323

2424
"github.com/fluxcd/go-git-providers/gitprovider"
2525
)

github/client_repositories_org.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"context"
2121
"errors"
2222

23-
"github.com/google/go-github/v42/github"
23+
"github.com/google/go-github/v45/github"
2424

2525
"github.com/fluxcd/go-git-providers/gitprovider"
2626
)

github/client_repository_branch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"context"
2121

2222
"github.com/fluxcd/go-git-providers/gitprovider"
23-
"github.com/google/go-github/v42/github"
23+
"github.com/google/go-github/v45/github"
2424
)
2525

2626
// BranchClient implements the gitprovider.BranchClient interface.

github/client_repository_commit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"fmt"
2222

2323
"github.com/fluxcd/go-git-providers/gitprovider"
24-
"github.com/google/go-github/v42/github"
24+
"github.com/google/go-github/v45/github"
2525
)
2626

2727
var githubNewFileMode = "100644"

github/client_repository_deploykey.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"context"
2121
"errors"
2222

23-
"github.com/google/go-github/v42/github"
23+
"github.com/google/go-github/v45/github"
2424

2525
"github.com/fluxcd/go-git-providers/gitprovider"
2626
)

github/client_repository_file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"io/ioutil"
2323

2424
"github.com/fluxcd/go-git-providers/gitprovider"
25-
"github.com/google/go-github/v42/github"
25+
"github.com/google/go-github/v45/github"
2626
)
2727

2828
// FileClient implements the gitprovider.FileClient interface.

github/client_repository_pullrequest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"context"
2121

2222
"github.com/fluxcd/go-git-providers/gitprovider"
23-
"github.com/google/go-github/v42/github"
23+
"github.com/google/go-github/v45/github"
2424
)
2525

2626
// PullRequestClient implements the gitprovider.PullRequestClient interface.

github/example_organization_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
"github.com/fluxcd/go-git-providers/github"
99
"github.com/fluxcd/go-git-providers/gitprovider"
10-
gogithub "github.com/google/go-github/v42/github"
10+
gogithub "github.com/google/go-github/v45/github"
1111
)
1212

1313
// checkErr is used for examples in this repository.

0 commit comments

Comments
 (0)