name | example | route | scope | type |
---|---|---|---|---|
Get a repository |
octokit.rest.repos.get({ owner, repo }) |
GET /repos/{owner}/{repo} |
repos |
API method |
The parent
and source
objects are present when the repository is a fork. parent
is the repository this repository was forked from, source
is the ultimate source for the network.
octokit.rest.repos.get({
owner,
repo,
});
name | required | description |
---|---|---|
owner | yes | |
repo | yes |
See also: GitHub Developer Guide documentation.