diff --git a/CHANGELOG.md b/CHANGELOG.md index a658090..8034774 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,26 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +Add changes in one of these sections: +* `Added` for new features. +* `Changed` for changes in existing functionality. +* `Deprecated` for soon-to-be removed features. +* `Removed` for now removed features. +* `Fixed` for any bug fixes. +* `Security` in case of vulnerabilities. + ## [Unreleased] +## [v0.0.1-rc1] - 2020-08-13 + +This is the very first _SchemaSheriff_ release candidate! :tada: + +Please use this version to start playing around with the tool. If you find something to be fixed/improved please you are super welcome to raise an issue in [Scheriff Issues](https://github.com/fllaca/scheriff/issues), your feedback and Pull Requests will be very appreciated. + +### Added + +- Offline validation of Kubernetes configuration +- Validate multiple input folders/file by setting `-f` multiple times +- Add extra CRD schemas via `--crd` flag (multiple values allowed) +- Recursively validate folders with `-R` flag diff --git a/hack/parse-changelog.sh b/hack/parse-changelog.sh index a5645cc..63f3f53 100755 --- a/hack/parse-changelog.sh +++ b/hack/parse-changelog.sh @@ -3,7 +3,7 @@ set -eo pipefail version=$1 changelog_file=$2 -changelog_entry_prefix="^## " +changelog_entry_prefix='^## \[' if [[ -z "$version" ]] || [[ -z "$changelog_file" ]]; then @@ -22,8 +22,11 @@ if [[ -z "$release_notes_start" ]]; then exit 1 fi +# Remove line containing the release title +release_notes_start=$((release_notes_start+1)) + # get line number of previous version entry in changelog -previous_version_entry=$(cat $changelog_file | awk "{if (NR>$release_notes_start) print}" | grep -n $changelog_entry_prefix || [[ $? == 1 ]]) +previous_version_entry=$(cat $changelog_file | awk "{if (NR>$release_notes_start) print}" | grep -n "$changelog_entry_prefix" || [[ $? == 1 ]]) release_notes_length=$(echo "$previous_version_entry" | cut -d : -f1) release_notes_end=$changelog_file_length