conventional-changelog-conventionalcommits-parseropts
Advanced tools
Comparing version 4.1.2 to 4.2.0
{ | ||
"name": "conventional-changelog-conventionalcommits-parseropts", | ||
"version": "4.1.2", | ||
"version": "4.2.0", | ||
"description": "conventional-changelog conventionalcommits.org preset", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -9,25 +9,18 @@ 'use strict' | ||
/** | ||
* Handlebar partials for various property substitutions based on commit context. | ||
*/ | ||
const owner = '{{#if this.owner}}{{~this.owner}}{{else}}{{~@root.owner}}{{/if}}' | ||
const host = '{{~@root.host}}' | ||
const repository = '{{#if this.repository}}{{~this.repository}}{{else}}{{~@root.repository}}{{/if}}' | ||
module.exports = function (config) { | ||
config = defaultConfig(config) | ||
const commitUrlFormat = expandTemplate(config.commitUrlFormat, { | ||
host, | ||
owner, | ||
repository | ||
host: '{{~@root.host}}', | ||
owner: '{{~@root.owner}}', | ||
repository: '{{~@root.repository}}' | ||
}) | ||
const compareUrlFormat = expandTemplate(config.compareUrlFormat, { | ||
host, | ||
owner, | ||
repository | ||
host: '{{~@root.host}}', | ||
owner: '{{~@root.owner}}', | ||
repository: '{{~@root.repository}}' | ||
}) | ||
const issueUrlFormat = expandTemplate(config.issueUrlFormat, { | ||
host, | ||
owner, | ||
repository, | ||
host: '{{~@root.host}}', | ||
owner: '{{~@root.owner}}', | ||
repository: '{{~@root.repository}}', | ||
id: '{{this.issue}}' | ||
@@ -34,0 +27,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
17248
237