Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions pyup/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
@click.option('--ignore_ssl', help='Set this to ignore SSL Certificate',
default=False, is_flag=True)
@click.option('--log', help='Set the log level', default="ERROR")
def main(repo, user_token, bot_token, key, provider, provider_url, branch, initial, ignore_ssl, log):
@click.option('--integration', help='Run as an integration (e.g. oauth app token)',
default=False, is_flag=True)
def main(repo, user_token, bot_token, key, provider, provider_url, branch, initial, ignore_ssl, log, integration):
logging.basicConfig(level=getattr(logging, log.upper(), None))

settings.configure(key=key)
Expand All @@ -45,6 +47,7 @@ def main(repo, user_token, bot_token, key, provider, provider_url, branch, initi
provider=ProviderClass,
provider_url=provider_url,
ignore_ssl=ignore_ssl,
integration=integration,
)

bot.update(branch=branch, initial=initial)
Expand All @@ -58,11 +61,11 @@ class CLIBot(Bot):

def __init__(self, repo, user_token, bot_token=None,
provider=GithubProvider, bundle=RequirementsBundle,
provider_url=None, ignore_ssl=False):
provider_url=None, ignore_ssl=False, integration=False):
bundle = CLIBundle
super(CLIBot, self).__init__(repo, user_token, bot_token, provider,
bundle, provider_url=provider_url,
ignore_ssl=ignore_ssl)
ignore_ssl=ignore_ssl, integration=integration)

def iter_updates(self, initial, scheduled):

Expand Down