From 07cbf5c501972cd109fbec9f9d5c903282ca1026 Mon Sep 17 00:00:00 2001 From: Max Jacobson Date: Mon, 24 Apr 2017 11:50:21 -0400 Subject: [PATCH 1/2] Update auto-yarn strategy Sometimes the commit messages look like "chore(package)", not "fix(package)", but we should still run yarn in those cases. Example: https://github.com/codeclimate/codeclimate-eslint/pull/256 I'm guessing it's just a chore when it's a devDependency. --- bin/circleci-update-yarn-lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/circleci-update-yarn-lock b/bin/circleci-update-yarn-lock index 601a61ee2..83160b2cb 100755 --- a/bin/circleci-update-yarn-lock +++ b/bin/circleci-update-yarn-lock @@ -2,7 +2,7 @@ set -e -git log --name-status HEAD^..HEAD | grep "fix(package): update" || { echo ">> not an update commit"; exit 0; } +git log --name-status HEAD^..HEAD | grep "(package): update" || { echo ">> not an update commit"; exit 0; } yarn install --no-progress --pure-lockfile From f7661c61b805d22080a43b6ac1696f4be1f22a26 Mon Sep 17 00:00:00 2001 From: Max Jacobson Date: Mon, 24 Apr 2017 12:13:59 -0400 Subject: [PATCH 2/2] avoid infinite loop :sweat_smile: --- bin/circleci-update-yarn-lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/circleci-update-yarn-lock b/bin/circleci-update-yarn-lock index 83160b2cb..5f41ae36c 100755 --- a/bin/circleci-update-yarn-lock +++ b/bin/circleci-update-yarn-lock @@ -16,5 +16,5 @@ email="greenkeeper[bot]@users.noreply.github.com" git config user.name "$name" git config user.email "$email" -git commit --all --message "chore(package): update yarn.lock" +git commit --all --message "update yarn.lock" git push --quiet origin "$CIRCLE_BRANCH"