(
cachedFetch: CachedFetchFunction,
ref: RepoRef,
options: Parameters<typeof $fetch>[1] = {},
)
| 519 | } |
| 520 | |
| 521 | export async function getRepositoryStars( |
| 522 | cachedFetch: CachedFetchFunction, |
| 523 | ref: RepoRef, |
| 524 | options: Parameters<typeof $fetch>[1] = {}, |
| 525 | ): Promise<number | null> { |
| 526 | const meta = await getRepoMeta(cachedFetch, ref, options) |
| 527 | return meta?.stars ?? null |
| 528 | } |
no test coverage detected