Skip to content
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit c4f3fcd

Browse files
authored
Merge pull request #1076 from Shredder121/assignees-rename-fields
Assignees rename fields
2 parents 094b17c + aae43ca commit c4f3fcd

File tree

2 files changed

+43
-2
lines changed

2 files changed

+43
-2
lines changed

lib/responses/issues_and_prs.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,9 @@ module Responses
135135

136136
ISSUE_WITH_ASSIGNEES ||= ISSUE.merge({
137137
"assignees" => [
138-
USER.merge("login" => "hubot"),
139-
USER.merge("login" => "other_user")
138+
USER,
139+
HUBOT,
140+
OTHER_USER
140141
]
141142
})
142143

lib/responses/user.rb

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,46 @@ module Responses
2121
"site_admin" => false
2222
}
2323

24+
HUBOT ||= {
25+
"login" => "hubot",
26+
"id" => 1,
27+
"avatar_url" => "https://github.com/images/error/hubot_happy.gif",
28+
"gravatar_id" => "",
29+
"url" => "https://api.github.com/users/hubot",
30+
"html_url" => "https://github.com/hubot",
31+
"followers_url" => "https://api.github.com/users/hubot/followers",
32+
"following_url" => "https://api.github.com/users/hubot/following{/other_user}",
33+
"gists_url" => "https://api.github.com/users/hubot/gists{/gist_id}",
34+
"starred_url" => "https://api.github.com/users/hubot/starred{/owner}{/repo}",
35+
"subscriptions_url" => "https://api.github.com/users/hubot/subscriptions",
36+
"organizations_url" => "https://api.github.com/users/hubot/orgs",
37+
"repos_url" => "https://api.github.com/users/hubot/repos",
38+
"events_url" => "https://api.github.com/users/hubot/events{/privacy}",
39+
"received_events_url" => "https://api.github.com/users/hubot/received_events",
40+
"type" => "User",
41+
"site_admin" => true
42+
}
43+
44+
OTHER_USER ||= {
45+
"login" => "other_user",
46+
"id" => 1,
47+
"avatar_url" => "https://github.com/images/error/other_user_happy.gif",
48+
"gravatar_id" => "",
49+
"url" => "https://api.github.com/users/other_user",
50+
"html_url" => "https://github.com/other_user",
51+
"followers_url" => "https://api.github.com/users/other_user/followers",
52+
"following_url" => "https://api.github.com/users/other_user/following{/other_user}",
53+
"gists_url" => "https://api.github.com/users/other_user/gists{/gist_id}",
54+
"starred_url" => "https://api.github.com/users/other_user/starred{/owner}{/repo}",
55+
"subscriptions_url" => "https://api.github.com/users/other_user/subscriptions",
56+
"organizations_url" => "https://api.github.com/users/other_user/orgs",
57+
"repos_url" => "https://api.github.com/users/other_user/repos",
58+
"events_url" => "https://api.github.com/users/other_user/events{/privacy}",
59+
"received_events_url" => "https://api.github.com/users/other_user/received_events",
60+
"type" => "User",
61+
"site_admin" => false
62+
}
63+
2464
CONTRIBUTOR ||= USER.merge({
2565
"contributions" => 32
2666
})

0 commit comments

Comments
 (0)