# Allow environment variable through commit message

**URL:** <https://discuss.circleci.com/t/allow-environment-variable-through-commit-message/19871>\
**Category:** Build Environment\
**Tags:** envars, circle-yml\
**Created:** [February 5, 2018, 8:55pm UTC](https://discuss.circleci.com/t/allow-environment-variable-through-commit-message/19871 "2018-02-05T20:55:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sidcpatel](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/sidcpatel/32/10779_2.png) [@sidcpatel](https://discuss.circleci.com/u/sidcpatel)\
**Post date:** [February 5, 2018, 8:55pm UTC](https://discuss.circleci.com/t/allow-environment-variable-through-commit-message/19871/1 "2018-02-05T20:55:13Z")

</div>

e.g.[ci\_env$var foo] in commit message will set $var foo for the env.

This will allow better control flow of tests. e.g. skip certain parts for the test if commit has some variable set to certain state.

Deploy/don’t deploy.

Makes circle.yml more dynamic.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:40am UTC](https://discuss.circleci.com/t/allow-environment-variable-through-commit-message/19871/2 "2018-06-18T11:40:17Z")

</div>


