# !gh issue search Repository Suchstring
 match(/gh issue search ([^ ]+) (.+)/, method: :search_issue)
 def search_issue(m, repo, query)
     uri = "/search/issues?q=%s+repo:%s+user:%s" %
         [URI.escape(query), repo, Organization]

     res = request(uri, Net::HTTP::Get)
     n = 3
     total = res["total_count"]
     if n > total
         n = total
     end

     m.reply "Zeige %d von %d Tickets für '%s'" % [n, total, query]
     res["items"][0...n].each_with_index do |issue, i|
         # [123] Der Titel des Tickets https://github.com/... (open)
         m.reply "[%d] %s <%s> (%s)" %
             [issue["number"], issue["title"], issue["html_url"], issue["state"]]
     end
 end