From a3eb9a2302475f893117be4aac6d8fd876b2e2c0 Mon Sep 17 00:00:00 2001 From: Andrey Novikov Date: Fri, 5 Feb 2021 12:05:58 +0300 Subject: [PATCH] Add CHANGELOG to keep version history in one place [ci skip] --- .github/workflows/build-release.yml | 4 +++ CHANGELOG.md | 45 +++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 CHANGELOG.md diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index d8dd8d1..e3174ae 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -21,8 +21,12 @@ jobs: git fetch --tags --force # Really fetch annotated tag. See https://github.com/actions/checkout/issues/290#issuecomment-680260080 echo ::set-output name=version::${GITHUB_REF#refs/tags/v} echo ::set-output name=subject::$(git for-each-ref $GITHUB_REF --format='%(contents:subject)') + # Extract changelog entries between this and previous version headers + escaped_version=$(echo ${GITHUB_REF#refs/tags/v} | sed -e 's/[]\/$*.^[]/\\&/g') + changelog=$(awk "BEGIN{inrelease=0} /## ${escaped_version}/{inrelease=1;next} /## [0-9]+\.[0-9]+\.[0-9]+/{inrelease=0;exit} {if (inrelease) print}" CHANGELOG.md) # Multiline body for release. See https://github.community/t/set-output-truncates-multiline-strings/16852/5 BODY="$(git for-each-ref $GITHUB_REF --format='%(contents:body)')" + BODY="${BODY}"$'\n'"${changelog}" BODY="${BODY//'%'/'%25'}" BODY="${BODY//$'\n'/'%0A'}" BODY="${BODY//$'\r'/'%0D'}" diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..b48400d --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,45 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) +and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). + +## 0.5.0 - 2020-11-13 + +### Changed + +- Start Yabeda exporter on `on_booted` hook to support Puma 4.x daemon mode. [@Envek], [#14](https://github.com/yabeda-rb/yabeda-puma-plugin/pull/14) + +## 0.4.0 - 2020-04-29 + +### Added + +- `yabeda_prometheus` plugin to allow metrics export on separate port. [@jwhitcraft], [#11](https://github.com/yabeda-rb/yabeda-puma-plugin/pull/11) + +## 0.3.0 - 2020-01-27 + +### Added + +- Support for yabeda 0.2 (required by prometheus-client 1.0). [@Envek] + +## 0.2.1 - 2019-12-16 + +### Fixed + +- Fix undefined method in TCP socket. [@Neznauy], [#7](https://github.com/yabeda-rb/yabeda-puma-plugin/pull/7) + +## 0.2.0 - 2019-12-12 + +### Added + +- Support for TCP puma control panel url. [@dsalahutdinov] + +## 0.1.0 - 2019-04-02 + +Initial release with basic metrics collection. [@dsalahutdinov] + +[@jwhitcraft]: https://github.com/jwhitcraft "Jon Whitcraft" +[@Neznauy]: https://github.com/Neznauy "Aleksandr Shlyakov" +[@Envek]: https://github.com/Envek "Andrey Novikov" +[@dsalahutdinov]: https://github.com/dsalahutdinov "Dmitry Salahutdinov"