# Automatically re-build open pull request when target branch is updated (e.g. another Pull Request is merged)

**URL:** <https://discuss.bitrise.io/t/automatically-re-build-open-pull-request-when-target-branch-is-updated-e-g-another-pull-request-is-merged/148>\
**Category:** Builds\
**Created:** [January 6, 2017, 4:09pm UTC](https://discuss.bitrise.io/t/automatically-re-build-open-pull-request-when-target-branch-is-updated-e-g-another-pull-request-is-merged/148 "2017-01-06T16:09:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [January 6, 2017, 4:09pm UTC](https://discuss.bitrise.io/t/automatically-re-build-open-pull-request-when-target-branch-is-updated-e-g-another-pull-request-is-merged/148/1 "2017-01-06T16:09:58Z")

</div>

_From @jhassine on Fri Oct 07 2016 09:23:45 GMT-0400 (EDT)_  
  
If you have a branch, e.g. `master`, which is the target of the PRs, then any change on `master` should trigger a new build for **every** open PRs.

Use case:

- you have 5 open Pull Requests
- you merge a Pull Request
- the remaining 4 open Pull Requests should be re-tested, for a refreshed Pull Request status (allow/don’t allow merge)

But in general, if e.g. `master` changes (even if by a code push directly on `master`) every open Pull Request should be re-tested / re-built (the ones which target `master`)  
  
  
_Copied from original issue: [https://github.com/bitrise-io/bitrise.io/issues/74](https://github.com/bitrise-io/bitrise.io/issues/74)_

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [January 6, 2017, 4:10pm UTC](https://discuss.bitrise.io/t/automatically-re-build-open-pull-request-when-target-branch-is-updated-e-g-another-pull-request-is-merged/148/2 "2017-01-06T16:10:01Z")

</div>

_From @viktorbenei on Fri Oct 07 2016 10:04:53 GMT-0400 (EDT)_  
  
Thanks for the feature request @jhassine !  
I added a bit more detail to the description, to provide a better context for others.

_P.S.: don’t forget to vote on it here, on GitHub 😉_

---

<div class="post-metadata">

**Author:** ![arno.stofberg](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@arno.stofberg](https://discuss.bitrise.io/u/arno.stofberg)\
**Post date:** [June 4, 2025, 11:11am UTC](https://discuss.bitrise.io/t/automatically-re-build-open-pull-request-when-target-branch-is-updated-e-g-another-pull-request-is-merged/148/4 "2025-06-04T11:11:33Z")

</div>

Is this possible these days with the trigger system?
