fetchRepo
The fetcher behind the repository pin card.
Fetch repository data.
fetchRepo(options, config: CardConfig): Promise<RepositoryData>| Option | Type | Required | What it is |
|---|---|---|---|
username | string | undefined | yes | — |
reponame | string | undefined | yes | — |
include_prs_authored | boolean | undefined | no | — |
include_prs_commented | boolean | undefined | no | — |
include_prs_reviewed | boolean | undefined | no | — |
include_issues_authored | boolean | undefined | no | — |
include_issues_commented | boolean | undefined | no | — |
Returns Promise<RepositoryData> — Repository data.
Naming the repository
Section titled “Naming the repository”repo may carry the owner itself — octocat/hello-world — in which case it wins over username.
That is what lets one option name any repository, rather than only one of the user’s own.
The optional counts
Section titled “The optional counts”include_prs_authored, include_prs_commented, include_prs_reviewed,
include_issues_authored and include_issues_commented each add a search request, scoped to this
repository rather than to the user.