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の利用登録方法.
- Navigate to the GitHub Copilot sign up page.
- Make sure you're signed in to the right organization account. If you aren't, click Switch and select the organization.
- 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 のコード レビューを有効にする.
-
GitHub の右上隅にあるプロフィール画像をクリックしてから、[ Your organizations] をクリックします。
-
組織をクリックして選択します。
-
Organization 名の下で、[ Settings] をクリックします。 [設定] タブが表示されない場合は、 [] ドロップダウン メニューを選び、 [設定] をクリックします。
![組織のプロファイルのタブのスクリーンショット。 [設定] タブが濃いオレンジ色の枠線で囲まれています。](/assets/cb-49309/images/help/discussions/org-settings-global-nav-update.png)
-
サイドバーの [Code, planning, and automation](コード、計画、自動化) の下で、 click Copilot, then Policies.
-
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.
-
Next to "Copilot code review," select Enabled.
-
Next to "Choose how members with a Copilot license are billed," select Organization.
-
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 コード レビュー.