# Deployment only on PR merge

**URL:** <https://discuss.circleci.com/t/deployment-only-on-pr-merge/1371>\
**Category:** Build Environment\
**Created:** [January 5, 2016, 8:43pm UTC](https://discuss.circleci.com/t/deployment-only-on-pr-merge/1371 "2016-01-05T20:43:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brousalis](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/brousalis/32/932_2.png) [@brousalis](https://discuss.circleci.com/u/brousalis)\
**Post date:** [January 5, 2016, 8:43pm UTC](https://discuss.circleci.com/t/deployment-only-on-pr-merge/1371/1 "2016-01-05T20:43:15Z")

</div>

I was wondering if it is possible to only run the deployment tasks when a PR has been merged, not just opened. It seems like this might be a limitation based on the GitHub webhook.

---

<div class="post-metadata">

**Author:** ![bdcravens](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/bdcravens/32/934_2.png) [@bdcravens](https://discuss.circleci.com/u/bdcravens)\
**Post date:** [January 6, 2016, 9:43am UTC](https://discuss.circleci.com/t/deployment-only-on-pr-merge/1371/2 "2016-01-06T09:43:37Z")

</div>

How are you setup? This is how we run it, and it deploys when master, where all PRs go, passes tests. (deployment is curl-based using Cloud66)

---

<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:37am UTC](https://discuss.circleci.com/t/deployment-only-on-pr-merge/1371/3 "2018-06-18T11:37:53Z")

</div>

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


