Comparing version 2.0.0 to 2.0.1
@@ -38,2 +38,4 @@ "use strict"; | ||
return nunjucks.render(this.blueprint.getTemplateName(), { | ||
org: this.repo.org, | ||
repo: this.repo.repo, | ||
version: version, | ||
@@ -40,0 +42,0 @@ codename: codename, |
@@ -0,1 +1,6 @@ | ||
export interface Issue { | ||
org: string; | ||
repo: string; | ||
id: string; | ||
} | ||
export declare class Commit { | ||
@@ -11,5 +16,5 @@ raw: string; | ||
bcMessage: string; | ||
closes: string[]; | ||
closes: Issue[]; | ||
constructor(raw?: string); | ||
toString(): string; | ||
} |
@@ -1,4 +0,4 @@ | ||
export { Commit } from './commit'; | ||
export { Commit, Issue } from './commit'; | ||
export { IBlueprint } from './blueprint'; | ||
export { Changelog } from './changelog'; | ||
export { GitRepo } from './util/git'; |
export declare class GitRepo { | ||
pathToRepo: string; | ||
constructor(pathToRepo?: string); | ||
org: string; | ||
repo: string; | ||
constructor(pathToRepo?: string, remote?: string); | ||
currentBranch(): string; | ||
@@ -20,3 +22,4 @@ rawCommits({debug, format, from, to}: { | ||
}): string; | ||
private computeRemoteInfo(remote); | ||
private executeCommand(command, args, debug); | ||
} |
@@ -6,5 +6,7 @@ "use strict"; | ||
var GitRepo = (function () { | ||
function GitRepo(pathToRepo) { | ||
function GitRepo(pathToRepo, remote) { | ||
if (pathToRepo === void 0) { pathToRepo = '.'; } | ||
if (remote === void 0) { remote = 'origin'; } | ||
this.pathToRepo = path_1.resolve(pathToRepo); | ||
this.computeRemoteInfo(remote); | ||
} | ||
@@ -32,2 +34,7 @@ GitRepo.prototype.currentBranch = function () { | ||
}; | ||
GitRepo.prototype.computeRemoteInfo = function (remote) { | ||
var remoteUrlParts = this.executeCommand('remote', ['get-url', remote], undefined).split('/'); | ||
this.repo = remoteUrlParts.pop(); | ||
this.org = remoteUrlParts.pop(); | ||
}; | ||
GitRepo.prototype.executeCommand = function (command, args, debug) { | ||
@@ -34,0 +41,0 @@ args.unshift(command); |
{ | ||
"name": "changez", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Yet another flexible changelog generator.", | ||
@@ -28,3 +28,2 @@ "main": "./dist/lib/index.js", | ||
"chai": "^3.5.0", | ||
"changez-angular": "^1.0.1", | ||
"mocha": "^3.1.2", | ||
@@ -31,0 +30,0 @@ "ts-node": "^1.6.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43521
12
39
962
5