0.2.3 • Published 7 years ago
@wpsh/releaselog v0.2.3
Releaselog 🗒️
Automatically build project changelog.txt from GitHub release notes.
Install
Install using npm as a development dependency:
npm install --save-dev @wpsh/releaselogUsage
As a Node module:
const fs = require('fs');
const releaselog = require('@wpsh/releaselog').default;
releaselog('kasparsd/widget-context-wporg') 
  .then(changelog => {
    fs.writeFile('CHANGELOG.md', `# Changelog\n\n${changelog}`, err => {
      if (err) throw err;
    });
  })
  .catch(err => console.error(err));will create CHANGELOG.md with the following contents:
# Changelog
## Version 1.1.0 (2018-06-13)
- Fix URL matching for URLs with query strings.
- Introduce unit tests for the URL context.
## Version 1.0.7 (2018-06-05)
- Mark as tested with WordPress 4.9.6.
- Use the localisation service provided by [WP.org](https://translate.wordpress.org/projects/wp-plugins/widget-context).
- Support for Composer.
[..]Credits
Created by Kaspars Dambis.