8000 Overview of assigned/open pull requests · Issue #15 · kegsay/github-pull-review · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Overview of assigned/open pull requests #15

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

Closed
kegsay opened this issue Oct 12, 2015 · 4 comments
Closed

Overview of assigned/open pull requests #15

kegsay opened this issue Oct 12, 2015 · 4 comments

Comments

@kegsay
Copy link
Owner
kegsay commented Oct 12, 2015

Would be nice. Would be double nice if this screen long-polled Github to live update (which github's own UI doesn't actually do comically).

@kegsay
Copy link
Owner Author
kegsay commented Oct 17, 2015

So it looks like we have access to the "repos the user has access to" via GET /user/repos which just splats back some owner/repos. We then need to hit each repo to get the list of pull requests via GET /repos/:owner/:repo/pulls (which sucks, probably want to lazily do this?).

Alternatively, there is GET /users/:username/received_events to get a list of events received by the user. We would then need to filter this down for ones that have been assigned etc to us. We would filter to PullRequestEvents and display any that were opened by us or assigned to us. We can then also potentially grabPullRequestReviewCommentEvent to display numbers?

@kegsay
Copy link
Owner Author
kegsay commented Oct 17, 2015

The desired layout here is a list of pull requests which can be in one of three states:

  • "Needs action from me" : There is a "Not Done" item (See Done markers  #24)
  • "Something new" : There have been commits or comments after my last comment/commit.
  • "Up-to-date/Blocked" : Everything else.

@kegsay
Copy link
Owner Author
kegsay commented Oct 27, 2015

Gold star @illicitonion

You can do:

curl "https://api.github.com/search/issues?q=type:pr%20assignee:illicitonion%20state:open"
curl "https://api.github.com/search/issues?q=type:pr%20author:illicitonion%20state:open"

This results in an object with items which is an array of objects with:

  • html_url - Link to the PR
  • title - PR title
  • user - Object of the creator of the PR
  • assignee - Object of the assignee of the PR
  • state - PR state
  • body - Original PR body

@kegsay
Copy link
Owner Author
kegsay commented Nov 23, 2015

@illicitonion has kindly implemented this.

@kegsay kegsay closed this as completed Nov 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant
0