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.

Wer kann dieses Feature verwenden?

Organization owners

Copilot Business, oder Copilot Enterprise, oder der Copilot Tarif für berechtigte Unternehmen

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 Abonnieren von GitHub Copilot für Ihr Unternehmen.

  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 Aktivieren GitHub Copilot Codeüberprüfung in Ihrem Unternehmen.

  1. Klicke in der rechten oberen Ecke von GitHub auf dein Profilbild und dann auf Your organizations.

  2. Wählen Sie eine Organisation aus, indem Sie darauf klicken.

  3. Klicke unter dem Organisationsnamen auf Settings. Wenn die Registerkarte „Einstellungen“ nicht angezeigt wird, wähle im Dropdownmenü die Option Einstellungen aus.

    Screenshot der Registerkarten im Profil einer Organisation. Die Registerkarte „Einstellungen“ ist dunkelorange umrandet.

  4. In der Randleiste unter "Code, Planung und Automatisierung" 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 Konfigurieren der Codeüberprüfung durch 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 Einrichten von Budgets zum Kontrollieren der Ausgaben für Produkte mit verbrauchseinheitenbasierter Abrechnung.

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 Budgets für nutzungsbasierte Abrechnung.

Reviews also use GitHub Actions minutes. See GitHub Copilot Codeüberprüfung.