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

Get a branch from a repository.

Parameters

octokit: Octokit

The Octokit instance.

owner: string

The owner of the repository.

repo: string

The repository where the branch resides.

branchName: string

The name of the branch.

Returns

Promise<Branch>

The branch.