offline-github-changelog
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -35,3 +35,3 @@ const { spawnSync } = require("child_process"); | ||
"--merges", | ||
"--pretty=%s|%b ([%an](mailto://%ae))", | ||
"--pretty=%s|%b ([%an](mailto://%ae))=====", | ||
lastHash ? `${lastHash}..${hash}` : hash | ||
@@ -43,5 +43,5 @@ ]); | ||
.toString() | ||
.split("\n") | ||
.split("=====\n") | ||
.filter(line => line && line.startsWith('Merge pull request')) | ||
.map(line => line.replace(/Merge pull request #(\S+) from [^|]+\|(.+)/, `[#$1](${repositoryUrl}/pull/$1) $2`)) | ||
.map(line => line.replace(/\n/g, '').replace(/Merge pull request #(\S+) from [^|]+\|(.+)/, `[#$1](${repositoryUrl}/pull/$1) $2`)) | ||
@@ -48,0 +48,0 @@ return { |
{ | ||
"name": "offline-github-changelog", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A changelog generator for Github projects that only uses the Git history", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
4986