Skip to content

Commit ddc6959

Browse files
authored
Merge pull request #416 from perlpunk/search-requests-target
Further adjust search target for Maintenance requests
2 parents 888584f + b39d537 commit ddc6959

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

os-autoinst-obs-auto-submit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ get_obs_sr_id() {
3232
local target=$1
3333
local dst_project=$2
3434
local package=$3
35+
# The project in the request target will be different than the original
36+
# submit target for Backport requests
37+
[[ $target =~ Backports ]] && target="openSUSE:Maintenance"
3538
local states actions
3639
states=$(encode_variable "state/@name='declined' or state/@name='new' or state/@name='review'")
3740
actions=$(encode_variable "action/target/@project='$target' and action/source/@project='$dst_project' and action/source/@package='$package'")

0 commit comments

Comments
 (0)