Skip to content

Commit

Permalink
🐛 Fix displaying commit body in the changelog
Browse files Browse the repository at this point in the history
Now it should have proper spacing between the body and the description
  • Loading branch information
priestine committed Jul 3, 2020
1 parent 94ab6ab commit e55f93f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,26 +304,26 @@ Here is a JSON example with the default settings for @priestine/versions. You ca
{
"match": ["^:ambulance:", "^:bug:", "^:lock:"],
"bumps": "patch",
"groupTitleFormat": "\n\n## :bug: ∘ :ambulance: ∘ :lock: Fixes\n\n",
"groupTitleFormat": "\n\n## :bug: ∘ :ambulance: ∘ :lock: Fixes\n",
"groupDescription": "",
"itemDescriptionFormat": "- %commit.description% (%commit.abbrevHash%)",
"itemBodyFormat": "\n\n> %commit.body%\n\n",
"itemBodyFormat": "> %commit.body%\n",
},
{
"match": ["^:sparkles:"],
"bumps": "minor",
"groupTitleFormat": "\n\n## :sparkles: Features\n\n",
"groupTitleFormat": "\n\n## :sparkles: Features\n",
"groupDescription": "",
"itemDescriptionFormat": "- %commit.description% (%commit.abbrevHash%)",
"itemBodyFormat": "\n\n> %commit.body%\n\n",
"itemBodyFormat": "> %commit.body%\n",
},
{
"match": ["^:boom:"],
"bumps": "major",
"groupTitleFormat": "\n\n## :boom: Breaking Changes\n\n",
"groupTitleFormat": "\n\n## :boom: Breaking Changes\n",
"groupDescription": "",
"itemDescriptionFormat": "- %commit.description% (%commit.abbrevHash%)",
"itemBodyFormat": "\n\n> %commit.body%\n\n",
"itemBodyFormat": "> %commit.body%\n",
}
]
```
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,23 +115,23 @@ ExtendPipe.empty<IAppCtx, Partial<IAppCtx>>()
groupTitleFormat: '\n\n## :bug: ∘ :ambulance: ∘ :lock: Fixes\n',
groupDescription: '',
itemDescriptionFormat: '- %commit.description% (%commit.abbrevHash%)',
itemBodyFormat: '> %commit.body%',
itemBodyFormat: '> %commit.body%\n',
},
{
match: ['^:sparkles:'],
bumps: 'minor',
groupTitleFormat: '\n\n## :sparkles: Features\n',
groupDescription: '',
itemDescriptionFormat: '- %commit.description% (%commit.abbrevHash%)',
itemBodyFormat: '> %commit.body%',
itemBodyFormat: '> %commit.body%\n',
},
{
match: ['^:boom:'],
bumps: 'major',
groupTitleFormat: '\n\n## :boom: Breaking Changes\n',
groupDescription: '',
itemDescriptionFormat: '- %commit.description% (%commit.abbrevHash%)',
itemBodyFormat: '> %commit.body%',
itemBodyFormat: '> %commit.body%\n',
},
],
})

0 comments on commit e55f93f

Please sign in to comment.