mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 01:31:03 +00:00
move-mrs-script: Add prefix to mr titles if no provided
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/919>
This commit is contained in:
parent
1f9ba47228
commit
66da54964e
1 changed files with 5 additions and 1 deletions
|
@ -275,13 +275,17 @@ class GstMRMover:
|
|||
|
||||
description = f"**Copied from {URL}/{project.path_with_namespace}/-/merge_requests/{mr.iid}**\n\n{mr.description}"
|
||||
|
||||
title = mr.title
|
||||
if ':' not in mr.title:
|
||||
title = f"{project.name}: {mr.title}"
|
||||
|
||||
new_mr_dict = {
|
||||
'source_branch': branch,
|
||||
'allow_collaboration': True,
|
||||
'remove_source_branch': True,
|
||||
'target_project_id': to_project.id,
|
||||
'target_branch': MONOREPO_BRANCH,
|
||||
'title': mr.title,
|
||||
'title': title,
|
||||
'labels': mr.labels,
|
||||
'description': description,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue