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:
commit
c95fef2a8c
@ -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 = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user