# Prevent pipeline from being created on commit

**URL:** <https://discuss.circleci.com/t/prevent-pipeline-from-being-created-on-commit/36354>\
**Category:** Build Environment\
**Created:** [June 17, 2020, 1:53pm UTC](https://discuss.circleci.com/t/prevent-pipeline-from-being-created-on-commit/36354 "2020-06-17T13:53:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![techsupport\_0101](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@techsupport\_0101](https://discuss.circleci.com/u/techsupport_0101)\
**Post date:** [June 17, 2020, 1:53pm UTC](https://discuss.circleci.com/t/prevent-pipeline-from-being-created-on-commit/36354/1 "2020-06-17T13:53:20Z")

</div>

Hi - brand new to CircleCI and one of the quirks I’ve notice so far is a new build being created on every commit to the repo, however only triggering a build when the branch being committed to is the one specified in a filters \> branches \> only stanza. Is there a way to prevent the pipline from being created at all, if it is not going to produce a build?

---

<div class="post-metadata">

**Author:** ![Henna](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/henna/32/29402_2.png) [@Henna](https://discuss.circleci.com/u/Henna)\
**Post date:** [June 18, 2020, 5:54pm UTC](https://discuss.circleci.com/t/prevent-pipeline-from-being-created-on-commit/36354/2 "2020-06-18T17:54:23Z")

</div>

Welcome to CircleCI!

By default, CircleCI builds every commit from every branch. Below is a list of useful features you might want to consider:

- [Filter by Branches & Tags](https://circleci.com/docs/2.0/workflows/#using-regular-expressions-to-filter-tags-and-branches).
- [Only Build Pull Requests](https://circleci.com/docs/2.0/oss/#only-build-pull-requests)
- [Logic Statements](https://circleci.com/docs/2.0/configuration-reference/#logic-statements). Here is an example of: [using logic in configuration](https://circleci.com/docs/2.0/configuration-cookbook/#using-logic-in-configuration)
