Skip to content

Commit

Permalink
Remove pullrequests option
Browse files Browse the repository at this point in the history
  • Loading branch information
ColCarroll committed Nov 11, 2017
1 parent 7cdd18f commit 44c4e70
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions travis_sphinx/deploy.py
Expand Up @@ -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.'
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 44c4e70

Please sign in to comment.