Skip to content

Commit 6478d09

Browse files
committed
document closed_by attribute for full issues
1 parent 3fdd970 commit 6478d09

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

content/v3/issues.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Name | Type | Description
7272
### Response
7373

7474
<%= headers 200 %>
75-
<%= json :issue %>
75+
<%= json :full_issue %>
7676

7777
<div class="alert">
7878
<p>
@@ -111,7 +111,7 @@ Name | Type | Description
111111
<%= headers 201,
112112
:Location =>
113113
'https://api.github.com/repos/user/repo/issues/1' %>
114-
<%= json :issue %>
114+
<%= json :full_issue %>
115115

116116
## Edit an issue
117117

@@ -145,7 +145,7 @@ Name | Type | Description
145145
### Response
146146

147147
<%= headers 200 %>
148-
<%= json :issue %>
148+
<%= json :full_issue %>
149149

150150
## Custom media types
151151

lib/resources.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,10 @@ def text_html(response, status, head = {})
729729
"updated_at" => "2011-04-22T13:33:48Z"
730730
}
731731

732+
FULL_ISSUE = ISSUE.merge({
733+
"closed_by" => USER
734+
})
735+
732736
ISSUE_COMMENT = {
733737
"id" => 1,
734738
"url" => "https://api.github.com/repos/octocat/Hello-World/issues/comments/1",

0 commit comments

Comments
 (0)