Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function tryGetRepository
import { tryGetRepository } from "https://deno.land/x/fathym_everything_as_code@v0.1.72/src/octokit/tryGetRepository.ts";

Try to find a repository.

Parameters

octokit: Octokit

The Octokit instance.

owner: string

The owner of the repository.

repository: string

The repository.

Returns

Promise<Repository | undefined>

The repository if it exists, otherwise undefined.