How to use @teleporthq/teleport-github-gateway - 2 common examples

To help you get started, we’ve selected a few @teleporthq/teleport-github-gateway 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 teleporthq / teleport-code-generators / packages / teleport-publisher-github / src / utils.ts View on Github external
const { authMeta, masterBranch, commitBranch, commitMessage, repository, repositoryOwner } = meta

  const repositoryIdentity: RepositoryIdentity = {
    username: repositoryOwner,
    repo: repository,
    ref: masterBranch,
  }

  const gitCommitMeta: GithubCommitMeta = {
    repositoryIdentity,
    files,
    branchName: commitBranch,
    commitMessage,
  }

  const githubGateway = createGithubGateway(authMeta)
  return githubGateway.commitFilesToRepo(gitCommitMeta)
}
github teleporthq / teleport-code-generators / packages / teleport-project-packer / src / utils.ts View on Github external
export const fetchTemplate = async (template: RemoteTemplateDefinition) => {
  const authData = template.auth || {}
  const githubGateway = createGithubGateway(authData)
  return githubGateway.getRepository(template)
}

@teleporthq/teleport-github-gateway

Teleport github gateway - use this package if you require a github integration

MIT
Latest version published 18 days ago

Package Health Score

73 / 100
Full package analysis

Popular @teleporthq/teleport-github-gateway functions

Similar packages