File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -242,15 +242,15 @@ client_ to look up specific installations of the application and then construct
242
242
an _ installation client_ to make API calls:
243
243
244
244
``` go
245
- func getOrganizationClient (cc githubapp .ClientCreator , org name ) (*github .Client , error ) {
245
+ func getOrganizationClient (cc githubapp .ClientCreator , org string ) (*github .Client , error ) {
246
246
// create a client to perform actions as the application
247
247
appClient , err := cc.NewAppClient ()
248
248
if err != nil {
249
249
return nil , err
250
250
}
251
251
252
252
// look up the installation ID for a particular organization
253
- installations := githubapp.NewInstallationsService (app )
253
+ installations := githubapp.NewInstallationsService (appClient )
254
254
install := installations.GetByOwner (context.Background (), org)
255
255
256
256
// create a client to perform actions on that specific organization
You can’t perform that action at this time.
0 commit comments