Skip to content

Commit 9fd0ec0

Browse files
committed
show the issue object in the issue events resource
1 parent 47fe6ec commit 9fd0ec0

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

content/v3/issues/events.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ assigned
6262
### Response
6363

6464
<%= headers 200, :pagination => true %>
65-
<%= json(:issue_event) { |h| [h] } %>
65+
<%= json(:full_issue_event) { |h| [h] } %>
6666

6767
## Get a single event
6868

@@ -71,5 +71,5 @@ assigned
7171
### Response
7272

7373
<%= headers 200 %>
74-
<%= json :issue_event %>
74+
<%= json :full_issue_event %>
7575

lib/resources.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,8 @@ def json(key)
427427
"created_at" => "2011-04-14T16:00:49Z"
428428
}
429429

430+
FULL_ISSUE_EVENT = ISSUE_EVENT.merge('issue' => ISSUE)
431+
430432
GIST_HISTORY = {
431433
"history" => [
432434
{

0 commit comments

Comments
 (0)