Skip to content

Commit

Permalink
Extend RequestActionSource with 'repository' attribute
Browse files Browse the repository at this point in the history
It is a private patch/extension now, to be upstreamed soon.
  • Loading branch information
dmach committed Nov 11, 2024
1 parent 31f65dd commit 0b0bff4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion osc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 4 additions & 0 deletions osc/obs_api/request_action_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ class RequestActionSource(XmlModel):
rev: Optional[str] = Field(
xml_attribute=True,
)

repository: Optional[str] = Field(
xml_attribute=True,
)

0 comments on commit 0b0bff4

Please sign in to comment.