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

Commita6efb7a

Browse files
committed
Merge branch 'master' ofhttps://github.com/github/internal-developer.github.com into dbussink/api_timezone_improvements
2 parents69b15b7 +f965781 commita6efb7a

File tree

4 files changed

+33
-4
lines changed

4 files changed

+33
-4
lines changed

‎content/changes/2014-01-29-audit-org-members-for-2fa.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ We've added a [new filter][filter] for listing members of an organization withou
1111

1212
<pre class="terminal">
1313
$ curl -H "Authorization: token [yours]" \
14-
https://api.github.com/orgs/octokit/members\?filter\=2fa_disabled
14+
https://api.github.com/orgs/[orgname]/members\?filter\=2fa_disabled
1515
</pre>
1616

1717
The new filter is available for owners of organizations with private
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
kind: change
3+
title: Query enhancements for listing issues and pull requests
4+
created_at: 2014-02-28
5+
author_name: pengwynn
6+
---
7+
We've made it even easier to list all [issues][] and [pull requests][] via the API.
8+
The `state` parameter now supports a value of `all` that will return issues and
9+
pull requests regardless of state.
10+
11+
<pre class="terminal">
12+
$ curl https://api.github.com/repos/atom/vim-mode/issues\?state\=all
13+
</pre>
14+
15+
We've also introduced new sorting options for [listing pull requests][pull
16+
requests]. You can now sort pull requests by `created`, `updated`,
17+
`popularity`, and `long-running`.
18+
19+
<pre class="terminal">
20+
$ curl https://api.github.com/repos/rails/rails/pulls\?sort\=long-running\&direction\=desc
21+
</pre>
22+
23+
Happy querying. If you have any questions or feedback [get in touch][contact].
24+
25+
[issues]: /v3/issues/#list-issues
26+
[pull requests]: /v3/pulls/#list-pull-requests
27+
[contact]: https://github.com/contact?form[subject]=API+query+enhancements

‎content/v3/issues.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ List all issues for a given organization for the authenticated user:
3131
Name | Type | Description
3232
-----|------|--------------
3333
`filter`|`string`| Indicates which sorts of issues to return. Can be one of:<br/>* `assigned`: Issues assigned to you<br/>* `created`: Issues created by you<br/>* `mentioned`: Issues mentioning you<br/>* `subscribed`: Issues you're subscribed to updates for<br/>* `all`: All issues the authenticated user can see, regardless of participation or creation<br/> Default: `assigned`
34-
`state`|`string`| Indicates the state of the issues to return. Can be either `open`or `closed`. Default: `open`
34+
`state`|`string`| Indicates the state of the issues to return. Can be either `open`, `closed`,or `all`. Default: `open`
3535
`labels`|`string`| A list of comma separated label names. Example: `bug,ui,@high`
3636
`sort`|`string`| What to sort results by. Can be either `created`, `updated`, `comments`. Default: `created`
3737
`direction`|`string`| The direction of the sort. Can be either `asc` or `desc`. Default: `desc`
@@ -51,7 +51,7 @@ Name | Type | Description
5151
Name | Type | Description
5252
-----|------|--------------
5353
`milestone`|`integer` or `string`| If an `integer` is passed, it should refer to a milestone number. If the string `*` is passed, issues with any milestone are accepted. If the string `none` is passed, issues without milestones are returned. Default: `*`
54-
`state`|`string`| Indicates the state of the issues to return. Can be either `open`or `closed`. Default: `open`
54+
`state`|`string`| Indicates the state of the issues to return. Can be either `open`, `closed`,or `all`. Default: `open`
5555
`assignee`|`string`| Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user. Default: `*`
5656
`creator`|`string`| The user that created the issue.
5757
`mentioned`|`string`| A user that's mentioned in the issue.

‎content/v3/pulls.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@ Name | Description
3838

3939
Name | Type | Description
4040
-----|------|--------------
41-
`state`|`string` | Either `open`or `closed` to filter by state. Default: `open`
41+
`state`|`string` | Either `open`, `closed`,or `all` to filter by state. Default: `open`
4242
`head`|`string` | Filter pulls by head user and branch name in the format of `user:ref-name`. Example: `github:new-script-format`.
4343
`base`|`string` | Filter pulls by base branch name. Example: `gh-pages`.
44+
`sort`|`string`| What to sort results by. Can be either `created`, `updated`, `popularity` (comment count) or `long-running` (age, filtering by pulls updated in the last month). Default: `created`
45+
`direction`|`string`| The direction of the sort. Can be either `asc` or `desc`. Default: `desc`
4446

4547

4648
### Response

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp