Skip to main content
Skip to content

Enabling GitHub Copilot code review in your organization

Turn on Copilot code review for your organization's pull requests without assigning a Copilot license to any member.

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

Organization owners

Copilot Business, Copilot Enterpriseили Copilot план доступа для подходящих предприятий

After you enable the policy for Copilot code review, members with a Copilot license from your organization can request reviews. You can also allow reviews without a license. The AI credits those reviews use are billed to your organization or enterprise.

Subscribing to Copilot Business without assigning licenses

Your organization needs a Copilot plan and a payment method and billing information on file, but it doesn't need to assign any licenses. If your organization already has a plan, skip to Enabling Copilot code review. If your organization is owned by an enterprise, an enterprise owner sets up the plan. See Подписка на GitHub Copilot для вашего предприятия.

  1. Navigate to the GitHub Copilot sign up page.
  2. Make sure you're signed in to the right organization account. If you aren't, click Switch and select the organization.
  3. Click Enable GitHub Copilot.

After you enable Copilot, you don't need to assign any licenses. You're billed for Copilot Business licenses only when you assign them.

Enabling Copilot code review

We recommend having your organization pay for every review, so that no pull request goes without a review. Otherwise, reviews for members who use their own Copilot license, such as Copilot Pro, stop when those members run out of AI credits, and pull requests from authors without a license don't get reviews. To limit what your organization spends, see Controlling spending.

If your organization is owned by an enterprise, you can't change settings that an enterprise owner has set. An enterprise owner can turn on reviews without a license or let organizations decide. See Включение проверки кода GitHub Copilot в вашем предприятии.

  1. В правом верхнем углу GitHub, щелкните рисунок профиля, а затем выберите Ваши организации.

  2. Выберите организацию, щелкнув ее.

  3. Под именем организации щелкните Settings. Если вкладка "Параметры" не отображается, выберите раскрывающееся меню и нажмите кнопку "Параметры".

    Снимок экрана: вкладки в профиле организации. Вкладка "Параметры" выделена темно-оранжевым цветом.

  4. На боковой панели в разделе "Код, планирование и автоматизация", click Copilot, then Policies.

  5. Under "Billing," next to "AI credit paid usage," select Enabled, or select Enabled for selected products and turn on Opt in to Copilot AI Credits paid usage.

  6. Next to "Copilot code review," select Enabled.

  7. Next to "Choose how members with a Copilot license are billed," select Organization.

  8. Turn on Allow reviews without a Copilot license. Reviews without a license include pull requests from outside contributors, members on Copilot Free, and bots such as Dependabot.

Pull requests in your organization can now get reviews from Copilot, whether or not their authors have a license. Members without a license can't request reviews in IDEs.

Configuring automatic code review

To have Copilot review pull requests without anyone requesting a review, create a ruleset for the repositories where you want automatic reviews. After members without a license can use Copilot code review, automatic reviews run on their pull requests too. See Настройка проверки кода GitHub Copilot.

Controlling spending

If your organization isn't owned by an enterprise and has no assigned licenses, or is owned by an enterprise on the Copilot access plan, it has no included AI credits. Every review billed to it is paid usage.

To cap spending, create an organization budget for AI credits and select Stop usage when budget limit is reached. At the limit, reviews that need paid usage stop until the next billing cycle or until you raise the budget. See Настройка бюджетов для контроля расходов на лимитные продукты.

If your organization is owned by an enterprise, create the budget in your enterprise account's billing settings, with your organization as its scope. An enterprise owner can also set a budget for a cost center or the whole enterprise. See Бюджеты для выставления счетов на основе использования.

Reviews also use GitHub Actions minutes. See проверка кода GitHub Copilot.