summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2020-05-26 15:06:55 +0000
committerGerrit Code Review <review@openstack.org>2020-05-26 15:06:55 +0000
commit1ce4ea3b923ccb53a5e7c3270281fd0e6253a5cd (patch)
tree543f233d43ea9273631b1156fca91d106d3490b7
parentc04a8b19837961a17cfda44609d17eac0f3c2c8a (diff)
parent23f8e5df8b60cac4cea1b6bd4c67cc8e52fac199 (diff)
downloadzuul-1ce4ea3b923ccb53a5e7c3270281fd0e6253a5cd.tar.gz
Merge "Gitlab - allow to use the 'zuul enqueue' command"
-rw-r--r--zuul/driver/gitlab/gitlabconnection.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/zuul/driver/gitlab/gitlabconnection.py b/zuul/driver/gitlab/gitlabconnection.py
index a75e09e6f..363281fec 100644
--- a/zuul/driver/gitlab/gitlabconnection.py
+++ b/zuul/driver/gitlab/gitlabconnection.py
@@ -388,8 +388,8 @@ class GitlabConnection(BaseConnection):
change.number = number
# patchset is the tips commit of the PR
change.patchset = patchset
- change.url = url
- change.uris = list(url)
+ change.url = url or self.getPullUrl(project.name, number)
+ change.uris = [change.url.split('://', 1)[-1]] # remove scheme
self._change_cache[key] = change
try:
log.debug("Getting change mr#%s from project %s" % (