Skip to content

Commit

Permalink
Add default header (resolves #108)
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Dec 23, 2024
1 parent f86194d commit 6197330
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ Default value: `undefined`

### `header`

Default value: `"# Changelog"`

Set the main header for the changelog document:

```json
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class ConventionalChangelog extends Plugin {
}

async writeChangelog() {
const { infile, header: _header = '' } = this.options;
const { infile, header: _header = '# Changelog' } = this.options;
let { changelog } = this.config.getContext();
const header = _header.split(/\r\n|\r|\n/g).join(EOL);

Expand Down

0 comments on commit 6197330

Please sign in to comment.