Skip to content

Commit

Permalink
fix: add CHANGELOG.md to blacklist
Browse files Browse the repository at this point in the history
When the semantic-release plugin generates the CHANGELOG.md file and
tries to commit it, it runs into the git commit hook that validates the
format of markdown files, and it fails.

The proper fix would probably be to apply the code-style for the
CHANGELOG.md file between the point where it is generated and it is
commited, but that requires changes in the `release` command of d2, and
since it is based around semantic-release we need to figure out how to
work around it.

The easiest is just to ignore formatting on the CHANGELOG.md file for
now.
  • Loading branch information
varl committed Nov 22, 2019
1 parent 9b01d29 commit 4a59f25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const blacklist = [
'vendor',
'dest',
'.d2',
'CHANGELOG.md',
]

// whitelists for files
Expand Down

0 comments on commit 4a59f25

Please sign in to comment.