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.

Commit4e8c35e

Browse files
committed
Merge branch 'master' into api-notifications
2 parents30fa6db +42fb154 commit4e8c35e

File tree

8 files changed

+73
-22
lines changed

8 files changed

+73
-22
lines changed

‎content/v3.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ users.
187187
Requests that return multiple items will be paginated to 30 items by
188188
default. You can specify further pages with the`?page` parameter. For some
189189
resources, you can also set a custom page size up to 100 with the`?per_page` parameter.
190+
Note that for technical reasons not all endpoints respect the`?per_page` parameter,
191+
see[events](http://developer.github.com/v3/events/) for example.
190192

191193
<preclass="terminal">
192194
$ curl https://api.github.com/user/repos?page=2&per_page=100

‎content/v3/issues.md‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,22 @@ title: Issues | GitHub API
1010
Issues leverage[these](#custom-mime-types) custom mime types. You can
1111
read more about the use of mime types in the API[here](/v3/media/).
1212

13-
##List your issues
13+
##List issues
14+
15+
List all issues across all the authenticated user's visible repositories
16+
including owned repositories, member repositories, and organization
17+
repositories:
1418

1519
GET /issues
1620

21+
List all issues across owned and member repositories for the authenticated user:
22+
23+
GET /user/issues
24+
25+
List all issues for a given organization for the authenticated user:
26+
27+
GET /orgs/:org/issues
28+
1729
###Parameters
1830

1931
filter
@@ -62,6 +74,9 @@ assignee
6274
*`none` for Issues with no assigned User.
6375
*`*` for Issues with any assigned User.
6476

77+
creator
78+
:_String_ User login.
79+
6580
mentioned
6681
:_String_ User login.
6782

‎content/v3/libraries.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ Libraries for accessing the GitHub API from your favorite language.
2424

2525
[csharp]:https://github.com/sgrassie/csharp-github-api
2626

27+
##Emacs Lisp
28+
29+
*[gh.el][gh.el]
30+
31+
[gh.el]:https://github.com/sigma/gh.el
32+
2733
##Erlang
2834

2935
*[Erlang GitHub API][erlang]

‎content/v3/repos/comments.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ body
4040
:_Required_**string**
4141

4242
path
43-
:_Required_**string** - Relative path of the file to comment on.
43+
:_Optional_**string** - Relative path of the file to comment on.
4444

4545
position
46-
:_Required_**number** - Line index in the diff to comment on.
46+
:_Optional_**number** - Line index in the diff to comment on.
4747

4848
line
4949
:_Optional_**number** - Line number in the file to comment on. Defaults to 1.

‎content/v3/repos/hooks.md‎

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,23 @@ for. Default: `["push"]`.
8484
:_Optional_**boolean** - Determines whether the hook is actually
8585
triggered on pushes.
8686

87+
Example: The["web" service hook](https://github.com/github/github-services/blob/master/services/web.rb#L4-11)
88+
takes these fields:
89+
90+
*`url`
91+
*`content_type`
92+
*`secret`
93+
94+
Here's how you can setup a hook that posts raw JSON (instead of the default
95+
legacy format):
96+
8797
<%= json\
8898
:name => "web",
8999
:active => true,
100+
:events =>['push', 'pull_request'],
90101
:config => {
91-
:url => 'http://something.com/webhook'}
102+
:url => 'http://something.com/webhook',
103+
:content_type => 'json'}
92104
%>
93105

94106
###Response
@@ -97,7 +109,7 @@ triggered on pushes.
97109
:Location => 'https://api.github.com/repos/user/repo/hooks/1' %>
98110
<%= json:hook %>
99111

100-
###Edit a hook
112+
##Edit a hook
101113

102114
PATCH /repos/:owner/:repo/hooks/:id
103115

@@ -117,6 +129,9 @@ Booleans are stored internally as "1" for true, and "0" for false. Any
117129
JSON true/false values will be converted automatically.
118130

119131

132+
133+
You can change a hook to send straight JSON by
134+
120135
`events`
121136
:_Optional_**array** - Determines what events the hook is triggered
122137
for. This replaces the entire array of events. Default:`["push"]`.
@@ -133,13 +148,23 @@ list of events that the Hook triggers for.
133148
:_Optional_**boolean** - Determines whether the hook is actually
134149
triggered on pushes.
135150

151+
Example: The["web" service hook](https://github.com/github/github-services/blob/master/services/web.rb#L4-11)
152+
takes these fields:
153+
154+
*`url`
155+
*`content_type`
156+
*`secret`
157+
158+
Here's how you can setup a hook that posts raw JSON (instead of the default
159+
legacy format):
160+
136161
<%= json\
137-
:name => "campfire",
162+
:name => "web",
138163
:active => true,
164+
:add_events =>['pull_request'],
139165
:config => {
140-
:subdomain => 'github',
141-
:room => 'Commits',
142-
:token => 'abc123'}
166+
:url => "http://requestb.in",
167+
:content_type => "json"}
143168
%>
144169

145170
###Response

‎content/v3/search.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ keyword
6666
##Email search
6767

6868
This API call is added for compatibility reasons only. There's no guarantee
69-
that full email searches will always be available.
69+
that full email searches will always be available. The`@` character in the
70+
address must be left unencoded. Searches only against public email addresses
71+
(as configured on the user's GitHub profile).
7072

7173
GET /legacy/user/email/:email
7274

‎lib/resources.rb‎

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ def text_html(response, status, head = {})
343343
}
344344

345345
FULL_PULL=PULL.merge({
346+
"merge_commit_sha"=>"e5bd3914e2e596debea16f433f57875b5b90bcd6",
346347
"merged"=>false,
347348
"mergeable"=>true,
348349
"merged_by"=>USER,
@@ -691,14 +692,10 @@ def text_html(response, status, head = {})
691692
]
692693
}
693694

694-
GIST_FILES={
695-
"files"=>{
696-
"ring.erl"=>{
697-
"size"=>932,
698-
"filename"=>"ring.erl",
699-
"raw_url"=>"https://gist.github.com/raw/365370/8c4d2d43d178df44f4c03a7f2ac0ff512853564e/ring.erl"
700-
}
701-
}
695+
GIST_FILE={
696+
"size"=>932,
697+
"filename"=>"ring.erl",
698+
"raw_url"=>"https://gist.github.com/raw/365370/8c4d2d43d178df44f4c03a7f2ac0ff512853564e/ring.erl"
702699
}
703700

704701
GIST={
@@ -707,16 +704,16 @@ def text_html(response, status, head = {})
707704
"description"=>"description of gist",
708705
"public"=>true,
709706
"user"=>USER,
710-
"files"=>GIST_FILES,
707+
"files"=>{"ring.erl"=>GIST_FILE},
711708
"comments"=>0,
712709
"html_url"=>"https://gist.github.com/1",
713710
"git_pull_url"=>"git://gist.github.com/1.git",
714711
"git_push_url"=>"git@gist.github.com:1.git",
715712
"created_at"=>"2010-04-14T02:15:15Z"
716-
}.update(GIST_FILES)
713+
}
717714

718715
FULL_GIST=GIST.merge(GIST_FORKS).merge(GIST_HISTORY)
719-
FULL_GIST['files']['ring.erl']['content']='contents of gist'
716+
FULL_GIST['files'].merge('ring.erl'=>GIST_FILE.merge('content'=>'contents of gist'))
720717

721718
GIST_COMMENT={
722719
"id"=>1,
@@ -891,7 +888,7 @@ def text_html(response, status, head = {})
891888
"updated_at"=>"2011-09-06T20:39:23Z",
892889
"created_at"=>"2011-09-06T17:26:27Z",
893890
"name"=>"web",
894-
"events"=>["push"],
891+
"events"=>["push","pull_request"],
895892
"active"=>true,
896893
"config"=>
897894
{'url'=>'http://example.com','content_type'=>'json'},

‎static/shared/css/documentation.css‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,10 @@ div.sidebar-module ul ul li span {
497497
margin:1.5em
498498
}
499499

500+
.contentddul {
501+
margin-top:0;
502+
}
503+
500504
.contentli {
501505
line-height:1.7em;
502506
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp