Skip to content

Latest commit

 

History

History

repository

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

garden github-repository

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

Usage

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

(async () => {
  const repository = await githubRepository(path?: string);

  if (repository) {
    const { owner, repo } = repository;

    console.log(`${owner}/${repo}`);
  }
})();

Arguments

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

Command

garden github-repository [path]