tag:help.appveyor.com,2012-11-13:/discussions/questions/32102-manually-trigger-build-for-prAppVeyor: Discussion 2019-03-03T21:00:45Ztag:help.appveyor.com,2012-11-13:Comment/467094342018-12-24T17:46:34Z2018-12-24T17:46:34ZManually trigger build for PR<div><p>AppVeyor starts a PR build when PR is created. It that moment AppVeyor gets a PR-specific webhook from GitHub and triggers PR build. After that <code>RE-BUILD PR</code> button is be available if you open specific PR build from the history.</p>
<p>However from what you describe build for this PR was never started. Was AppVeyor project created before PR? Did you see PR webhook was sent (GitHub project Settings > Webhooks > AppVeyor webhook > Recent deliveries). If yes, and response from AppVeyor was 204, check <code>Events</code> tab at AppVeyor project level -- if build was skipped for some reason, AppVeyor writes an event there.</p>
<p>Let us know what you found.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/467094342018-12-31T09:34:47Z2018-12-31T09:34:48ZManually trigger build for PR<div><p>Hello,</p>
<p>first let's establish my settings:<br>
In the projects options "don't build on PR" and "don't build on push".<br>
For now that is on purpose as I always want to manually control when a build happens and if that build should be published to nuget.</p>
<blockquote>
<p>However from what you describe build for this PR was never started.</p>
</blockquote>
<p>Yes, I assume so.<br>
I assume AppVeyor only starts a build for PRs automatically and there's no way to manually start a build of a specific PR, is that right?</p>
<p>I guess since I have automatic builds turned off, that makes your following questions irrelevant; but I'll answer them anyway just to make sure.</p>
<blockquote>
<p>Was AppVeyor project created before PR?</p>
</blockquote>
<p>Yes.</p>
<blockquote>
<p>Did you see PR webhook was sent (GitHub project Settings > Webhooks > AppVeyor webhook > Recent deliveries). If yes, and response from AppVeyor was 204, check Events tab at AppVeyor project level -- if build was skipped for some reason, AppVeyor writes an event there.</p>
</blockquote>
<p>There are no webhook entries in my project on github.<br>
I must have disabled that in the beginning (which was on purpose).</p>
<p>So assuming there's no manual way to handle things, I think it would be best to create a new branch on github (maybe called 'release') and everytime I want to make a build and release it, I'd merge all master changes into the release branch? Or maybe doing something similar based on tags would be better?</p>
<p>Thank you for your support.</p></div>Rikitag:help.appveyor.com,2012-11-13:Comment/467094342018-12-31T18:50:56Z2018-12-31T18:50:56ZManually trigger build for PR<div><p>If you want total manual control over build triggering, you could always use the <a href="https://www.appveyor.com/docs/api/projects-builds/#start-build-of-pull-request-github-only">rest API</a>.</p>
<p>Otherwise, the method you suggested is an option, but would require that you have a webhook in your GitHub project. Ditto if you wanted to trigger builds based on tags (which also seems like a viable option).</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/467094342019-01-01T02:47:08Z2019-01-01T02:47:08ZManually trigger build for PR<div><p>Just noticed that <code>Start build of Pull Request (GitHub only)</code> is wrong because we already support Bitbucket and GitLab PRs/MRs. Updated the documentation, this is correct link: <a href="https://www.appveyor.com/docs/api/projects-builds/#start-build-of-pull-request">https://www.appveyor.com/docs/api/projects-builds/#start-build-of-p...</a></p></div>Ilya Finkelshteyn