Sha256: bb84b35091c944a2098596d5140103bf71699325ac301d34f31f43870b1b17a6

Contents?: true

Size: 929 Bytes

Versions: 83

Compression:

Stored size: 929 Bytes

Contents

#!/bin/bash
#
# Open a PR for releasing a new version of this repository.
#
# Usage: bin/prep-release VERSION
#
###
set -e

if [ -z "$1" ]; then
  echo "usage: bin/prep-release VERSION" >&2
  exit 64
fi

./bin/validate-release

version="$1"
old_version=$(< VERSION)
branch="release-$version"


printf "RELEASE %s => %s\n" "$old_version" "$version"
git fetch origin master
git reset --hard origin/master

git checkout -b "$branch"

printf "%s\n" "$version" > VERSION
make image bundle
git add VERSION Gemfile.lock
git commit --message "Release v$version"
git push origin "$branch"

branch_head=$(git rev-parse --short "$branch")
if command -v hub > /dev/null 2>&1; then
  hub pull-request -F - <<EOF
Release v$version

https://github.com/codeclimate/codeclimate/compare/v$old_version...$branch_head
EOF
else
  echo "hub not installed? Please open the PR manually" >&2
fi

echo "After merging the version-bump PR, run bin/release"

Version data entries

83 entries across 83 versions & 2 rubygems

Version Path
codeclimate-fede-0.85.38 bin/prep-release
codeclimate-fede-0.85.37 bin/prep-release
codeclimate-fede-0.85.36 bin/prep-release
codeclimate-fede-0.85.35 bin/prep-release
codeclimate-fede-0.85.33 bin/prep-release
codeclimate-fede-0.85.32 bin/prep-release
codeclimate-fede-0.85.31 bin/prep-release
codeclimate-fede-0.85.30 bin/prep-release
codeclimate-fede-0.85.21 bin/prep-release
codeclimate-fede-0.85.24 bin/prep-release
codeclimate-fede-0.85.23 bin/prep-release
codeclimate-0.85.23 bin/prep-release
codeclimate-0.85.22 bin/prep-release
codeclimate-0.85.21 bin/prep-release
codeclimate-0.85.19 bin/prep-release
codeclimate-0.85.18 bin/prep-release
codeclimate-0.85.17 bin/prep-release
codeclimate-0.85.15 bin/prep-release
codeclimate-0.85.14 bin/prep-release
codeclimate-0.85.13 bin/prep-release