# Introspect Commit Range

**URL:** <https://discuss.circleci.com/t/introspect-commit-range/9878>\
**Category:** Build Environment\
**Created:** [January 25, 2017, 8:58pm UTC](https://discuss.circleci.com/t/introspect-commit-range/9878 "2017-01-25T20:58:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hugod](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/hugod/32/14299_2.png) [@hugod](https://discuss.circleci.com/u/hugod)\
**Post date:** [January 25, 2017, 8:58pm UTC](https://discuss.circleci.com/t/introspect-commit-range/9878/1 "2017-01-25T20:58:26Z")

</div>

Is there any way of a script running on CircleCI to introspect the commit range that triggered the build (as listed at the top of the build page). Parsing `CIRCLE_COMPARE_URL` seems to provide an answer, but not always (e.g. on forced pushes).

---

<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:39am UTC](https://discuss.circleci.com/t/introspect-commit-range/9878/2 "2018-06-18T11:39:06Z")

</div>

Closed on June 18, 2018, 11:39am UTC


