Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commitaae43ca

Browse files
committed
Rename the USERS to the right user
This introduces new constants, so that they can be used in otherplaces as well.This makes the data a little more realistic.
1 parent1ee6be9 commitaae43ca

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed

‎lib/responses/issues_and_prs.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ module Responses
136136
ISSUE_WITH_ASSIGNEES ||=ISSUE.merge({
137137
"assignees"=>[
138138
USER,
139-
USER.merge("login"=>"hubot"),
140-
USER.merge("login"=>"other_user")
139+
HUBOT,
140+
OTHER_USER
141141
]
142142
})
143143

‎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)

[8]ページ先頭

©2009-2025 Movatter.jp