conventional-changelog-writer
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -0,1 +1,11 @@ | ||
<a name="1.4.1"></a> | ||
## [1.4.1](https://github.com/conventional-changelog/conventional-changelog-writer/compare/v1.4.0...v1.4.1) (2016-05-10) | ||
### Bug Fixes | ||
* **context:** auto link references if repoUrl([30bb234](https://github.com/conventional-changelog/conventional-changelog-writer/commit/30bb234)) | ||
<a name="1.4.0"></a> | ||
@@ -2,0 +12,0 @@ # [1.4.0](https://github.com/conventional-changelog/conventional-changelog-writer/compare/v1.3.0...v1.4.0) (2016-05-10) |
@@ -22,3 +22,3 @@ 'use strict'; | ||
if (!_.isBoolean(context.linkReferences) && context.repository && context.commit && context.issue) { | ||
if (!_.isBoolean(context.linkReferences) && (context.repository || context.repoUrl) && context.commit && context.issue) { | ||
context.linkReferences = true; | ||
@@ -25,0 +25,0 @@ } |
{ | ||
"name": "conventional-changelog-writer", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Write logs based on conventional commits and templates", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/conventional-changelog/conventional-changelog-writer", |
@@ -120,3 +120,3 @@ # [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage Status][coveralls-image]][coveralls-url] | ||
Type: `boolean` Default: `true` if `repository`, `commit` and `issue` are truthy | ||
Type: `boolean` Default: `true` if (`context.repository` or `context.repoUrl`), `context.commit` and `context.issue` are truthy | ||
@@ -129,3 +129,3 @@ Should all references be linked? | ||
Commit keyword in the url if `options.linkReferences === true`. | ||
Commit keyword in the url if `context.linkReferences === true`. | ||
@@ -136,3 +136,3 @@ ##### issue | ||
Issue or pull request keyword in the url if `options.linkReferences === true`. | ||
Issue or pull request keyword in the url if `context.linkReferences === true`. | ||
@@ -139,0 +139,0 @@ ##### date |
@@ -90,3 +90,3 @@ 'use strict'; | ||
describe('link', function() { | ||
it('should link if repository, commit and issue are truthy', function(done) { | ||
it('should auto link if `context.repository`, `context.commit` and `context.issue` are truthy', function(done) { | ||
var i = 0; | ||
@@ -98,3 +98,4 @@ | ||
title: 'this is a title', | ||
repository: 'https://github.com/a/b' | ||
host: 'https://github.com', | ||
repository: 'a/b' | ||
})) | ||
@@ -112,6 +113,26 @@ .pipe(through(function(chunk, enc, cb) { | ||
it('should not link if repository, commit and issue are not truthy', function(done) { | ||
it('should auto link if `context.repoUrl`, `context.commit` and `context.issue` are truthy', function(done) { | ||
var i = 0; | ||
getStream() | ||
.pipe(conventionalChangelogWriter({ | ||
version: '0.5.0', | ||
title: 'this is a title', | ||
repoUrl: 'https://github.com/a/b' | ||
})) | ||
.pipe(through(function(chunk, enc, cb) { | ||
expect(chunk.toString()).to.include('https://github.com/a/b/commits/13f3160'); | ||
i++; | ||
cb(null); | ||
}, function() { | ||
expect(i).to.equal(1); | ||
done(); | ||
})); | ||
}); | ||
it('should not auto link', function(done) { | ||
var i = 0; | ||
getStream() | ||
.pipe(conventionalChangelogWriter()) | ||
@@ -118,0 +139,0 @@ .pipe(through(function(chunk, enc, cb) { |
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
100562
2483