Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

Implement checking changelog for corresponding version entry #320

Merged
merged 1 commit into from
May 17, 2018
Merged

Implement checking changelog for corresponding version entry #320

merged 1 commit into from
May 17, 2018

Conversation

TomasHubelbauer
Copy link
Contributor

Double closes #292

@nrc
Copy link
Member

nrc commented May 17, 2018

Awesome, thank you!

@nrc nrc merged commit 11d61e3 into rust-lang:master May 17, 2018
@TomasHubelbauer TomasHubelbauer deleted the 292 branch May 17, 2018 19:12
const { version } = require('../package');
const changelog = String(require('fs').readFileSync('CHANGELOG.md')).split('\n');
if (!changelog.find(line => line.startsWith('### ' + version))) {
throw new Error(`The package.json version ${version} does not seem to have a matching heading in CHANGELOG.json`);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CHANGELOG.json -> CHANGELOG.md

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, will fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Changelog is outdated
3 participants