From 0bdc13c68809091949e6a9aee4bf627446fe0f9f Mon Sep 17 00:00:00 2001 From: sharpyy Date: Tue, 23 Jun 2020 16:31:07 -0700 Subject: [PATCH] fix setting labels twice in gordian transform function (#26) Co-authored-by: Etienne Grignon --- CHANGELOG.md | 4 ++++ gordian/gordian.py | 1 - setup.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5933667..ce27311 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com), and this project adheres to [Semantic Versioning](https://semver.org). +## [2.1.1] - 2020-06-23 +### Fixed +- Fixed setting the labels twice when releasing 2.1.0 + ## [2.1.0] - 2020-06-23 ### Added - New optional flag to pass a description to the PR created by gordian. diff --git a/gordian/gordian.py b/gordian/gordian.py index bec1835..74d9018 100644 --- a/gordian/gordian.py +++ b/gordian/gordian.py @@ -175,7 +175,6 @@ def transform(args, transformations, repositories, pr_description, pr_created_ca if not args.dry_run: try: pull_request = repo.create_pr(args.pr_message, pr_description, args.target_branch, args.pr_labels) - pull_request.set_labels(*args.pr_labels) pull_request_urls.append(pull_request.html_url) if pr_created_callback is not None: logger.debug(f'Calling post pr created callback with: {pull_request}, {repo.branch_name}') diff --git a/setup.py b/setup.py index 0169a5a..5152cd1 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup_reqs = ['pytest', 'pytest-cov', 'pytest-runner', 'flake8'] setuptools.setup( name="gordian", - version="2.1.0", + version="2.1.1", author="Intuit", author_email="cg-sre@intuit.com", description="A tool to search and replace files in a Git repo",