Skip to content

Latest commit

 

History

History

branch

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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]