mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-29 11:03:13 +00:00
release: fix PR detection for appveyor
This commit is contained in:
parent
3a3299bc61
commit
0debcf5bf9
@ -217,7 +217,9 @@ def build():
|
||||
|
||||
|
||||
def is_pr():
|
||||
if os.environ.get("TRAVIS_PULL_REQUEST") != "false":
|
||||
if "TRAVIS_PULL_REQUEST" in os.environ:
|
||||
if os.environ["TRAVIS_PULL_REQUEST"] == "false":
|
||||
return False
|
||||
return True
|
||||
elif os.environ.get("APPVEYOR_PULL_REQUEST_NUMBER"):
|
||||
return True
|
||||
|
Loading…
Reference in New Issue
Block a user