#368 request-tests-repo: add branch into ticket body
Merged 4 years ago by onosek. Opened 4 years ago by onosek.
onosek/fedpkg request_tests_repo  into  master

file modified
+1
@@ -837,6 +837,7 @@ 

  

              ticket_body = {

                  'action': 'new_repo',

+                 'branch': 'master',

                  'namespace': 'tests',

                  'repo': repo_name,

                  'description': description,

file modified
+3 -3
@@ -90,7 +90,7 @@ 

      :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 @@ 

  

      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:

Add fixed branch 'master' into ticket body. It should prevent releng
ticket being marked as invalid.

Fixes: #359

There are some other typo fixes.

Signed-off-by: Ondrej Nosek onosek@redhat.com

Pull-Request has been merged by onosek

4 years ago
Metadata