Get a list of GitHub organization teams.
import { githubTeams } from '@zendeskgarden/scripts';
(async () => {
const teams = await githubTeams();
console.log(teams && teams.join(', '));
})();
org
GitHub organization name; defaults to the owner provided bygithubRepository
.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 bygithubToken
.
garden github-teams \
[--user [user]] \
[--path <path>] \
[--token <token>] \
<org>