- "descriptionHTML": "<p>Removes a collaborator from a repository.</p>\n<p>To use this endpoint, the authenticated user must either be an administrator of the repository or target themselves for removal.</p>\n<p>This endpoint also:</p>\n<ul>\n<li>Cancels any outstanding invitations</li>\n<li>Unasigns the user from any issues</li>\n<li>Removes access to organization projects if the user is not an organization member and is not a collaborator on any other organization repositories.</li>\n<li>Unstars the repository</li>\n<li>Updates access permissions to packages</li>\n</ul>\n<p>Removing a user as a collaborator has the following effects on forks:</p>\n<ul>\n<li>If the user had access to a fork through their membership to this repository, the user will also be removed from the fork.</li>\n<li>If the user had their own fork of the repository, the fork will be deleted.</li>\n<li>If the user still has read access to the repository, open pull requests by this user from a fork will be denied.</li>\n</ul>\n<div class=\"ghd-alert ghd-alert-accent\"><p class=\"ghd-alert-title\"><svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon mr-2\" aria-hidden><path d=\"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z\"></path></svg>Note</p>\n<p>\nA user can still have access to the repository through organization permissions like base repository permissions.</p>\n</div>\n<p>Although the API responds immediately, the additional permission updates might take some extra time to complete in the background.</p>\n<p>For more information on fork permissions, see \"<a href=\"https://docs.github.com/pull-requests/collaborating-with-pull-requests/working-with-forks/about-permissions-and-visibility-of-forks\">About permissions and visibility of forks</a>\".</p>",
0 commit comments