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

Commitda2f148

Browse files
Hubotgjtorikian
Hubot
authored andcommitted
Sync changes from upstream repository
1 parent83483da commitda2f148

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

‎content/v3/orgs/teams.md‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,20 @@ member of the team.
106106

107107
##Get team member
108108

109+
###Deprecation notice
110+
111+
<divclass="alert">
112+
<p>
113+
The "Get team member" API (described below) is
114+
<a href="/v3/versions/#v3-deprecations">deprecated</a> and is scheduled for
115+
removal in the next major version of the API.
116+
117+
We recommend using the
118+
<a href="/v3/orgs/teams/#get-team-membership">Get team membership API</a>
119+
instead. It allows you to get both active and pending memberships.
120+
</p>
121+
</div>
122+
109123
In order to get if a user is a member of a team, the authenticated user
110124
must be a member of the team.
111125

@@ -121,6 +135,20 @@ must be a member of the team.
121135

122136
##Add team member
123137

138+
###Deprecation notice
139+
140+
<divclass="alert">
141+
<p>
142+
The "Add team member" API (described below) is
143+
<a href="/v3/versions/#v3-deprecations">deprecated</a> and is scheduled for
144+
removal in the next major version of the API.
145+
146+
We recommend using the
147+
<a href="/v3/orgs/teams/#add-team-membership">Add team membership API</a>
148+
instead. It allows you to invite new organization members to your teams.
149+
</p>
150+
</div>
151+
124152
In order to add a user to a team, the authenticated user must have
125153
'admin' permissions to the team or be an owner of the organization that the team
126154
is associated with, and the user being added must already be a member of at
@@ -161,6 +189,20 @@ one other team on the same organization, you will get this:
161189

162190
##Remove team member
163191

192+
###Deprecation notice
193+
194+
<divclass="alert">
195+
<p>
196+
The "Remove team member" API (described below) is
197+
<a href="/v3/versions/#v3-deprecations">deprecated</a> and is scheduled for
198+
removal in the next major version of the API.
199+
200+
We recommend using the
201+
<a href="/v3/orgs/teams/#remove-team-membership">Remove team membership API</a>
202+
instead. It allows you to remove both active and pending memberships.
203+
</p>
204+
</div>
205+
164206
In order to remove a user from a team, the authenticated user must have
165207
'admin' permissions to the team or be an owner of the org that the team
166208
is associated with.

‎content/v3/versions.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ The recommendations below will help you prepare your application for the next ma
5959
1. Method: /repos/:owner/:repo/hooks/:id/test
6060
: Recommendation: Use**/repos/:owner/:repo/hooks/:id/tests** (plural) instead.
6161

62+
1. Method: /teams/:id/members/:username
63+
: Recommendation: Use[Get Team Membership](/v3/orgs/teams/#get-team-membership),[Add Team Membership](/v3/orgs/teams/#add-team-membership), and[Remove Team Membership](/v3/orgs/teams/#remove-team-membership) instead.
64+
6265
1. Query parameters when POSTing to /repos/:owner/:repo/forks
6366
: Recommendation: Use JSON to POST to this method instead.
6467

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp