diff options
author | Thibault Saunier <tsaunier@igalia.com> | 2021-09-24 22:47:17 -0300 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-09-28 15:50:27 +0000 |
commit | 66da54964eb254d1782f62b82d4d995ad3dbc6a8 (patch) | |
tree | 9d6779a444160191f528f1b3e0d952504f929f5b /scripts | |
parent | 1f9ba472284c798f3221cef3fc5bf8efbdc1327e (diff) | |
download | gstreamer-66da54964eb254d1782f62b82d4d995ad3dbc6a8.tar.gz |
move-mrs-script: Add prefix to mr titles if no provided
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/919>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/move_mrs_to_monorepo.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/move_mrs_to_monorepo.py b/scripts/move_mrs_to_monorepo.py index 1c491566d0..bb4592b9d0 100755 --- a/scripts/move_mrs_to_monorepo.py +++ b/scripts/move_mrs_to_monorepo.py @@ -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, } |