Skip to content

Commit

Permalink
feature: changelog-io: add ability to put commit hash
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Mar 6, 2023
1 parent d613572 commit 711a01e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
`;
```

Expand Down
2 changes: 1 addition & 1 deletion lib/build-command.js
Original file line number Diff line number Diff line change
@@ -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 }}: "',
'|',
Expand Down
2 changes: 1 addition & 1 deletion lib/build-command.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"',
Expand Down

0 comments on commit 711a01e

Please sign in to comment.