1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-21 17:56:19 +02: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.parse import urlsplit
from urllib.error import HTTPError from urllib.error import HTTPError
from . import _private
from . import build as osc_build from . import build as osc_build
from . import cmdln from . import cmdln
from . import conf 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 # check for devel instances after accepted requests
if cmd in ['accept']: if cmd in ['accept']:
print(rq)
if opts.interactive:
_private.forward_request(apiurl, rq, interactive=True)
sr_actions = rq.get_actions('submit') sr_actions = rq.get_actions('submit')
for action in sr_actions: for action in sr_actions:
u = makeurl(apiurl, ['/search/package'], { u = makeurl(apiurl, ['/search/package'], {