conventional-github-releaser
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -0,1 +1,13 @@ | ||
<a name="1.1.3"></a> | ||
## [1.1.3](https://github.com/conventional-changelog/conventional-github-releaser/compare/v1.1.2...v1.1.3) (2016-06-12) | ||
### Bug Fixes | ||
* **cli:** config option issue (#19) ([a958ea9](https://github.com/conventional-changelog/conventional-github-releaser/commit/a958ea9)) | ||
* **cli:** fix unit test error ([6a80929](https://github.com/conventional-changelog/conventional-github-releaser/commit/6a80929)) | ||
* **test:** use github user from env validable ([c787ea4](https://github.com/conventional-changelog/conventional-github-releaser/commit/c787ea4)) | ||
<a name="1.1.2"></a> | ||
@@ -2,0 +14,0 @@ ## [1.1.2](https://github.com/conventional-changelog/conventional-github-releaser/compare/v1.1.1...v1.1.2) (2016-04-17) |
28
cli.js
@@ -5,2 +5,3 @@ #!/usr/bin/env node | ||
var conventionalGithubReleaser = require('./'); | ||
var resolve = require('path').resolve; | ||
@@ -33,3 +34,2 @@ var cli = meow({ | ||
' Example of a config script: https://github.com/conventional-changelog/conventional-changelog-angular/blob/master/index.js', | ||
' This value is ignored if preset is specified', | ||
'', | ||
@@ -50,2 +50,3 @@ ' -c, --context A filepath of a javascript that is used to define template variables' | ||
var config; | ||
var flags = cli.flags; | ||
@@ -60,16 +61,22 @@ | ||
if (flags.context) { | ||
templateContext = require(flags.context); | ||
templateContext = require(resolve(process.cwd(), flags.context)); | ||
} | ||
if (flags.gitRawCommitsOpts) { | ||
gitRawCommitsOpts = require(flags.gitRawCommitsOpts); | ||
if (flags.config) { | ||
config = require(resolve(process.cwd(), flags.config)); | ||
} else { | ||
config = {}; | ||
} | ||
if (flags.parserOpts) { | ||
parserOpts = require(flags.parserOpts); | ||
if (config.gitRawCommitsOpts) { | ||
gitRawCommitsOpts = config.gitRawCommitsOpts; | ||
} | ||
if (flags.writerOpts) { | ||
writerOpts = require(flags.writerOpts); | ||
if (config.parserOpts) { | ||
parserOpts = config.parserOpts; | ||
} | ||
if (config.writerOpts) { | ||
writerOpts = config.writerOpts; | ||
} | ||
} catch (err) { | ||
@@ -85,4 +92,3 @@ console.error('Failed to get file. ' + err); | ||
}, | ||
releaseCount: flags.releaseCount, | ||
config: flags.config | ||
releaseCount: flags.releaseCount | ||
}; | ||
@@ -98,3 +104,3 @@ | ||
token: flags.token || process.env.CONVENTIONAL_GITHUB_RELEASER_TOKEN | ||
}, changelogOpts, templateContext, function(err, data) { | ||
}, changelogOpts, templateContext, gitRawCommitsOpts, parserOpts, writerOpts, function(err, data) { | ||
if (err) { | ||
@@ -101,0 +107,0 @@ console.error(err.toString()); |
{ | ||
"name": "conventional-github-releaser", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Make a new GitHub release from git metadata", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/conventional-changelog/conventional-github-releaser", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
206
4
13297
4
1
0
1