Skip to content

Commit

Permalink
fix: Correct changelog headings
Browse files Browse the repository at this point in the history
  • Loading branch information
richtea committed Jan 18, 2023
1 parent 65b72cc commit 6e2b4fe
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## Added
### Added

- Add the `fail-on-empty-release-notes` input to enable reporting an error if there are no release notes in the
`[Unreleased]` section.
Expand Down
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/plugins/release-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function parseReleaseHeadingTextOnly(node: Heading, file: VFile): void {
const version = semver.parse(m[1]);

if (!version) {
const msg = file.message('Unable to parse semantic version', textNode.position);
const msg = file.message('Unable to parse semantic version from level 2 heading', textNode.position);
msg.fatal = true;
msg.actual = m[1];
return;
Expand Down Expand Up @@ -59,7 +59,7 @@ function parseReleaseHeadingWithLink(node: Heading, file: VFile): void {
const version = semver.parse(linkNode.label);

if (!version) {
const msg = file.message('Unable to parse semantic version', linkNode.position);
const msg = file.message('Unable to parse semantic version from level 2 heading', linkNode.position);
msg.fatal = true;
msg.actual = linkNode.label ?? null;
return;
Expand Down

0 comments on commit 6e2b4fe

Please sign in to comment.