Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 445 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 445 Bytes

garden github-branch

Get the current GitHub branch name provided by a CI environment or extracted from a git repository.

Usage

import { githubBranch } from '@zendeskgarden/scripts';

(async () => {
  const branch = await githubBranch(path?: string);

  console.log(branch);
})();

Arguments

  • path optional path to a git directory; defaults to the current directory.

Command

garden github-branch [path]