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.

Commit6714b76

Browse files
author
Jake Boxer
committed
Shorten blog post
* /cc@jasonrudolph
1 parent8765f95 commit6714b76

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

‎content/changes/2015-07-22-more-flexible-options-for-listing-repositories.md‎

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,9 @@ author_name: jakeboxer
77

88
We're offering an improved way to filter the repositories returned by the[List your repositories][list-your-repos] API. We've added two new parameters that supercede the old`type` parameter:`visibility` and`affiliation`.
99

10-
The`visibility` parameter filters repositories by their visibility. It defaults to`"all"`, but youcanpass`"public"` or`"private"`toonly list public or privaterepositories(respectively).
10+
The`visibility` parameter filters repositories by their visibility, while the`affiliation` parameter filters repositories by how they're affiliated with the authenticated user. Theycanbe used separately, together, and in combination with other parameterstocraft flexible queries that will fetch the exactrepositoriesyou're looking for.
1111

12-
The`affiliation` parameter filters repositories by how they're affiliated with the authenticated user. You can choose from three different affiliations:
13-
14-
- If you pass`"owner"`, you'll include repositories that are owned by the authenticated user.
15-
- If you pass`"collaborator"`, you'll include repositories that the authenticated user has been added as a collaborator to.
16-
- If you pass`"organization_member"`, you'll include repositories that the authenticated user has access to through an organization membership. For example, this will include all repositories that have been added to teams the authenticated user is on.
17-
18-
If you want to include repositories that span multiple types of affiliation, you can pass a comma-separated string. For example, if you want a list of all the repositories that the user owns or is a collaborator on, you can pass`affiliation=owner,collaborator`. If no`affiliation` parameter is passed, it defaults to`affiliation=owner,collaborator,organization_member`.
19-
20-
The`type` parameter will continue to function as normal, but if you'd like to learn how to take advantage of these new parameters, check out[the API documentation][list-your-repos].
21-
22-
If you have any questions or feedback, please[get in touch with us][contact]!
12+
For full details, check out the[List your repositories API documentation][list-your-repos]. If you have any questions or feedback, please[get in touch with us][contact]!
2313

2414
[list-your-repos]:/v3/repos/#list-your-repositories
2515
[contact]:https://github.com/contact?form[subject]=List+your+repositories+API

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp