1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-21 01:32:10 +01:00

Merge pull request #1704 from e4t/mr_inherit

Improve 'maintenancerequest' command to inherit description from superseded request
This commit is contained in:
Daniel Mach 2025-02-13 14:47:09 +01:00 committed by GitHub
commit c95fef2a8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4259,7 +4259,14 @@ Please submit there instead, or use --nodevelproject to force direct submission.
print(f'Using target project \'{target_project}\'{release_in}')
if not opts.message:
opts.message = edit_message()
msg = ""
if opts.supersede:
from .obs_api import Request
req = Request.from_api(apiurl, opts.supersede)
msg = req.description + "\n"
opts.message = edit_message(template=f"{msg}")
supersede_existing = False
reqs = []