Skip to content

Commit 65283ec

Browse files
committed
Reswizzle resource order for pulls
1 parent a5fcf4a commit 65283ec

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

lib/resources.rb

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,20 @@ def text_html(response, status, head = {})
167167
}
168168
}
169169

170+
MILESTONE = {
171+
"url" => "https://api.github.com/repos/octocat/Hello-World/milestones/1",
172+
"number" => 1,
173+
"state" => "open",
174+
"title" => "v1.0",
175+
"description" => "",
176+
"creator" => USER,
177+
"open_issues" => 4,
178+
"closed_issues" => 8,
179+
"created_at" => "2011-04-10T20:09:31Z",
180+
"due_on" => nil
181+
}
182+
183+
170184
PULL = {
171185
"url" => "https://api.github.com/octocat/Hello-World/pulls/1",
172186
"html_url" => "https://github.com/octocat/Hello-World/pulls/1",
@@ -175,8 +189,6 @@ def text_html(response, status, head = {})
175189
"issue_url" => "https://github.com/octocat/Hello-World/issue/1",
176190
"number" => 1,
177191
"state" => "open",
178-
"assignee" => USER,
179-
"milestone" => MILESTONE,
180192
"title" => "new-feature",
181193
"body" => "Please pull these awesome changes",
182194
"created_at" => "2011-01-26T19:01:12Z",
@@ -403,19 +415,6 @@ def text_html(response, status, head = {})
403415
"repos_count" => 10
404416
})
405417

406-
MILESTONE = {
407-
"url" => "https://api.github.com/repos/octocat/Hello-World/milestones/1",
408-
"number" => 1,
409-
"state" => "open",
410-
"title" => "v1.0",
411-
"description" => "",
412-
"creator" => USER,
413-
"open_issues" => 4,
414-
"closed_issues" => 8,
415-
"created_at" => "2011-04-10T20:09:31Z",
416-
"due_on" => nil
417-
}
418-
419418
LABEL = {
420419
"url" => "https://api.github.com/repos/octocat/Hello-World/labels/bug",
421420
"name" => "bug",

0 commit comments

Comments
 (0)