UNPKG

@atomist/automation-client

Version:
28 lines 940 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class SimpleRepoId { constructor(owner, repo, url = `${owner}/${repo}`) { this.owner = owner; this.repo = repo; this.url = url; } } exports.SimpleRepoId = SimpleRepoId; var ProviderType; (function (ProviderType) { ProviderType[ProviderType["bitbucket_cloud"] = 0] = "bitbucket_cloud"; ProviderType[ProviderType["github_com"] = 1] = "github_com"; ProviderType[ProviderType["ghe"] = 2] = "ghe"; ProviderType[ProviderType["bitbucket"] = 3] = "bitbucket"; })(ProviderType = exports.ProviderType || (exports.ProviderType = {})); function isRemoteRepoRef(r) { const q = r; return !!q.setUserConfig; } exports.isRemoteRepoRef = isRemoteRepoRef; function isLocalRepoRef(r) { const maybeLocalRR = r; return !!maybeLocalRR.baseDir; } exports.isLocalRepoRef = isLocalRepoRef; //# sourceMappingURL=RepoId.js.map