From 0b0bff49769b807192d7b90d85d89ebd24f5d199 Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Mon, 11 Nov 2024 13:40:24 +0100 Subject: [PATCH] Extend RequestActionSource with 'repository' attribute It is a private patch/extension now, to be upstreamed soon. --- osc/core.py | 2 +- osc/obs_api/request_action_source.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/osc/core.py b/osc/core.py index 265f883608..fc14e59455 100644 --- a/osc/core.py +++ b/osc/core.py @@ -515,7 +515,7 @@ class Action: 'maintenance_release': ('src_project', 'src_package', 'src_rev', 'tgt_project', 'tgt_package', 'person_name', 'acceptinfo_rev', 'acceptinfo_srcmd5', 'acceptinfo_xsrcmd5', 'acceptinfo_osrcmd5', 'acceptinfo_oxsrcmd5', 'acceptinfo_oproject', 'acceptinfo_opackage'), - 'release': ('src_project', 'src_package', 'src_rev', 'tgt_project', 'tgt_package', 'person_name', + 'release': ('src_project', 'src_package', 'src_rev', 'src_repository', 'tgt_project', 'tgt_package', 'person_name', 'acceptinfo_rev', 'acceptinfo_srcmd5', 'acceptinfo_xsrcmd5', 'acceptinfo_osrcmd5', 'acceptinfo_oxsrcmd5', 'acceptinfo_oproject', 'acceptinfo_opackage', 'tgt_repository'), 'maintenance_incident': ('src_project', 'src_package', 'src_rev', 'tgt_project', 'tgt_package', 'tgt_releaseproject', 'person_name', 'opt_sourceupdate', 'opt_makeoriginolder', diff --git a/osc/obs_api/request_action_source.py b/osc/obs_api/request_action_source.py index 67a86fbf7d..3d81aaa1f6 100644 --- a/osc/obs_api/request_action_source.py +++ b/osc/obs_api/request_action_source.py @@ -15,3 +15,7 @@ class RequestActionSource(XmlModel): rev: Optional[str] = Field( xml_attribute=True, ) + + repository: Optional[str] = Field( + xml_attribute=True, + )