GithubHelp home page GithubHelp logo

Comments (4)

kegsay avatar kegsay commented on June 12, 2024

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?

from github-pull-review.

kegsay avatar kegsay commented on June 12, 2024

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 #24)
  • "Something new" : There have been commits or comments after my last comment/commit.
  • "Up-to-date/Blocked" : Everything else.

from github-pull-review.

kegsay avatar kegsay commented on June 12, 2024

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

from github-pull-review.

kegsay avatar kegsay commented on June 12, 2024

@illicitonion has kindly implemented this.

from github-pull-review.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.