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.

Commit2c6a11b

Browse files
committed
Merge branch 'master' ofhttps://github.com/github/developer.github.com into internal-master
2 parents5bc45aa +6dcb258 commit2c6a11b

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

‎content/v3/issues/events.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ mentioned
4949
assigned
5050
: The issue was assigned to the actor.
5151

52+
head_ref_deleted
53+
: The pull request's branch was deleted.
54+
55+
head_ref_restored
56+
: The pull request's branch was restored.
57+
5258
##List events for an issue
5359

5460
GET /repos/:owner/:repo/issues/:issue_number/events

‎content/v3/repos/commits.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ instead of constructing page links yourself.
2020

2121
###Parameters
2222

23-
Name | Type | Description
23+
Name | Type | Description
2424
-----|------|--------------
2525
`sha`|`string` | SHA or branch to start listing commits from.
2626
`path`|`string` | Only commits containing this file path will be returned.
27-
`author`|`string` | GitHub login, name,or email by which to filter by commit author
27+
`author`|`string` | GitHub loginor emailaddressby which to filter by commit author.
2828
`since`|`string` | Only commits after this date will be returned. This is a timestamp in ISO 8601 format:`YYYY-MM-DDTHH:MM:SSZ`.
2929
`until`|`string` | Only commits before this date will be returned. This is a timestamp in ISO 8601 format:`YYYY-MM-DDTHH:MM:SSZ`.
3030

‎lib/resources.rb‎

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,12 @@ def text_html(response, status, head = {})
187187
"html_url"=>"https://github.com/octocat/Hello-World"
188188
}
189189

190+
REPO_PERMISSIONS={
191+
"admin"=>false,
192+
"push"=>false,
193+
"pull"=>true
194+
}
195+
190196
REPO=SIMPLE_REPO.merge({
191197
"clone_url"=>"https://github.com/octocat/Hello-World.git",
192198
"git_url"=>"git://github.com/octocat/Hello-World.git",
@@ -202,19 +208,20 @@ def text_html(response, status, head = {})
202208
"default_branch"=>'master',
203209
"master_branch"=>'master',
204210
"open_issues_count"=>0,
211+
"has_issues"=>true,
212+
"has_wiki"=>true,
213+
"has_downloads"=>true,
205214
"pushed_at"=>"2011-01-26T19:06:43Z",
206215
"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
208218
})
209219

210220
FULL_REPO=REPO.merge({
211221
"subscribers_count"=>42,
212222
"organization"=>USER.merge('type'=>'Organization'),
213223
"parent"=>REPO,
214-
"source"=>REPO,
215-
"has_issues"=>true,
216-
"has_wiki"=>true,
217-
"has_downloads"=>true
224+
"source"=>REPO
218225
})
219226

220227
TAG={

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp