2017 © Pedro Peláez
 

library changelog-linker

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

image

symplify/changelog-linker

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 64 Versions
  • 370 % Grown

The README.md

[DEPREACATED] Changelog Linker

This package is deprecated. Do you want to take it over or look for replacement? See the issue


, (*1)

Downloads, (*2)

Turn your CHANGELOG.md from a machine readable text to a rich text that makes every programmer happy., (*3)

Install

composer require symplify/changelog-linker --dev

Usage

Create changelog-linker.php with configuration:, (*4)

use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\ChangelogLinker\ValueObject\Option;

return static function (ContainerConfigurator $containerConfigurator): void {
    $parameters = $containerConfigurator->parameters();
    // this parameter is detected from "git origin", but you can change it
    $parameters->set(Option::REPOSITORY_URL, 'https://github.com/symplify/symplify');
};

The config is autodiscovered in the root directory or by --config option., (*5)

A. Dump Merges

vendor/bin/changelog-linker dump-merges

Write or Dry-run?

The --dry-run option prints the result to the output. Without that, I looks for <!-- changelog-linker --> in the CHANGELOG.md to replace with the content., (*6)

It finds the last #ID in the CHANGELOG.md, than looks on Github via API and dumps all the merged PRs since the last #ID in nice format. In case you want to specify minimal PR id yourself, use this:, (*7)

vendor/bin/changelog-linker dump-merges --since-id 125

But that is a mash-up of everything. Not very nice:, (*8)

## Unreleased

