diff options
author | Tom Duffield <tom@chef.io> | 2018-05-02 08:07:38 -0500 |
---|---|---|
committer | Tom Duffield <tom@chef.io> | 2018-05-02 08:07:38 -0500 |
commit | 3845ae2aaa4b70fd99517e6b0be61aa223f824f6 (patch) | |
tree | e1d9addaf3328bd4e8140051456f980d1a2101c6 | |
parent | 522b5587812de3d3974c3572df50954e5c64aacb (diff) | |
download | mixlib-cli-tduffield/enable-expeditor.tar.gz |
Setup Expeditor to manage releases of Mixlib::CLItduffield/enable-expeditor
Signed-off-by: Tom Duffield <tom@chef.io>
-rw-r--r-- | .expeditor/config.yml | 34 | ||||
-rwxr-xr-x | .expeditor/update_version.sh | 14 | ||||
-rw-r--r-- | CHANGELOG.md | 9 |
3 files changed, 57 insertions, 0 deletions
diff --git a/.expeditor/config.yml b/.expeditor/config.yml new file mode 100644 index 0000000..0806604 --- /dev/null +++ b/.expeditor/config.yml @@ -0,0 +1,34 @@ +# For more information about Expeditor, visit http://expeditor.es.chef.io +--- +slack: + notify_channel: releng-notify + +github: + version_tag_format: "v{{version}}" + delete_branch_on_merge: true + minor_bump_labels: + - "Version: Bump Minor" + +rubygems: + - mixlib-cli + +merge_actions: + - built_in:bump_version: + ignore_labels: + - "Version: Skip Bump" + - "Expeditor: Skip All" + - bash:.expeditor/update_version.sh: + only_if: + - built_in:bump_version + - built_in:update_changelog: + ignore_labels: + - "Changelog: Skip Update" + - "Expeditor: Skip All" + - built_in:build_gem: + only_if: + - built_in:bump_version + +promote: + action: + - built_in:publish_rubygems + - built_in:rollover_changelog diff --git a/.expeditor/update_version.sh b/.expeditor/update_version.sh new file mode 100755 index 0000000..ea9a482 --- /dev/null +++ b/.expeditor/update_version.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# +# After a PR merge, Chef Expeditor will bump the PATCH version in the VERSION file. +# It then executes this file to update any other files/components with that new version. +# + +set -evx + +VERSION=$(cat VERSION) + +sed -i -r "s/^(\\s*)VERSION = \".+\"/\\1VERSION = \"$VERSION\"/" lib/mixlib/cli/version.rb + +# Once Expeditor finshes executing this script, it will commit the changes and push +# the commit as a new tag corresponding to the value in the VERSION file. diff --git a/CHANGELOG.md b/CHANGELOG.md index 5fd90f6..1be1c6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # mixlib-cli Changelog +<!-- latest_release --> +<!-- latest_release --> + +<!-- release_rollup --> +<!-- release_rollup --> + +<!-- latest_stable_release --> +<!-- latest_stable_release --> + ## 1.7.0 - Support two-argument procs for reducer style |