How to use the @lerna/github-client.createGitHubClient function in @lerna/github-client

To help you get started, we’ve selected a few @lerna/github-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lerna / lerna / commands / version / lib / create-release.js View on Github external
function createClient(type) {
  switch (type) {
    case "gitlab":
      return createGitLabClient();
    case "github":
      return createGitHubClient();
    /* istanbul ignore next: guarded by yargs.choices() */
    default:
      throw new ValidationError("ERELEASE", "Invalid release client type");
  }
}

@lerna/github-client

An internal Lerna tool

MIT
Latest version published 1 year ago

Package Health Score

67 / 100
Full package analysis