From 37f8972cb641f4e892454c1993fb93100beb394b Mon Sep 17 00:00:00 2001 From: Ondrej Nosek Date: Jan 06 2020 09:34:18 +0000 Subject: request-tests-repo: add branch into ticket body Add fixed branch 'master' into ticket body. It should prevent releng ticket being marked as invalid. Fixes: #359 Signed-off-by: Ondrej Nosek --- diff --git a/fedpkg/cli.py b/fedpkg/cli.py index 60bf878..f3c6c04 100644 --- a/fedpkg/cli.py +++ b/fedpkg/cli.py @@ -837,6 +837,7 @@ class fedpkgClient(cliClient): ticket_body = { 'action': 'new_repo', + 'branch': 'master', 'namespace': 'tests', 'repo': repo_name, 'description': description, diff --git a/fedpkg/utils.py b/fedpkg/utils.py index 8e2feb8..fd5263f 100644 --- a/fedpkg/utils.py +++ b/fedpkg/utils.py @@ -90,7 +90,7 @@ def new_pagure_issue(url, token, title, body, cli_name): :param token: a string of the Pagure API token that has rights to create a ticket :param title: a string of the issue's title - :param body: a string pf the issue's body + :param body: a string of the issue's body :return: a string of the URL to the created issue in the UI """ api_url = '{0}/api/0'.format(url.rstrip('/')) @@ -305,9 +305,9 @@ def assert_new_tests_repo(name, dist_git_url): url = '{0}/tests/{1}'.format(dist_git_url, name) error_msg = ( - 'The connection to dist-git failed' + 'The connection to dist-git failed ' 'trying to determine if this is a valid new tests ' - ' repository name.') + 'repository name.') try: rv = requests.get(url, timeout=60) except ConnectionError as error: