Skip to content

Commit

Permalink
Merge pull request #899 from ergebnis/feature/stand-with-ukraine
Browse files Browse the repository at this point in the history
Enhancement: Stand with Ukraine
  • Loading branch information
localheinz committed Mar 9, 2022
2 parents 92d0cfe + ac97a64 commit 0492b8d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## Unreleased

For a full diff see [`2.23.1...main`][2.23.1...main].
For a full diff see [`2.24.0...main`][2.24.0...main].

## [`2.24.0`][2.24.0]

For a full diff see [`2.23.1...2.24.0`][2.23.1...2.24.0].

### Added

- Added Stand with Ukraine banner ([#899]), by [@localheinz]

## [`2.23.1`][2.23.1]

Expand Down Expand Up @@ -845,6 +853,7 @@ For a full diff see [`81bc3a8...0.1.0`][81bc3a8...0.1.0].
[#864]: https://github.com/ergebnis/composer-normalize/pull/864
[#871]: https://github.com/ergebnis/composer-normalize/pull/871
[#875]: https://github.com/ergebnis/composer-normalize/pull/875
[#899]: https://github.com/ergebnis/composer-normalize/pull/899

[@core23]: https://github.com/core23
[@dependabot]: https://github.com/dependabot
Expand Down
8 changes: 7 additions & 1 deletion src/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ public static function long(): string
$name = 'ergebnis/composer-normalize';
$attribution = 'by <info>Andreas M枚ller</info> and contributors';

/**
* @see https://en.wikipedia.org/wiki/National_colours_of_Ukraine
*/
$extra = '<fg=#0057b8>#StandWith</><fg=#ffd700>Ukraine</>';

$version = self::$version;

if ('@' . 'git@' === $version) {
Expand All @@ -39,10 +44,11 @@ public static function long(): string
}

return \sprintf(
'<info>%s</info> %s %s',
'<info>%s</info> %s %s %s',
$name,
$version,
$attribution,
$extra,
);
}
}

0 comments on commit 0492b8d

Please sign in to comment.