Permalink
Browse files

Add USER to the List Pull Requests example.

The live `/repos/:user/:repo/pulls` action includes the user which
opened the pull request. This is not currently documented.

See: https://api.github.com/repos/octocat/Hello-World/pulls?state=closed
And: http://developer.github.com/v3/pulls/#list-pull-requests
  • Loading branch information...
1 parent d6599c8 commit 94c786acdfe1de8935034444ec995f905f5c66dd @adammck adammck committed Apr 23, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/resources.rb
View
@@ -182,7 +182,8 @@ def json(key)
"https://api.github.com/octocat/Hello-World/issues/1/comments"},
"review_comments" => {'href' =>
"https://api.github.com/octocat/Hello-World/pulls/1/comments"}
- }
+ },
+ "user" => USER
}
FULL_PULL = PULL.merge({

0 comments on commit 94c786a

Please sign in to comment.