Makes changes to CHANGELOG consistent with keepachangelog standard
npm install danger-plugin-keepachangelog
> Makes changes to CHANGELOG consistent with keepachangelog standard
Install:
``sh`
yarn add danger-plugin-keepachangelog --dev
At a glance:
`js
// dangerfile.js
import { keepachangelog } from 'danger-plugin-keepachangelog'
keepachangelog()
`
> ℹ️ All checks will be skipped if #trivial is present in the title or body of the PR
Situation | Message demo
---|---
No changes to CHANGELOG.md were found | Demo### Fixed
Missing a section line (eg: ) | Demo## [1.0.1] - 2020-03-20
Missing a new version line (eg: ) | DemochangeVersion
Having a new version line (when the option is set to false) | Demo
You can pass options to keepachangelog function:
`js`
keepachangelog({ changeVersion: true })
Option | Default | Description
---|---|---
changeVersion | true | - true it will fail if a version line is missingfalse` it will fail if a new version line is present
-
See CONTRIBUTING.md.