diff --git a/README.md b/README.md index fc1cc85..23f39d8 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,9 @@ a valid YAML/JSON file formatted like this: launchpad_project: tripleo - name: tripleo-incubator launchpad_project: tripleo + #Add a custom namespace like this. Defaults to 'openstack/' + - name: openstack-infra/tripleo-ci + launchpad_project: tripleo ## License diff --git a/reviewday/gerrit.py b/reviewday/gerrit.py index 0b95c89..25c80e7 100644 --- a/reviewday/gerrit.py +++ b/reviewday/gerrit.py @@ -4,8 +4,10 @@ import json def reviews(project, status="open", branch="master"): arr = [] + if project.find('/') < 0: + project = 'openstack/%s' % project cmd = 'ssh review gerrit' \ - ' query "status: %s project: openstack/%s branch: %s"' \ + ' query "status: %s project: %s branch: %s"' \ ' --current-patch-set --format JSON' \ % (status, project, branch) p = subprocess.Popen([cmd], shell=True, stdin=subprocess.PIPE,