Skip to main content
Go to Latest
function getBranch
import { getBranch } from "https://deno.land/x/fathym_everything_as_code@v0.1.63-integration/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.