Comments (4)
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.
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.
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 PRtitle
- PR titleuser
- Object of the creator of the PRassignee
- Object of the assignee of the PRstate
- PR statebody
- Original PR body
from github-pull-review.
@illicitonion has kindly implemented this.
from github-pull-review.
Related Issues (20)
- Comment line is wrong when viewing non BASE-HEAD diffs HOT 1
- `/list` should show mentioned/involved_with
- Clicking on a line number should draw focus to the new comment box
- Annotate references to PRs with their status
- Action todo state should actually be tri-state HOT 1
- `pre` blocks overflow
- Store system HOT 1
- Sort out list / auth pages HOT 1
- Report travis/similar results on Merge page
- File moves look weird in diffs page HOT 1
- PR with only comments from the author should be "Awaiting review" not "Reviewed"
- Put PR number and repo in title
- Show commit comments HOT 2
- Diff parser breaks for submodule updates
- Merge pull request commit message repeats itself
- Add LGTM button to pull requests
- Toggle button to make all diffs in a PR be unified rather than split.
- Overview page incorrectly says "awaiting your response"
- Show a ruler in diffs
- Comments on moved files fail with 422 Unprocessable Entity
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github-pull-review.