Skip to content

Commit

Permalink
Merge pull request #2 from fllaca/first_rc
Browse files Browse the repository at this point in the history
First rc
  • Loading branch information
fllaca authored Aug 13, 2020
2 parents 48c8514 + a40c1c2 commit 1a6b145
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

7 changes: 5 additions & 2 deletions hack/parse-changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1a6b145

Please sign in to comment.