Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way to search with a wildcard? #6

Open
axilleas opened this issue Aug 3, 2014 · 1 comment
Open

Is there any way to search with a wildcard? #6

axilleas opened this issue Aug 3, 2014 · 1 comment

Comments

@axilleas
Copy link

axilleas commented Aug 3, 2014

I am trying to fetch all bugs starting with rubygem- on redhat's bugzilla. Is this implemented? Thanks!

@dmacvicar
Copy link
Owner

Bugzilla search by summary is by default substring, so this should work:

Bicho::Bug.where(sumary: 'rubygem-').each do |bug|
  # .. do something with bug
end

or

 bicho -b https://bugzilla.redhat.com search --summary 'rubygem-' --status open

However, that would match also the ones containing rubygem- in the middle of the summary. Is that a problem? I guess a regexp layer could be implemented on top, but I don't have very clear how it could look like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants