@codefresh-io/cf-git-providers
Advanced tools
Comparing version
@@ -18,3 +18,4 @@ import { Provider, Repository, Branch, Webhook, ProviderName, User, PullRequest, RepositoryPermission, PermissionScopes } from './types'; | ||
repo: string; | ||
autoInit: boolean; | ||
autoInit?: boolean; | ||
private?: boolean; | ||
}): Promise<Repository>; | ||
@@ -21,0 +22,0 @@ private performAPICall; |
@@ -20,3 +20,4 @@ import { ProviderName, Provider, Branch, Repository, Webhook, User, PullRequest, RepositoryPermission, PermissionScopes } from './types'; | ||
repo: string; | ||
autoInit: boolean; | ||
autoInit?: boolean; | ||
private?: boolean; | ||
}): Promise<Repository>; | ||
@@ -23,0 +24,0 @@ getName(): ProviderName; |
@@ -31,3 +31,4 @@ import { ProviderName, Provider, Branch, Repository, Webhook, CommitStatus, User, PullRequest, RepositoryPermission, PermissionScopes } from './types'; | ||
repo: string; | ||
autoInit: boolean; | ||
autoInit?: boolean; | ||
private?: boolean; | ||
}): Promise<Repository>; | ||
@@ -34,0 +35,0 @@ listBranches(opt: { |
@@ -223,6 +223,6 @@ "use strict"; | ||
if (login === opt.owner) { | ||
[err, res] = await helpers_1.to(this.githubClient.repos.createForAuthenticatedUser({ name: opt.repo, auto_init: opt.autoInit })); | ||
[err, res] = await helpers_1.to(this.githubClient.repos.createForAuthenticatedUser({ name: opt.repo, auto_init: opt.autoInit, private: opt.private })); | ||
} | ||
else { | ||
[err, res] = await helpers_1.to(this.githubClient.repos.createInOrg({ org: opt.owner, name: opt.repo, auto_init: opt.autoInit })); | ||
[err, res] = await helpers_1.to(this.githubClient.repos.createInOrg({ org: opt.owner, name: opt.repo, auto_init: opt.autoInit, private: opt.private })); | ||
} | ||
@@ -229,0 +229,0 @@ if (err) { |
@@ -16,3 +16,4 @@ import { Provider, Branch, Repository, Webhook, ProviderName, User, PullRequest, RepositoryPermission, PermissionScopes } from './types'; | ||
repo: string; | ||
autoInit: boolean; | ||
autoInit?: boolean; | ||
private?: boolean; | ||
}): Promise<Repository>; | ||
@@ -19,0 +20,0 @@ private performAPICall; |
@@ -84,3 +84,4 @@ export declare type ProviderConstructor = new (opt: { | ||
repo: string; | ||
autoInit: boolean; | ||
autoInit?: boolean; | ||
private?: boolean; | ||
}): Promise<Repository>; | ||
@@ -87,0 +88,0 @@ createCommitStatus(opt: { |
{ | ||
"name": "@codefresh-io/cf-git-providers", | ||
"version": "0.4.5", | ||
"version": "0.4.6", | ||
"description": "An NPM module/CLI for interacting with various git providers", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
224058
0.11%3411
0.15%