From 94c786acdfe1de8935034444ec995f905f5c66dd Mon Sep 17 00:00:00 2001 From: adammck Date: Sun, 22 Apr 2012 21:24:33 -0400 Subject: [PATCH] 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 --- lib/resources.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/resources.rb b/lib/resources.rb index cc8325fb38..ce59280a69 100644 --- a/lib/resources.rb +++ b/lib/resources.rb @@ -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({