From fec7d814ba336070d0b68a2ab57a425379117952 Mon Sep 17 00:00:00 2001 From: Jonathan Nevelson Date: Thu, 9 Jan 2020 11:09:05 -0800 Subject: [PATCH] Only log when not dry run --- gordian/gordian.py | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gordian/gordian.py b/gordian/gordian.py index 09ff034..cf854e9 100644 --- a/gordian/gordian.py +++ b/gordian/gordian.py @@ -132,9 +132,9 @@ def apply_transformations(args, transformations): if not args.dry_run: try: repo.repo.create_pull(args.pr_message, '', 'master', repo.branch_name) + logger.info(f'PR created: {args.pr_message}. Branch: {repo.branch_name}') except GithubException as e: - print(f'PR already exists for {repo.branch_name}') - logger.info(f'PR created: {args.pr_message}. Branch: {repo.branch_name}') + logger.info(f'PR already exists for {repo.branch_name}') def main(): diff --git a/setup.py b/setup.py index f69b362..eba6b8b 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup_reqs = ["pytest-cov", "pytest-runner", "flake8"] setuptools.setup( name="gordian", - version="0.2.0", + version="0.2.1", author="Intuit", author_email="cg-sre@intuit.com", description="A tool to search and replace YAML files in a Git repo",