git-conventional-commits
Advanced tools
Comparing version 2.6.2 to 2.6.3
@@ -230,4 +230,5 @@ module.exports = function (config) { | ||
if (config.commitRangeUrl) { | ||
const commitRangeUrl = config.commitRangeUrl.replace("%from%", formCommitHash).replace("%to%", | ||
toCommitHash); | ||
const commitRangeUrl = config.commitRangeUrl | ||
.replace("%from%", formCommitHash) | ||
.replace("%to%", toCommitHash); | ||
return markdownLink(`${formCommitHash.substring(0, 7)}...${toCommitHash.substring(0, 7)}`, commitRangeUrl); | ||
@@ -234,0 +235,0 @@ } |
@@ -32,3 +32,3 @@ const execAsync = require('./execAsync'); | ||
async function getCommitLog(from, to = 'HEAD') { | ||
const gitLogFormat = ["%h", "%aI", "%s", "%b"].join(LOG_FIELD_SEPARATOR) + LOG_COMMIT_DELIMITER; | ||
const gitLogFormat = ["%H", "%aI", "%s", "%b"].join(LOG_FIELD_SEPARATOR) + LOG_COMMIT_DELIMITER; | ||
const gitLog = await execAsync(`git log --reverse --format=${gitLogFormat} ${from ? `${from}..` : ''}${to}`, {encoding: 'UTF-8'}) | ||
@@ -35,0 +35,0 @@ .then(result => result.split(LOG_COMMIT_DELIMITER + '\n').slice(0, -1)) |
@@ -105,3 +105,3 @@ const Git = require("./git"); | ||
} else { | ||
console.warn(`[WARN] ${commit.hash ? `${commit.hash} - ` : ''}Invalid commit subject format: '${commit.subject}'`); | ||
console.warn(`[WARN] ${commit.hash ? `${commit.hash.substring(0, 7)} - ` : ''}Invalid commit subject format: '${commit.subject}'`); | ||
return conventionalSubject; | ||
@@ -108,0 +108,0 @@ } |
{ | ||
"name": "git-conventional-commits", | ||
"version": "2.6.2", | ||
"version": "2.6.3", | ||
"description": "git conventional commits util", | ||
@@ -5,0 +5,0 @@ "licence": "GPLv3", |
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
75204
750