Skip to content

Commit

Permalink
Add CHANGELOG to keep version history in one place [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
Envek committed Feb 5, 2021
1 parent ab94a58 commit a3eb9a2
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'}"
Expand Down
45 changes: 45 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit a3eb9a2

Please sign in to comment.