Skip to content
Snippets Groups Projects
Commit dc1cf954 authored by Emanuele Aina's avatar Emanuele Aina
Browse files

pkg-merge-upstream-to-downstreams: Always create MR, even with conflicts


Create a MR even when the local attempt to merge failed. In that case
let the proposed updates branch point to the upstream branch and create
a MR to submit it to the downstream branch.

This makes the failed updates more visbile and easier to track than the
failed pipelines.

Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent 5e3ffb23
No related branches found
No related tags found
2 merge requests!182pkg-merge: Always submit a new MR, even with conflicts,!93WIP: documentation-builder: Rebase on Apertis instead of Debian Buster
Pipeline #236050 canceled
......@@ -109,6 +109,10 @@ def main():
push_this_merge_request()
continue
print(f"Submit {proposed_branch} for merging into {downstream_branch} the updates from {upstream_branch}")
git("branch", proposed_branch, upstream_branch)
push_this_merge_request()
print(f"Attempt merging {upstream_branch} into {downstream_branch} via {proposed_branch}")
git("checkout", "--force", "-B", "tmp", downstream_branch)
apertis_pkg_merge_updates(f"--downstream={downstream_branch}", f"--upstream={upstream_branch}", f"--local-version-suffix={local_suffix}", _fg=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment