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.

Commit9e676e8

Browse files
author
Jake Boxer
committed
Merge pull request#821 from github/fix-add-team-repo
Small fix to the "Add team repository" docs
2 parents1cb1f73 +760f1b4 commit9e676e8

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

‎content/changes/2015-06-24-api-enhancements-for-working-with-organization-permissions.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ We would love to hear your thoughts on these enhancements. If you have any quest
7878
[add-team-membership]:/v3/orgs/teams/#add-team-membership
7979
[list-team-repos]:/v3/orgs/teams/#list-team-repos
8080
[get-team-repo]:/v3/orgs/teams/#check-if-a-team-manages-a-repository
81-
[add-team-repo]:/v3/orgs/teams/#add-team-repository
81+
[add-team-repo]:/v3/orgs/teams/#add-or-update-team-repository
8282
[org-members-list]:/v3/orgs/members/#members-list
8383
[org-public-members-list]:/v3/orgs/members/#public-members-list
8484
[list-collabs]:/v3/repos/collaborators/#list-collaborators

‎content/v3/activity/events/types.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ Key | Type | Description
496496

497497
##TeamAddEvent
498498

499-
Triggered when a[repository is added to a team](/v3/orgs/teams/#add-team-repository).
499+
Triggered when a[repository is added to a team](/v3/orgs/teams/#add-or-update-team-repository).
500500

501501
Events of this type are not visible in timelines. These events are only used to trigger hooks.
502502

‎content/v3/orgs/teams.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -350,14 +350,14 @@ permissions the team grants on it, by passing the following custom
350350
<%= headers 200 %>
351351
<%= json:repo %>
352352

353-
##Add team repository
353+
##Addor updateteam repository
354354

355-
In order to add a repository to a team, the authenticated user must have admin
356-
access totherepository, and mustbe abletoseetheteam. Also, the repository
357-
must beowned bytheorganization, or a direct fork of a repository owned by the
358-
organization.
355+
In order to add a repository to a team or update the team's permission on a
356+
repository,theauthenticated user musthave admin accessto therepository, and
357+
must beable to seetheteam. Also, the repository must be owned by the
358+
organization, or a direct fork of a repository owned by the organization.
359359

360-
PUT /teams/:id/repos/:org/:repo
360+
PUT /teams/:id/repos/:owner/:repo
361361

362362
###Parameters
363363

‎content/v3/versions.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ The recommendations below will help you prepare your application for the next ma
143143

144144
1. Team attribute: permission
145145

146-
Recommendation: This attribute no longer dictates the permission a team has on its repositories; it only dictates the default permission that the[Add team repository](/v3/orgs/teams/#add-team-repository) API will use for requests where no`permission` attribute is specified. To change the permission level for every repository on a team, use the[List team repositories](/v3/orgs/teams/#list-team-repos) API to list all of the team's repositories, and then use the[Add team repository](/v3/orgs/teams/#add-team-repository) with a`permission` attribute to update each repository's permission separately.
146+
Recommendation: This attribute no longer dictates the permission a team has on its repositories; it only dictates the default permission that the[Addor updateteam repository](/v3/orgs/teams/#add-or-update-team-repository) API will use for requests where no`permission` attribute is specified. To change the permission level for every repository on a team, use the[List team repositories](/v3/orgs/teams/#list-team-repos) API to list all of the team's repositories, and then use the[Addor updateteam repository](/v3/orgs/teams/#add-or-update-team-repository) with a`permission` attribute to update each repository's permission separately.
147147

148148
<aid="beta">
149149

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp