Skip to main content

Enterprise Server 3.21 is currently available as a release candidate.

Disabling pull requests

You may wish to modify pull request access for your repository if you want to restrict contributions, or disable them entirely.

  1. On GitHub, navigate to the main page of the repository.

  2. Under your repository name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

    Screenshot of a repository header showing the tabs. The "Settings" tab is highlighted by a dark orange outline.

  3. To disable pull requests entirely, under "Features", deselect Pull requests.

If you decide to enable pull requests again in the future, any pull requests that were previously added will be available.

  1. To restrict pull requests to collaborators only, in the dropdown under "Pull requests" select Collaborators only.

    In personal repositories, a collaborator is anyone who has been invited to the repository. For more information, see Permission levels for a personal account repository.

    In organization repositories, a collaborator is a user who has been granted the write, maintain, or admin role for the repository. For more information about organization roles, see Repository roles for an organization.