What is the owner parameter for? #24509
-
Hi I can see that the Also, how do I get the owners from an |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
sayakmukhopadhyay:
@sayakmukhopadhyay - That’s correct! 👍
sayakmukhopadhyay:
This is a great question. Before sharing any specific advice, I’m wondering which endpoint are you asking about, and which specific resource are you interested in that would require the use of the name of the account as the |
Beta Was this translation helpful? Give feedback.
-
francisfuzz:
I using the |
Beta Was this translation helpful? Give feedback.
-
sayakmukhopadhyay:
@sayakmukhopadhyay - Thanks for sharing that additional context! The value of However, knowing solely the owner is not enough to get repository content, since that endpoint also requires the name of the repository ( 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 within those installations. In that API, there’s an endpoint for listing repositories accessible to the app installation. That can be helpful to determine which repositories your installation has access to at any given time before making any specific calls to any one repository. I hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Hi @francisfuzz |
Beta Was this translation helpful? Give feedback.
@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…