aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bugzilla.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/bugzilla.rb b/bugzilla.rb
index 73e77b0..76380f9 100644
--- a/bugzilla.rb
+++ b/bugzilla.rb
@@ -416,6 +416,12 @@ class BugzillaPlugin < Plugin
self.lastseenid = buglist[-1][0].to_i if buglist.size > 0
end
+ def search(urlparams, params = nil)
+ url = buglisturl + urlparams
+ searchdata = CSV::Reader.create(@bot.httputil.get(url)).to_a
+ return searchdata
+ end
+
def report(urlparams, params = nil)
url = "#{reporturl}&#{urlparams}"
reportdata = CSV::Reader.create(@bot.httputil.get(url)).to_a