diff --git a/README.md b/README.md index c2e45bc..e7289a0 100644 --- a/README.md +++ b/README.md @@ -55,9 +55,9 @@ changelog('v1.0.0'); 2021.08.25 feature: -- (package) eslint-plugin-putout v9.2.1 -- (package) putout v19.0.0 -- (changelog) convert ot ESM +- a1d0d14 (package) eslint-plugin-putout v9.2.1 +- a1d0d15 (package) putout v19.0.0 +- a1d0d16 (changelog) convert ot ESM `; ``` diff --git a/lib/build-command.js b/lib/build-command.js index 6ea78bd..d0ec8a7 100644 --- a/lib/build-command.js +++ b/lib/build-command.js @@ -1,6 +1,6 @@ import rendy from 'rendy'; const gitTemplate = [ - 'git log {{ version }}..HEAD --pretty=format:"- %s"', + 'git log {{ version }}..HEAD --pretty=format:"- %h %s"', '--grep "{{ category }}("', '--grep "{{ category }}: "', '|', diff --git a/lib/build-command.spec.js b/lib/build-command.spec.js index 9aecf8a..0a05e47 100644 --- a/lib/build-command.spec.js +++ b/lib/build-command.spec.js @@ -4,7 +4,7 @@ import buildCommand from './build-command.js'; test('changelog: build-command', (t) => { const result = buildCommand('fix', 'v1.0.0'); const expected = [ - 'git log v1.0.0..HEAD --pretty=format:"- %s"', + 'git log v1.0.0..HEAD --pretty=format:"- %h %s"', '--grep "fix(" --grep "fix: "', '|', 'sed "s/fix(/(/g"',