tag:help.appveyor.com,2012-11-13:/discussions/problems/14586-build-any-pull-requests-against-any-branchesAppVeyor: Discussion 2018-10-19T08:18:48Ztag:help.appveyor.com,2012-11-13:Comment/454271872018-06-06T15:57:51Z2018-06-06T15:57:51Zbuild any pull requests against any branches<div><p>We need the following information:</p>
<ul>
<li>
<p>GitHub <strong>commit ID</strong> for change which which did not trigger the build.</p>
</li>
<li>
<p>Find AppVeyor webhook on GitHub, then in recent deliveries find delivery connected to this commit and send us:</p>
<ul>
<li>value of <strong>X-GitHub-Delivery</strong> header</li>
<li>exact time (with time zone) webhook was sent</li>
</ul>
</li>
<li>
<p>Full <code>.yml</code> file.</p>
</li>
</ul></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/454271872018-06-07T10:34:26Z2018-06-07T10:34:27Zbuild any pull requests against any branches<div><p>when doing a commit on my open pull request these two deliveries gets generated:<br>
1) 2018-06-07 12:15:43 +0200<br>
X-GitHub-Delivery: bc857e00-6a3b-11e8-9fa9-525684bd2ee8<br>
2) 2018-06-07 12:15:42 +0200<br>
X-GitHub-Delivery: bc4be03c-6a3b-11e8-9355-e74fe508bf2f</p>
<p>since it is a public discussion, for security reasons I trimmed down the .yml file and removed the non-related codes:</p>
<h2><a name="-pre-code-tag-build" class="anchor" href="#-pre-code-tag-build"></a></h2>
<pre>
<code>#Tag build
<br>skip_non_tags: true
version: 0.0.0.{build}
image: Visual Studio 2017
configuration: Release
platform: Any CPU
force_https_clone: true
clone_depth: 1
clone_folder: c:\quote
matrix:
fast_finish: true<br><br>
<br>nuget:
account_feed: true<br><br>
<br>environment:
NuGetPassword:
secure: <secure><br><br>
<br>init:
- ps: >-
<Some scripts><br><br>
<br>before_build:
- ps: >-
<Some scripts><br><br>
<br>build_script:
- ps: |
<Some scripts><br><br>
<br>after_build:
- <Some scripts><br><br>
<br>test: off<br><br>
<br>artifacts:
- <Some Artifacts><br><br>
<br>#------------------------------------------------------------------------------<br><br>
</code>
</pre>
<h1><code><a name="commit-build" class="anchor" href="#commit-build"></a>Commit build</code></h1>
<pre>
<br>-
skip_branch_with_pr: true
skip_tags: true
version: 0.0.0.{build}
image: Visual Studio 2017
configuration: Release
platform: Any CPU
force_https_clone: true
clone_depth: 1
matrix:
fast_finish: true
<br>environment:
NuGetPassword:
secure: <secure>
<br>init:
- ps: >-
<Some scripts>
<br>before_build:
- ps: >-
<Some scripts>
<br>build_script:
- ps: |
<Some scripts>
<br>after_build:
- <Some scripts>
<br>test: off
<br>artifacts:
- <Some Artifacts>
</pre></div>Ariantag:help.appveyor.com,2012-11-13:Comment/454271872018-06-07T12:12:20Z2018-06-07T12:12:26Zbuild any pull requests against any branches<div><p>I found a better solution which fixed my issue. I merged the two build configurations into one, and in each stage of the build I checked if its a tag do something otherwise do something else. this way the trigger worked without any hackish solutions.</p></div>Arian