1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-25 17:36:13 +01:00

sr accept: Enable forwarding requests to the parent projects

This works only with the --interactive option
This commit is contained in:
Daniel Mach 2022-10-12 15:20:06 +02:00
parent a4720eb776
commit fef07af464

View File

@ -22,6 +22,7 @@ from pathlib import Path
from urllib.parse import urlsplit
from urllib.error import HTTPError
from . import _private
from . import build as osc_build
from . import cmdln
from . import conf
@ -2673,6 +2674,10 @@ Please submit there instead, or use --nodevelproject to force direct submission.
# check for devel instances after accepted requests
if cmd in ['accept']:
print(rq)
if opts.interactive:
_private.forward_request(apiurl, rq, interactive=True)
sr_actions = rq.get_actions('submit')
for action in sr_actions:
u = makeurl(apiurl, ['/search/package'], {