Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
function getBranch
import { getBranch } from "https://deno.land/x/fathym_everything_as_code@v0.1.71/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.