How can I deploy on public pull requests?

ronny6993's Avatar


12 Nov, 2015 03:48 AM

I'm in the process of writing a library that utilizes a plugin system, and it's difficult to test the changes without having to merge it into master and deploy it to my feed. I've opened a MyGet feed just for pull request deployments, but I can't figure out how to get AppVeyor to deploy conditionally on that feed on a pull request build.

  1. Support Staff 1 Posted by Feodor Fitsner on 12 Nov, 2015 04:31 AM

    Feodor Fitsner's Avatar

    Deployment during PRs can be allowed for private repositories only.

  2. 2 Posted by ronny6993 on 12 Nov, 2015 04:35 AM

    ronny6993's Avatar

    Is there no way to enable them for public repositories?

  3. Support Staff 3 Posted by Feodor Fitsner on 12 Nov, 2015 04:51 AM

    Feodor Fitsner's Avatar

    Currently not, but we have a request for implementing "trusted" PR authors.

  4. 4 Posted by ronny6993 on 12 Nov, 2015 06:34 AM

    ronny6993's Avatar

    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.

    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.

  5. Support Staff 5 Posted by Feodor Fitsner on 12 Nov, 2015 11:03 PM

    Feodor Fitsner's Avatar

    Yes, there is APPVEYOR_PULL_REQUEST_NUMBER environment variable with PR number if it's PR build. All variables are listed here:

  6. 6 Posted by phantomtypist on 17 Oct, 2017 07:36 PM

    phantomtypist's Avatar

    Is there any progress on that "request for implementing 'trusted' PR authors"?

    I would really like to have the deployment automatically work on PR's from trusted authors of the repo.

    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 feed.

  7. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:20 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