- [#868] [ChangelogLinker] Add ChangeTree to manage merge messages
- [#867] [ChangelogLinker] Change Worker registration from implicit to explicit
- [#865] Improve Code Complexity
- [#864] [MonorepoBuilder] improve coverage

What if we'd have Added, Changed... all the standard categories?, (*9)

use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\ChangelogLinker\ValueObject\ChangelogFormat;
use Symplify\ChangelogLinker\ValueObject\Option;

return static function (ContainerConfigurator $containerConfigurator): void {
    $parameters = $containerConfigurator->parameters();
    $parameters->set(Option::CHANGELOG_FORMAT, ChangelogFormat::CATEGORIES_ONLY);
};
vendor/bin/changelog-linker dump-merges

↓, (*10)

## Unreleased

### Added

- [#828] [ChangelogLinker] Add Unreleased to last tagged version feature
- [#840] [ChangelogLinker] Add LinkifyWorker

Nice, now everything is nicely grouped., (*11)

(Do you want to know how we detect the category? Follow me), (*12)

You have 4 packages/cateogires options you can use:, (*13)

Symplify\ChangelogLinker\ValueObject\ChangelogFormat::PACKAGES_THEN_CATEGORIES;
Symplify\ChangelogLinker\ValueObject\ChangelogFormat::CATEGORIES_THEN_PACKAGES;
Symplify\ChangelogLinker\ValueObject\ChangelogFormat::CATEGORIES_ONLY;
Symplify\ChangelogLinker\ValueObject\ChangelogFormat::PACKAGES_ONLY;

Base Branch

Do you want to dump only such pull requests that were merged into a particular branch? Just use base-branch option:, (*14)

vendor/bin/changelog-linker dump-merges --base-branch=7.3

This is very handy when you support multiple versions of your project., (*15)

Github API Overload?

In case you cross the API rate limit and get denied, create new Github Token and run it via GITHUB_TOKEN ENV variable., (*16)

GITHUB_TOKEN super-secret-token vendor/bin/changelog-linker dump-merges

B. Decorate CHANGELOG.md

vendor/bin/changelog-linker link
 ### Added

-- #123 Cool new without detailed description wanting me to see PR, [closes #234]
+- [#123] Cool new without detailed description wanting me to see PR, [closes [#234]]
+
+[#123]: https://github.com/symplify/symplify/pull/123
+[#234]: https://github.com/symplify/symplify/pull/234
-## v2.0.0 - 2017-12-31
+## [v2.0.0] - 2017-12-31

 - ...

 ## v1.5.0 - 2017-06-30
+
+[v2.0.0]: https://github.com/symplify/symplify/compare/v1.5.0...v2.0.0

3. Can I Thank My Contributors?

Of course! Give your contributors credit they deserve:, (*17)

 ### [v2.0.0] - 2017-12-31

-- ... thanks @SpacePossum for help
+- ... thanks [@SpacePossum] for help
+
+[@SpacePossum]: https://github.com/SpacePossum

You can exclude core maintainers, to give external contributors more credit:, (*18)

use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\ChangelogLinker\ValueObject\Option;

return static function (ContainerConfigurator $containerConfigurator): void {
    $parameters = $containerConfigurator->parameters();
    // this parameter is detected from "git origin", but you can change it
    $parameters->set(Option::AUTHORS_TO_IGNORE, ['TomasVotruba']);
};

In Symplify, I need that every EasyCodingStandard word leads to https://github.com/symplify/easy-coding-standard/., (*19)

use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\ChangelogLinker\ValueObject\Option;

return static function (ContainerConfigurator $containerConfigurator): void {
    $parameters = $containerConfigurator->parameters();
    // this parameter is detected from "git origin", but you can change it
    $parameters->set(Option::NAMES_TO_URLS, [
        'EasyCodingStandard' => 'https://github.com/symplify/easy-coding-standard/',
    ]);
};
 ## Unreleased

 ### Added

-#### EasyCodingStandard
+#### [EasyCodingStandard]
+
+[EasyCodingStandard]: https://github.com/symplify/easy-coding-standard/

5. Can I Write Shorter PR Titles?

ECS-Run, (*20)

Just add alias to config:, (*21)

use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\ChangelogLinker\ValueObject\Option;

return static function (ContainerConfigurator $containerConfigurator): void {
    $parameters = $containerConfigurator->parameters();
    // this parameter is detected from "git origin", but you can change it
    $parameters->set(Option::PACKAGE_ALIASES, [
        'CS' => 'CodingStandard',
    ]);
};

...and it will be resolved to CodingStandard package., (*22)


, (*23)

Report Issues

In case you are experiencing a bug or want to request a new feature head over to the Symplify monorepo issue tracker, (*24)

Contribute

The sources of this package are contained in the Symplify monorepo. We welcome contributions for this package on symplify/symplify., (*25)

The Versions

24/07 2018

dev-master

9999999-dev

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

17/07 2018

v4.5.1

4.5.1.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

12/07 2018

v4.5.0

4.5.0.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

09/06 2018

v4.4.2

4.4.2.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

03/06 2018

v4.4.1

4.4.1.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

03/06 2018

v4.4.0

4.4.0.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

12/05 2018

v4.2.1

4.2.1.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

12/05 2018

v4.2.2

4.2.2.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

12/05 2018

v4.2.3

4.2.3.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

12/05 2018

v4.3.0

4.3.0.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

24/04 2018

v4.1.0

4.1.0.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

24/04 2018

v4.1.1

4.1.1.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

24/04 2018

v4.1.2

4.1.2.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

24/04 2018

v4.2.0

4.2.0.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

07/04 2018

v4.0.2

4.0.2.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

07/04 2018

v4.0.3

4.0.3.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

07/04 2018

v4.0.4

4.0.4.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

28/03 2018

v4.0.0

4.0.0.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

28/03 2018

v4.0.0alpha4

4.0.0.0-alpha4

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

28/03 2018

v4.0.0alpha5

4.0.0.0-alpha5

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

28/03 2018

v4.0.0alpha6

4.0.0.0-alpha6

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

28/03 2018

v4.0.0beta1

4.0.0.0-beta1

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

28/03 2018

v4.0.1

4.0.1.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

14/03 2018

dev-vendor-param-in-imports

dev-vendor-param-in-imports

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

14/03 2018

v4.0.0alpha2

4.0.0.0-alpha2

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

14/03 2018

v4.0.0alpha3

4.0.0.0-alpha3

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

12/03 2018

v4.0.0alpha1

4.0.0.0-alpha1

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

06/03 2018

v3.2.25

3.2.25.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

06/03 2018

v3.2.26

3.2.26.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

06/03 2018

v3.2.27

3.2.27.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

06/03 2018

v3.2.28

3.2.28.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

06/03 2018

v3.2.29

3.2.29.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

06/03 2018

v3.2.30

3.2.30.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

07/02 2018

v3.2.24

3.2.24.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

07/02 2018

v3.2.20

3.2.20.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

07/02 2018

v3.2.21

3.2.21.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

07/02 2018

v3.2.22

3.2.22.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

07/02 2018

v3.2.23

3.2.23.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

02/02 2018

v3.2.12

3.2.12.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

02/02 2018

v3.2.13

3.2.13.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

02/02 2018

v3.2.14

3.2.14.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

02/02 2018

v3.2.15

3.2.15.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

02/02 2018

v3.2.17

3.2.17.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

02/02 2018

v3.2.18

3.2.18.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

09/01 2018

v3.2.0

3.2.0.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

09/01 2018

v3.2.1

3.2.1.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

09/01 2018

v3.2.10

3.2.10.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

09/01 2018

v3.2.11

3.2.11.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

09/01 2018

v3.2.2

3.2.2.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

09/01 2018

v3.2.3

3.2.3.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

09/01 2018

v3.2.4

3.2.4.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

09/01 2018

v3.2.5

3.2.5.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

09/01 2018

v3.2.6

3.2.6.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

09/01 2018

v3.2.7

3.2.7.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

09/01 2018

v3.2.9

3.2.9.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

03/01 2018

v3.1.2

3.1.2.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

02/01 2018

v3.1.0

3.1.0.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

02/01 2018

v3.1.1

3.1.1.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

21/12 2017

v3.0.7

3.0.7.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

21/12 2017

v3.0.8

3.0.8.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

17/12 2017

v3.0.3

3.0.3.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

17/12 2017

v3.0.4

3.0.4.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

17/12 2017

v3.0.5

3.0.5.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires

17/12 2017

v3.0.6

3.0.6.0

Add links to issues, PRs, versions, commits and users in your CHANGELOG.md

  Sources   Download

MIT

The Requires

 

The Development Requires