There was an error while loading. Please reload this page.
1 parent 1d42f18 commit 7e3115cCopy full SHA for 7e3115c
1 file changed
lib/resources.rb
@@ -187,6 +187,12 @@ def text_html(response, status, head = {})
187
"html_url" => "https://github.com/octocat/Hello-World"
188
}
189
190
+ REPO_PERMISSIONS = {
191
+ "admin" => false,
192
+ "push" => false,
193
+ "pull" => true
194
+ }
195
+
196
REPO = SIMPLE_REPO.merge({
197
"clone_url" => "https://github.com/octocat/Hello-World.git",
198
"git_url" => "git://github.com/octocat/Hello-World.git",
@@ -202,19 +208,20 @@ def text_html(response, status, head = {})
202
208
"default_branch" => 'master',
203
209
"master_branch" => 'master',
204
210
"open_issues_count" => 0,
211
+ "has_issues" => true,
212
+ "has_wiki" => true,
213
+ "has_downloads" => true,
205
214
"pushed_at" => "2011-01-26T19:06:43Z",
206
215
"created_at" => "2011-01-26T19:01:12Z",
207
- "updated_at" => "2011-01-26T19:14:43Z"
216
+ "updated_at" => "2011-01-26T19:14:43Z",
217
+ "permissions" => REPO_PERMISSIONS
218
})
219
220
FULL_REPO = REPO.merge({
221
"subscribers_count" => 42,
222
"organization" => USER.merge('type' => 'Organization'),
223
"parent" => REPO,
- "source" => REPO,
- "has_issues" => true,
- "has_wiki" => true,
- "has_downloads" => true
224
+ "source" => REPO
225
226
227
TAG = {
0 commit comments