You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to update an existing merge request's labels by removing one and adding another. After connecting to the Gitlab server, I am trying the following:
forpingl.Project():
if (p.id==json_project):
formrinp.MergeRequest():
if (mr.id==json_mr):
final_labels= []
forlabelinmr.labels:
if (labelnotinattribs['remove']):
final_labels.append(label)
forlabelinattribs['add']:
final_labels.append(u'%s'% (label))
gl_mr.labels=final_labelsgl_mr.save()
I am getting the error: GitlabUpdateError: 400: Source branch cannot be changed
Is this the proper way to update an existing merge request or am I doing something wrong?
The text was updated successfully, but these errors were encountered:
Got into same issue. Looks like it's a result of this change: https://gitlab.com/gitlab-org/gitlab-ce/commit/85145d1d77ed919949d59c83cccecd43789cc781
Now it's not legal to pass source_branch in update request to gitlab, but it's still passed on.
My workaround: call save like this: mr.save(source_branch = None)
While it should be still illegal call, it passes and does not actually change the source branch.
I am attempting to update an existing merge request's labels by removing one and adding another. After connecting to the Gitlab server, I am trying the following:
I am getting the error:
GitlabUpdateError: 400: Source branch cannot be changed
Is this the proper way to update an existing merge request or am I doing something wrong?
The text was updated successfully, but these errors were encountered: