Skip to main content

Управление проверками запросов на вытягивание в репозитории

Вы можете настроить ограничения касательно того, какие пользователи могут одобрять или запрашивать изменения в запросах на вытягивание в общедоступном репозитории.

Кто может использовать эту функцию?

Repository administrators can limit which users can approve or request changes to a pull request in a public repository.

About code review limits

By default, in public repositories, any user can submit reviews that approve or request changes to a pull request.

You can limit which users are able to submit reviews that approve or request changes to pull requests in your public repository. When you enable code review limits, anyone can comment on pull requests in your public repository, but only people with read access or higher can approve pull requests or request changes.

You can also enable code review limits for an organization. If you enable limits for an organization, you will override any limits for individual repositories owned by the organization. For more information, see Managing pull request reviews in your organization.

Enabling code review limits

  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. Under Access, click Moderation options.

  4. Under Moderation options, click Code review limits.

  5. Select or deselect Limit to users explicitly granted read or higher access.