From 17508e4bc38c440d80ed38805cff80e046391d92 Mon Sep 17 00:00:00 2001 From: Jimmy Berry Date: Tue, 6 Feb 2018 22:00:40 -0600 Subject: [PATCH 1/4] osc-staging: select: add filter-by example using hashtag in description. --- osc-staging.py | 1 + 1 file changed, 1 insertion(+) diff --git a/osc-staging.py b/osc-staging.py index b66a40cd..59303f00 100644 --- a/osc-staging.py +++ b/osc-staging.py @@ -250,6 +250,7 @@ def do_staging(self, subcmd, opts, *args): --filter-by './action/target/[@devel_project="YaST:Head"]' --filter-by './action/target[starts-with(@ring, "1")]' --filter-by '@id!="1234567"' + --filter-by 'contains(description, "#Portus")' --group-by='./action/target/@devel_project' --group-by='./action/target/@ring' From 73dc18de9468ce061690ce687c74d10e4dcc6b1c Mon Sep 17 00:00:00 2001 From: Jimmy Berry Date: Tue, 6 Feb 2018 23:03:37 -0600 Subject: [PATCH 2/4] osc-staging: select: mention quick strategy in documentation. --- osc-staging.py | 1 + 1 file changed, 1 insertion(+) diff --git a/osc-staging.py b/osc-staging.py index 59303f00..25bceec5 100644 --- a/osc-staging.py +++ b/osc-staging.py @@ -279,6 +279,7 @@ def do_staging(self, subcmd, opts, *args): Built in strategies may be specified as well. For example: select --strategy devel + select --strategy quick select --strategy special select --strategy super From bf13cc7a773478f249d2a5113025cecbdbbb19b0 Mon Sep 17 00:00:00 2001 From: Jimmy Berry Date: Tue, 6 Feb 2018 23:04:49 -0600 Subject: [PATCH 3/4] osc-staging: select: mention additional supplemented request values. --- osc-staging.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/osc-staging.py b/osc-staging.py index 25bceec5..72c56ce3 100644 --- a/osc-staging.py +++ b/osc-staging.py @@ -241,8 +241,11 @@ def do_staging(self, subcmd, opts, *args): normal request node. - ./action/target/@devel_project: the devel project for the package + - ./action/target/@devel_project_super: super devel project if relevant - ./action/target/@ring: the ring to which the package belongs - - ./@ignored: either false or the provided message + - ./@aged: either True or False based on splitter-request-age-threshold + - ./@nonfree: set to nonfree if targetting nonfree sub project + - ./@ignored: either False or the provided message Some useful examples: From b2c2fee6f5b0a0e812eccff9dd1e446a489025e9 Mon Sep 17 00:00:00 2001 From: Jimmy Berry Date: Tue, 6 Feb 2018 23:05:51 -0600 Subject: [PATCH 4/4] osc-staging: select: reword documentation to include XML reference. --- osc-staging.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/osc-staging.py b/osc-staging.py index 72c56ce3..c7c38c67 100644 --- a/osc-staging.py +++ b/osc-staging.py @@ -237,8 +237,12 @@ def do_staging(self, subcmd, opts, *args): Requests may either be the target package or the request ID. When using --filter-by or --group-by the xpath will be applied to the - request node as returned by OBS. Several values will supplement the - normal request node. + request node as returned by OBS. Use the following on a current request + to see the XML structure. + + osc api /request/1337 + + A number of additional values will supplement the normal request node. - ./action/target/@devel_project: the devel project for the package - ./action/target/@devel_project_super: super devel project if relevant