-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
search across multiple repositories #835
Conversation
2c82a01
to
b4139d4
Compare
23692df
to
d1bd50c
Compare
@DamianEdwards @M-Zuber writing up a walkthrough of the search options available - how does this read? |
957e4b7
to
fae9fc0
Compare
It reads quite nicely. |
What about creating a specialized object for holding the repos? This way you could use a custom collection initializer, forcing the user to specify both owner and repo name. |
@khellang good point - if I'm breaking the API here I'll see if I can do better than just a collection |
Preaching to the choir, but I fully agree with @khellang |
Sent a PR at #842 |
Changed repos to a specialized collection
Updated docs with new collection
This is looking pretty good. Anything needing specific review? |
@haacked not really, I should write an example for |
@shiftkey should I merge this? |
@haacked sure, I just like putting docs in front of me - because otherwise they'll never get written 🚎 |
search across multiple repositories
✨ all around. |
Fixes #834
This is a breaking API change to support being able to search across repositories. We currently have an
ctor
overload that accepts anowner
andname
for the repository:The change here is adding a public property
Repos
which accepts a collection ofowner/name
strings (i've added some validation to ensure these are formatted correctly for the server):This replaces the old
Repo
property, which was constrained to one string:Rather than carry around both
Repo
andRepos
for a period of time (leading to possible confusion), I'm just going to 🔥 the property here - I think many people would prefer to just use theRepos
property anyway...SearchIssueRequest
SearchCodeRequest
[ ] document an example of searching codeRendered docs
cc @DamianEdwards @M-Zuber