Add support for custom namespaces
Defaults to 'openstack/' for backwards compat. Change-Id: I320f6fe8d9926140660bed021624d3db1af23c7e
This commit is contained in:
parent
9852644551
commit
cca8e6ed63
@ -51,6 +51,9 @@ a valid YAML/JSON file formatted like this:
|
|||||||
launchpad_project: tripleo
|
launchpad_project: tripleo
|
||||||
- name: tripleo-incubator
|
- name: tripleo-incubator
|
||||||
launchpad_project: tripleo
|
launchpad_project: tripleo
|
||||||
|
#Add a custom namespace like this. Defaults to 'openstack/'
|
||||||
|
- name: openstack-infra/tripleo-ci
|
||||||
|
launchpad_project: tripleo
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
@ -4,8 +4,10 @@ import json
|
|||||||
|
|
||||||
def reviews(project, status="open", branch="master"):
|
def reviews(project, status="open", branch="master"):
|
||||||
arr = []
|
arr = []
|
||||||
|
if project.find('/') < 0:
|
||||||
|
project = 'openstack/%s' % project
|
||||||
cmd = 'ssh review gerrit' \
|
cmd = 'ssh review gerrit' \
|
||||||
' query "status: %s project: openstack/%s branch: %s"' \
|
' query "status: %s project: %s branch: %s"' \
|
||||||
' --current-patch-set --format JSON' \
|
' --current-patch-set --format JSON' \
|
||||||
% (status, project, branch)
|
% (status, project, branch)
|
||||||
p = subprocess.Popen([cmd], shell=True, stdin=subprocess.PIPE,
|
p = subprocess.Popen([cmd], shell=True, stdin=subprocess.PIPE,
|
||||||
|
Loading…
Reference in New Issue
Block a user