Skip to content

Commit e6f4bc1

Browse files
authored
Merge pull request #34 from fluxcd/client_fix
Fix github.Client.Raw() return value
2 parents 8c114ec + 71937fe commit e6f4bc1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

github/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ func makeOptions(opts ...ClientOption) (*clientOptions, error) {
208208
// Using WithOAuth2Token you can specify authentication
209209
// credentials, passing no such ClientOption will allow public read access only.
210210
//
211-
// Basic Auth is not supported because it is deprecated by GitHub, see
211+
// Password-based authentication is not supported because it is deprecated by GitHub, see
212212
// https://developer.github.com/changes/2020-02-14-deprecating-password-auth/
213213
//
214214
// GitHub Enterprise can be used if you specify the domain using WithDomain.

github/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (c *Client) ProviderID() gitprovider.ProviderID {
7777
// Raw returns the Go GitHub client (github.com/google/go-github/v32/github *Client)
7878
// used under the hood for accessing GitHub.
7979
func (c *Client) Raw() interface{} {
80-
return c.c
80+
return c.c.Client()
8181
}
8282

8383
// Organizations returns the OrganizationsClient handling sets of organizations.

0 commit comments

Comments
 (0)