# How to conditionally route Slack notifications

**URL:** <https://discuss.bitrise.io/t/how-to-conditionally-route-slack-notifications/7647>\
**Category:** How To\
**Tags:** slack, script, notification, envman, environment-variable\
**Created:** [January 14, 2019, 3:18pm UTC](https://discuss.bitrise.io/t/how-to-conditionally-route-slack-notifications/7647 "2019-01-14T15:18:22Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![usmonster](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/usmonster/32/1609_2.png) [@usmonster](https://discuss.bitrise.io/u/usmonster)\
**Post date:** [January 17, 2019, 2:15pm UTC](https://discuss.bitrise.io/t/how-to-conditionally-route-slack-notifications/7647/3 "2019-01-17T14:15:34Z")

</div>

I might actually be able to use `echo $GIT_CLONE_COMMIT_AUTHOR_EMAIL` instead of `git log -1 --format=%ae`, since it’s a variable exported from the git clone step, though I haven’t tried yet…

---

_[View the full topic](https://discuss.bitrise.io/t/how-to-conditionally-route-slack-notifications/7647)._
