Skip to content

Commit

Permalink
build(changelog): changelog now includes relevant reverts
Browse files Browse the repository at this point in the history
  • Loading branch information
Xunnamius committed Nov 29, 2020
1 parent 396af16 commit d4ccacb
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,39 @@ All notable changes to this project will be documented in this file.
The format is based on [Conventional Commits](https://conventionalcommits.org),
and this project adheres to [Semantic Versioning](https://semver.org).

# [2.2.0](https://github.com/Xunnamius/workflow-playground/compare/v2.1.4...v2.2.0) (2020-11-29)

### Bug Fixes

- **Actions:** bring metadata collection in-line with new format
([a62380b](https://github.com/Xunnamius/workflow-playground/commit/a62380bc4f75c42d74640916fde44fb5811f150d))
- **Config:** changelog config honors skip commands, leaves reverts alone
([823f8b5](https://github.com/Xunnamius/workflow-playground/commit/823f8b5434e07250b8aefbd9f4a49e0ea05cc9e5))
- **Config:** fix broken changelog.config.js structure
([bd10f44](https://github.com/Xunnamius/workflow-playground/commit/bd10f4414522a0c6b406adb2fba9d58abee6830e))
- **Package.json:** downgrade typedoc and assoc plugins
([46db2ee](https://github.com/Xunnamius/workflow-playground/commit/46db2ee7335e9b37cfafce98776171304f0072b7))
- **Package.json:** install lint-staged dep and script
([f3800e4](https://github.com/Xunnamius/workflow-playground/commit/f3800e471e93308b37eb2668dd5c4bfde9e7b88e))
- **Package.json:** install spellcheck dependencies
([9a7adb4](https://github.com/Xunnamius/workflow-playground/commit/9a7adb4fb9592328efd3b33bc156b87f89a59ffb))
- **Spellcheck:** change "contains" to "includes"
([af76dbe](https://github.com/Xunnamius/workflow-playground/commit/af76dbe52921aed27c4cf275875de9c1194561d4))
- **Spellcheck:** fix bug where spellcheck reads from wrong message source
([69a25ba](https://github.com/Xunnamius/workflow-playground/commit/69a25baa21133345e2a2baffd2f69d0abe950c02))
- **Spellcheck:** spellcheck now leverages assorted knowledge
([14b86ae](https://github.com/Xunnamius/workflow-playground/commit/14b86ae815f2c24aef82dcad41b0ead036a2f4c4))

### Features

- Add build-changelog to npm scripts
([8393a87](https://github.com/Xunnamius/workflow-playground/commit/8393a87974cea60087a8d11fc9b0bac0f7ecc6e2))

### Reverts

- _"build: bad fix"_
([48394bc](https://github.com/Xunnamius/workflow-playground/commit/48394bc497dc39046ae8ed815db335fe83fde335))

## [2.1.4](https://github.com/Xunnamius/workflow-playground/compare/v2.1.3...v2.1.4) (2020-11-28)

### Bug Fixes
Expand Down
8 changes: 7 additions & 1 deletion changelog.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,14 @@ module.exports = {
}

if (commit.type == 'Reverts') {
console.log(commit.subject);
// ? Ignore reverts that didn't trigger releases
if (!SHOW_REVERSION_TYPES.includes(commit.type)) return null;
if (
!SHOW_REVERSION_TYPES.some((t) =>
RegExp(`^[^\\w]${t}: `, 'i').test(commit.subject.trim())
)
)
return null;

commit.subject = `*${commit.subject}*`;
}
Expand Down

0 comments on commit d4ccacb

Please sign in to comment.