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

Search Pull Requests #22

Closed
llogiq opened this issue May 28, 2020 · 2 comments
Closed

Search Pull Requests #22

llogiq opened this issue May 28, 2020 · 2 comments

Comments

@llogiq
Copy link

llogiq commented May 28, 2020

The github page allows searching pull requests by organization (see for example the weekly PRs link in this week in rust).

This allows a more fine grained query (as opposed to getting all queries and filtering them after the fact) and may help conserve bandwidth. It does need an authenticated user, though, as far as I know.

@XAMPPRocky
Copy link
Owner

Thank you for your issue! I’ve started work on implementing the search API. I’ll have an initial implementation with the next couple of days for issues and pull requests and then other search endpoints can be added later as needed.

@XAMPPRocky XAMPPRocky mentioned this issue May 28, 2020
7 tasks
@XAMPPRocky
Copy link
Owner

XAMPPRocky commented May 30, 2020

I've just pushed an initial version of the search API onto master. You can use it like the following (of course you need to provide an authentication token first if required by github).

let page = octocrab::instance()
    .search()
    .issues_or_pulls("GitHub Octocrab in:readme user:ferris")
    .sort("comments")
    .order("asc")
    .send()
    .await?;

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