Skip to main content

Get repository

Read a repository's main details, such as its default branch and visibility.

Command in the GitHub toolkit · id ooa.github/get_repository · 4 inputs (3 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Endpoint addressStringNohttps://api.github.comAPI address. Keep the default for github.com; for GitHub Enterprise Server use https://github.yourcompany.com/api/v3.
TokenCredentialYesPersonal access token or app token from the vault, with access to the repository. Or leave it empty and choose a connection that signs in, which gets and renews the token.
OwnerStringYesUser or organization that owns the repository, e.g. acme-corp.
RepoStringYesRepository name without the owner, e.g. billing-service.

Outputs​

OutputTypeWhat it is
repositoryDictionaryname, full_name, description, private, default_branch, open_issues, archived, url.
default_branchStringDefault branch, e.g. main.