Skip to content

wpsh/releaselog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Releaselog 🗒️

npm version Build Status Coverage Status

Automatically build project changelog.txt from GitHub release notes.

Install

Install using npm as a development dependency:

npm install --save-dev @wpsh/releaselog

Usage

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.