# Travis on github PR ran code from the wrong PR

**URL:** <https://travis-ci.community/t/travis-on-github-pr-ran-code-from-the-wrong-pr/7420>\
**Category:** Travis CI Discussions & Feedback\
**Created:** [March 2, 2020, 5:45pm UTC](https://travis-ci.community/t/travis-on-github-pr-ran-code-from-the-wrong-pr/7420 "2020-03-02T17:45:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KrisThielemans](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/kristhielemans/32/4192_2.png) [@KrisThielemans](https://travis-ci.community/u/KrisThielemans)\
**Post date:** [March 2, 2020, 5:45pm UTC](https://travis-ci.community/t/travis-on-github-pr-ran-code-from-the-wrong-pr/7420/1 "2020-03-02T17:45:51Z")

</div>

I pushed some commits to a PR [https://github.com/UCL/STIR/pull/44](https://github.com/UCL/STIR/pull/44). However, the Travis jobs actually ran a commit from PR 449 [https://github.com/UCL/STIR/pull/449](https://github.com/UCL/STIR/pull/449) (which was then still open).

Here’s a link to one of the jobs [https://travis-ci.org/UCL/STIR/jobs/657085845?utm\_medium=notification&utm\_source=github\_status](https://travis-ci.org/UCL/STIR/jobs/657085845?utm_medium=notification&utm_source=github_status)

Checking the log file for that job [https://travis-ci.org/UCL/STIR/jobs/657290596#L1071](https://travis-ci.org/UCL/STIR/jobs/657290596#L1071) says

- branch refs/pull/449/merge -\> FETCH\_HEAD

which clearly should have been:

- branch refs/pull/44/merge -\> FETCH\_HEAD

This looks like a Travis bug?

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [March 2, 2020, 6:13pm UTC](https://travis-ci.community/t/travis-on-github-pr-ran-code-from-the-wrong-pr/7420/2 "2020-03-02T18:13:11Z")

</div>

Split this topic on March 2, 2020, 6:13pm UTC

A post was merged into an existing topic: [Build checks out wrong Pull Request: #79 instead of #7?](https://travis-ci.community/t/build-checks-out-wrong-pull-request-79-instead-of-7/6118)

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [March 2, 2020, 6:13pm UTC](https://travis-ci.community/t/travis-on-github-pr-ran-code-from-the-wrong-pr/7420/3 "2020-03-02T18:13:12Z")

</div>

Closed on March 2, 2020, 6:13pm UTC


