tag:help.appveyor.com,2012-11-13:/discussions/questions/1877-how-can-i-deploy-on-public-pull-requestsAppVeyor: Discussion 2018-10-19T08:17:35Ztag:help.appveyor.com,2012-11-13:Comment/384430072015-11-12T04:31:14Z2015-11-12T04:31:14ZHow can I deploy on public pull requests?<div><p>Deployment during PRs can be allowed for private repositories
only.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/384430072015-11-12T04:35:40Z2015-11-12T04:35:40ZHow can I deploy on public pull requests?<div><p>Is there no way to enable them for public repositories?</p></div>ronny6993tag:help.appveyor.com,2012-11-13:Comment/384430072015-11-12T04:51:07Z2015-11-12T04:51:07ZHow can I deploy on public pull requests?<div><p>Currently not, but we have a request for implementing "trusted"
PR authors.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/384430072015-11-12T06:34:16Z2015-11-12T06:34:16ZHow can I deploy on public pull requests?<div><p>Is there a way to conditionally run commands on pull requests
then? If AppVeyor won't deploy it as a part of the process, then it
would still be possible to manually push the package as a
post-build command.</p>
<p>I'm not really worried about "trust" on the feed side as it's a
specialized MyGet feed, and users are able to add their own
packages to it anyways.</p></div>ronny6993tag:help.appveyor.com,2012-11-13:Comment/384430072015-11-12T23:03:35Z2015-11-12T23:03:35ZHow can I deploy on public pull requests?<div><p>Yes, there is <code>APPVEYOR_PULL_REQUEST_NUMBER</code>
environment variable with PR number if it's PR build. All variables
are listed here: <a href="http://www.appveyor.com/docs/environment-variables">http://www.appveyor.com/docs/environment-variables</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/384430072017-10-17T19:36:27Z2017-10-17T19:36:28ZHow can I deploy on public pull requests?<div><p>Is there any progress on that "request for implementing 'trusted' PR authors"?</p>
<p>I would really like to have the deployment automatically work on PR's from trusted authors of the repo.</p>
<p>We are publishing (in the deployment) NuGet packages to a CI feed on MyGet. We then cherry pick from there and promote to a pre-release feed on MyGet.... and from there promote to official NuGet.org feed.</p></div>phantomtypist