pantheon-systems/terminus — pull request #161 by Ignigena (2014-08-21 18:45:04+00:00)
Title: Change the exit code when "no changes found to commit."

I am incorporating Terminus to allow for integration between a CI workflow and my Pantheon environment.

Currently, because of other things involved in the CI workflow, there are a number of builds happening that don't include changes to the Drupal docroot. In these cases, there are no code changes to the Pantheon environment which triggers the "No changes found to commit" message towards the end of the build process.

Since this message is being returned with `drush_set_error()` it is causing the deployment step to exit with an error code. This triggers a build failure even though the step is doing exactly what it should do and skipping over the commit process.

I propose changing this to `drush_user_abort()` which will not exit with an error code but will continue to function exactly as it did previously and exit the process immediately once Terminus determines no changes are present.