summaryrefslogtreecommitdiff
path: root/.expeditor
diff options
context:
space:
mode:
authorTom Duffield <tom@chef.io>2018-02-09 10:54:51 -0600
committerTom Duffield <tom@chef.io>2018-02-09 11:05:22 -0600
commitc8c685997a89f296e7a6cdb91bdd28ac4295b3b8 (patch)
tree1b700c15885202251477dae93f32a85d7e36d857 /.expeditor
parentff643ebd1b329aad735ba278294f031180c81265 (diff)
downloadmixlib-config-c8c685997a89f296e7a6cdb91bdd28ac4295b3b8.tar.gz
Initial Expeditor setup
Signed-off-by: Tom Duffield <tom@chef.io>
Diffstat (limited to '.expeditor')
-rw-r--r--.expeditor/config.yml35
-rw-r--r--.expeditor/update_version.sh12
2 files changed, 47 insertions, 0 deletions
diff --git a/.expeditor/config.yml b/.expeditor/config.yml
new file mode 100644
index 0000000..81d96d1
--- /dev/null
+++ b/.expeditor/config.yml
@@ -0,0 +1,35 @@
+---
+slack:
+ notify_channel: chef-notify
+
+github:
+ version_tag_format: "v{{version}}"
+ minor_bump_labels:
+ - "Version: Bump Minor"
+
+changelog:
+ rollup_header: Changes not yet released to rubygems.org
+
+rubygems:
+ - mixlib-config
+
+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 100644
index 0000000..55ebf5d
--- /dev/null
+++ b/.expeditor/update_version.sh
@@ -0,0 +1,12 @@
+#!/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
+
+sed -i -r "s/^(\s*)VERSION = \".+\"/\1VERSION = \"$(cat VERSION)\"/" lib/mixlib/config/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.