Auto-run tests on pull requests in Github

anjdreas's Avatar


28 Jan, 2014 11:27 AM

Is it possible to automatically build and run tests for pull requests in Github?

Ideally it would do a proper merge on a local branch of master, which would catch any merge conflicts as well, but building and running tests off the remote pull request branch is more than good enough.

This would be immensely useful, in particular for open source projects with a lot of external contributors.
If this is not in place, what are your thoughts and are there any alternative workflows you would recommend for this scenario?

  1. 1 Posted by anjdreas on 28 Jan, 2014 12:04 PM

    anjdreas's Avatar
  2. Support Staff 2 Posted by Feodor Fitsner on 28 Jan, 2014 06:45 PM

    Feodor Fitsner's Avatar

    Hi Anjdreas,

    Right now it's not possible, but we'll start working on that as soon as the next AppVeyor release is in production. Beta of the next release will be available this week.

    Thank you for the suggestion and the link! ;)

  3. 3 Posted by eysteinbye on 16 Apr, 2014 02:59 PM

    eysteinbye's Avatar

    Any progress on this? Or do you have any suggestions to alternative work-flow? We want AppVeyor to run out tests when a Pull Request is made, so we know if it is safe or not to merge it into the master.

    How would you do this?

  4. Support Staff 4 Posted by Feodor Fitsner on 16 Apr, 2014 04:43 PM

    Feodor Fitsner's Avatar

    Yes, there is progress on PR. They will be available next week. Thanks for your patience.

  5. 5 Posted by odinserj on 31 May, 2014 07:39 AM

    odinserj's Avatar

    Great feature for great CI server! I'm wondering, should I change anything in my settings to get it work?

  6. 6 Posted by Antoine Blanche... on 31 May, 2014 01:45 PM

    Antoine Blanchet's Avatar

    Any progress on that ? It would be so cool :)

  7. Support Staff 7 Posted by Feodor Fitsner on 31 May, 2014 03:02 PM

    Feodor Fitsner's Avatar

    GitHub pull requests are already supported! To make them work for existing projects enable "pull request" event in webhook settings on GitHub, like on the attached screenshot. You can find webhook URL on General tab of project settings.

  8. 8 Posted by odinserj on 31 May, 2014 03:22 PM

    odinserj's Avatar

    You are the best, thank you very much!

  9. 9 Posted by YafimK on 14 Sep, 2016 06:02 AM

    YafimK's Avatar

    Is there a way to differentiate in AppVeyor script between a job called by PR and one by commit?

  10. 10 Posted by Ilya Finkelshte... on 14 Sep, 2016 06:07 PM

    Ilya Finkelshteyn's Avatar


    I believe you can check one of those environment variables:

      * APPVEYOR_PULL_REQUEST_NUMBER - GitHub Pull Request number;
      * APPVEYOR_PULL_REQUEST_TITLE - GitHub Pull Request title


  11. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:08 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac