2017 © Pedro Peláez
 

library changelog-generator

Generate Markdown changelogs from your GitHub milestones

image

phly/changelog-generator

Generate Markdown changelogs from your GitHub milestones

  • Wednesday, February 22, 2017
  • by weierophinney
  • Repository
  • 3 Watchers
  • 85 Stars
  • 5,899 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 10 Forks
  • 5 Open issues
  • 8 Versions
  • 27 % Grown

The README.md

changelog_generator.php

This project provides a simple way to create a markdown ordered list of issues and pull requests closed with a given milestone on GitHub. It uses Zend Framework's Zend\Http component to communicate with the GitHub API, and Zend\Console\Getopt to handle CLI options parsing., (*1)

The script ensures that any special characters that might break the generated links are scrubbed and substituted with the corresponding HTML entities; as such, the script should be generally usable unattended., (*2)

Installation

Use Composer to install dependencies:, (*3)

php /path/to/composer.phar install

Alternately, you can compose it into an existing PHP application using Composer. Add the following to your composer.json:, (*4)

{
    "require": {
        "phly/changelog-generator": "*"
    }
}

and either perform a composer.phar install or composer.phar update. This will install the script in vendor/bin/changelog_generator.php., (*5)

Usage

There are two primary ways to use the generator:, (*6)

  • Use CLI options to pass in configuration
  • Create a configuration file, and pass that to the script

The standard CLI options are:, (*7)

  • -t or --token, to pass your GitHub API token
  • -u or --user, to pass your GitHub username or organization
  • -r or --repo, to pass your GitHub repository name
  • -m or --milestone, to pass the identifier of the GitHub milestone for which to generate the changelog

As an example:, (*8)

vendor/bin/changelog_generator.php -t MYgithubAPItoken -u weierophinney -r changelog_generator -m 1 > changelog.md

Alternately, create a configuration file. You can use config/config.php.dist as a template; it simply needs to return an array with the keys "token", "user", "repo", and "milestone". You then pass this to the script:, (*9)

vendor/bin/changelog_generator.php -c path/to/config.php

You can also mix-and-match options -- for instance, you might place your token in a configuration file, and then pass the other options via CLI., (*10)

The Versions

22/02 2017

dev-master

9999999-dev

Generate Markdown changelogs from your GitHub milestones

  Sources   Download

BSD-2-Clause

The Requires

 

github changelog

22/02 2017

v2.2.0

2.2.0.0

Generate Markdown changelogs from your GitHub milestones

  Sources   Download

BSD-2-Clause

The Requires

 

github changelog

04/01 2016

v2.1.2

2.1.2.0

Generate Markdown changelogs from your GitHub milestones

  Sources   Download

BSD-2-Clause

The Requires

 

github changelog

15/12 2015

v2.1.1

2.1.1.0

Generate Markdown changelogs from your GitHub milestones

  Sources   Download

BSD-2-Clause

The Requires

 

github changelog

05/11 2015

v2.1.0

2.1.0.0

Generate Markdown changelogs from your GitHub milestones

  Sources   Download

BSD-2-Clause

The Requires

 

github changelog

03/07 2013

v2.0.1

2.0.1.0

Generate Markdown changelogs from your GitHub milestones

  Sources   Download

BSD-2-Clause

The Requires

 

github changelog

03/07 2013

v2.0.0

2.0.0.0

Generate Markdown changelogs from your GitHub milestones

  Sources   Download

BSD-2-Clause

The Requires

 

github changelog

02/07 2013

v1.0.0

1.0.0.0

Generate Markdown changelogs from your GitHub milestones

  Sources   Download

BSD-2-Clause

The Requires

 

github changelog