From 44c4e700c464903de8bfb242b9994e754ccd162c Mon Sep 17 00:00:00 2001 From: Colin Carroll Date: Fri, 10 Nov 2017 20:25:33 -0500 Subject: [PATCH] Remove pullrequests option --- travis_sphinx/deploy.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/travis_sphinx/deploy.py b/travis_sphinx/deploy.py index aa2fb19..29822e1 100644 --- a/travis_sphinx/deploy.py +++ b/travis_sphinx/deploy.py @@ -19,12 +19,6 @@ default='master', show_default=True ) -@click.option( - '-p', '--pullrequests', - type=click.BOOL, - is_flag=True, - help='Deploy on pull requests(not recommended)', -) @click.option( '-c', '--cname', help='Write a CNAME file with the given CNAME.' @@ -36,7 +30,7 @@ show_default=True ) @click.pass_context -def deploy(ctx, branches, pullrequests, cname, message): +def deploy(ctx, branches, cname, message): """ Deploy built docs to gh-pages, uses ``GH_TOKEN`` for pushing built documentation files located in *target/doc* to gh @@ -52,7 +46,7 @@ def deploy(ctx, branches, pullrequests, cname, message): click.ClickException("ERROR: GH_TOKEN is missing!") branches = branches.split(',') - if (branch in branches and (pr == 'false' or pullrequests)) or tag: + if (branch in branches and (pr == 'false')) or tag: remote = 'https://%s@github.com/%s.git' % (token, repo) call = ['ghp-import', '-p', '-f', '-n', '-r', remote] if cname: