gitlab - fix autohold (using --change)
when using the web UI or zuul-client to autohold future builds for a change zuul-web returns an error 500 because the gitlabsource driver doesn't know how to convert a change into a ref. Change-Id: If600c629300158ae71f168c601f64ae99410744c
This commit is contained in:
committed by
Fabien Boucher
parent
8cf75cf5a5
commit
22cb3b8090
@@ -154,7 +154,7 @@ class GitlabSource(BaseSource):
|
||||
raise NotImplementedError()
|
||||
|
||||
def getRefForChange(self, change):
|
||||
raise NotImplementedError()
|
||||
return "refs/merge-requests/%s/head" % change
|
||||
|
||||
def setChangeAttributes(self, change, **attrs):
|
||||
return self.connection.updateChangeAttributes(change, **attrs)
|
||||
|
||||
Reference in New Issue
Block a user