Skip to content

Latest commit

 

History

History

teams

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

garden github-teams

Get a list of GitHub organization teams.

Usage

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

(async () => {
  const teams = await githubTeams();

  console.log(teams && teams.join(', '));
})();

Arguments

  • org GitHub organization name; defaults to the owner provided by githubRepository.
  • user user to get team membership for; defaults to the current user.
  • path optional path to a git directory; defaults to the current directory.
  • token optional GitHub personal access token; defaults to the value provided by githubToken.

Command

garden github-teams \
       [--user [user]] \
       [--path <path>] \
       [--token <token>] \
       <org>