Enable local deployments in Pull Requests

Wojciech Sadowy's Avatar

Wojciech Sadowy

01 Mar, 2017 08:08 AM

In regards to "Enable local deployments in Pull Requests" (http://help.appveyor.com/discussions/suggestions/580-enable-local-d...):

Thanks for the tip, it worked for me exactly as I wanted.
I used such a version:

ps: $env:IsPullRequest = ($env:APPVEYOR_PULL_REQUEST_NUMBER -ne $null).ToString().ToLower()
or
cmd: if defined APPVEYOR_PULL_REQUEST_NUMBER (set "IsPullRequest=true") else (set "IsPullRequest=false")

It seems however that the setting "Enable deployments in Pull Requests" is only available in the GUI, and doesn't have a corresponding setting in "appveyor.yml" file ? Kind of pity, as I aimed in having entire pipeline and its settings defined only as-a-code.

  1. Support Staff 1 Posted by Feodor Fitsner on 02 Mar, 2017 04:55 AM

    Feodor Fitsner's Avatar

    "Enable deployments in Pull Requests" is not possible in appveyor.yml as someone can just submit a PR with updated appveyor.yml and enable deployments in PRs.

  2. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:15 AM.

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

Keyboard shortcuts

Generic

? 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