Skip to content

What is the owner parameter for? #24509

Discussion options

You must be logged in to vote
sayakmukhopadhyay:

I was wondering if I can use the account.login field from the installation.created webhook in the owner field of the get-repository-content API call.

@sayakmukhopadhyay - Thanks for sharing that additional context! The value of account.login in that payload tells you who the owner of the repositories the application was just installed to.

However, knowing solely the owner is not enough to get repository content, since that endpoint also requires the name of the repository ({repo}) and the path ({path}).

It may be helpful to note here we have an Installations API that enables you to get information about the installations of your GitHub App and perform actions withi…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment