1
0
mirror of synced 2025-12-25 02:17:36 -05:00

update intros (#27299)

This commit is contained in:
Sarah Edwards
2022-04-28 10:20:26 -07:00
committed by GitHub
parent 0d1b70548c
commit de533d7154
2 changed files with 10 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
---
title: Collaborators
intro: 'The Collaborators API allows you to add, invite, and remove collaborators from a repository.'
intro: 'The Collaborators API allows you manage collaborators for a repository.'
versions:
fpt: '*'
ghes: '*'

View File

@@ -1,6 +1,8 @@
---
title: Invitations
intro: 'The Repository Invitations API allows users or external services to invite other users to collaborate on a repo.'
title: Repository invitations
allowTitleToDifferFromFilename: true
shortTitle: Invitations
intro: 'The Repository invitations API allows you to view and manage invitations to collaborate on a repository.'
versions:
fpt: '*'
ghes: '*'
@@ -11,12 +13,12 @@ topics:
miniTocMaxHeadingLevel: 3
---
The invited users (or external services on behalf of invited users) can choose to accept or decline the invitations.
## About the Repository invitations API
The Repository invitations API allows you to view and manage invitations to collaborate on a repository. The invited users (or external services on behalf of invited users) can choose to accept or decline the invitations.
To add a user as a collaborator, use the Collaborators API instead. For more information, see "[Add a repository collaborator](/rest/collaborators/collaborators#add-a-repository-collaborator)."
Note that the `repo:invite` [OAuth scope](/developers/apps/scopes-for-oauth-apps) grants targeted
access to invitations **without** also granting access to repository code, while the
`repo` scope grants permission to code as well as invitations.
### Invite a user to a repository
Use the API endpoint for adding a collaborator. For more information, see "[Add a repository collaborator](/rest/collaborators/collaborators#add-a-repository-collaborator)."