diff --git a/content/copilot/concepts/agent-capabilities/agent-powered-workflows-and-operations/code-review.md b/content/copilot/concepts/agent-capabilities/agent-powered-workflows-and-operations/code-review.md index 07a0127e3a1a..1b592974dacb 100644 --- a/content/copilot/concepts/agent-capabilities/agent-powered-workflows-and-operations/code-review.md +++ b/content/copilot/concepts/agent-capabilities/agent-powered-workflows-and-operations/code-review.md @@ -112,13 +112,21 @@ Each time {% data variables.product.prodname_copilot_short %} reviews a pull req Code reviews have two cost components: {% data variables.product.prodname_ai_credits_short %} for the model interaction (the review itself), and {% data variables.product.prodname_actions %} minutes for the agentic capabilities (context gathering and tool use). For more information on {% data variables.product.prodname_actions %} usage, see [Usage of {% data variables.product.prodname_actions %} runners for agentic capabilities in code review](#usage-of-github-actions-runners-for-agentic-capabilities-in-code-review). -By default, when a repository automatically requests a code review, {% data variables.product.prodname_ai_credits_short %} consumption is attributed to the pull request author. If another user manually requests a review, consumption is attributed to that user instead. +When a repository automatically requests a review billed to a member, {% data variables.product.prodname_ai_credits_short %} consumption is attributed to the pull request author. If another user manually requests a review, consumption is attributed to that user instead. For pull requests authored by {% data variables.copilot.copilot_cloud_agent %}, usage is attributed first to the human co-author associated with the change. If the co-author cannot be billed, usage is billed directly to the organization. For pull requests authored by other bots, or when a bot requests the review, usage is billed directly to the organization. These pull requests are eligible for agentic review. -For requests associated with organization members who have paid {% data variables.product.prodname_copilot_short %} licenses, the member's entitlement is billed by default. An enterprise or organization owner can instead choose to bill the organization. Billing the organization requires {% data variables.product.prodname_ai_credits_short %} paid usage, but a budget is optional. This choice applies to both manually requested and automatic code reviews, and changes billing only. On its own, it does not grant access to {% data variables.copilot.copilot_code-review_short %}. +Enterprise or organization owners can choose the billing source for requests associated with organization members who have paid {% data variables.product.prodname_copilot_short %} licenses. They can bill the member's entitlement or the organization that owns the repository. Billing the organization requires {% data variables.product.prodname_ai_credits_short %} paid usage, but a budget is optional. This choice applies to both manually requested and automatic code reviews, and changes billing only. On its own, it does not grant access to {% data variables.copilot.copilot_code-review_short %}. + +### Default billing for licensed members + +If an administrator has not saved a billing choice, eligible reviews associated with members who have paid {% data variables.product.prodname_copilot_short %} licenses are billed to the organization that owns the repository. Organization settings respect inherited enterprise policies. + +To bill members' entitlements instead, select **Member** in your enterprise or organization settings. Organization-funded reviews can increase your organization's spending. + +The separate setting for members without a {% data variables.product.prodname_copilot_short %} license is off by default. Choosing a billing source for licensed members does not enable access for members without a license or change {% data variables.product.prodname_actions %} billing. ### Users without a {% data variables.product.prodname_copilot_short %} license or plan that includes {% data variables.copilot.copilot_code-review_short %} diff --git a/content/copilot/how-tos/copilot-on-github/set-up-copilot/configure-code-review.md b/content/copilot/how-tos/copilot-on-github/set-up-copilot/configure-code-review.md index aad669a12a3f..2d6d5338ecad 100644 --- a/content/copilot/how-tos/copilot-on-github/set-up-copilot/configure-code-review.md +++ b/content/copilot/how-tos/copilot-on-github/set-up-copilot/configure-code-review.md @@ -141,10 +141,13 @@ You can configure how {% data variables.copilot.copilot_code-review_short %} com If Adaptive is the default, {% data variables.product.prodname_copilot_short %} won't select a review effort level above the configured maximum. 1. To choose how {% data variables.product.prodname_ai_credits_short %} usage associated with members who have paid {% data variables.product.prodname_copilot_short %} licenses is billed, next to **Choose how members with a {% data variables.product.prodname_copilot_short %} license are billed**, select an option. - * **Member**: Use the member's {% data variables.product.prodname_copilot_short %} entitlement. If the member's quota is exhausted, the code review fails. This is the default. - * **Organization**: Bill the organization. + * **Default**: Bill the organization that owns the repository. This option appears when an administrator has not saved a billing choice. + * **Member**: Use the member's {% data variables.product.prodname_copilot_short %} entitlement. If the member's quota is exhausted, the code review fails. + * **Organization**: Bill the organization that owns the repository. + + If your enterprise enforces a billing choice, you cannot override it at the organization level. - This choice applies to both manually requested and automatic code reviews, and changes billing only. It does not grant access to {% data variables.copilot.copilot_code-review_short %}. To use **Organization**, {% data variables.product.prodname_ai_credits_short %} paid usage must be enabled for the organization. Setting a budget is optional. See [AUTOTITLE](/copilot/concepts/billing/organizations-and-enterprises/usage-based-billing#what-happens-if-i-exceed-my-included-ai-credits). + This choice applies to both manually requested and automatic code reviews, and changes billing only. It does not grant access to {% data variables.copilot.copilot_code-review_short %} or enable reviews for members without a license. To use **Organization**, {% data variables.product.prodname_ai_credits_short %} paid usage must be enabled for the organization. Setting a budget is optional. See [AUTOTITLE](/copilot/concepts/billing/organizations-and-enterprises/usage-based-billing#what-happens-if-i-exceed-my-included-ai-credits). 1. To choose whether {% data variables.product.prodname_copilot_short %} can approve pull requests in your repositories, select an option under "Approvals," next to "Count {% data variables.product.prodname_copilot_short %} approvals toward merge requirements." * **Enabled everywhere**: {% data variables.product.prodname_copilot_short %} approvals can count toward merge requirements in every repository in the organization. * **Let repositories decide**: Repository admins can decide this in repository settings. @@ -178,10 +181,13 @@ You can configure how {% data variables.copilot.copilot_code-review_short %} com If Adaptive is the default, {% data variables.product.prodname_copilot_short %} won't select a review effort level above the configured maximum. 1. To choose who is billed for {% data variables.copilot.copilot_code-review_short %} usage by members with a paid {% data variables.product.prodname_copilot_short %} license, next to "Choose how members with a {% data variables.product.prodname_copilot_short %} license are billed," select a policy. + * **Default**: Bill the organization that owns the repository. This option appears when an administrator has not saved a billing choice. * **Member**: Use the member's {% data variables.product.prodname_copilot_short %} entitlement for organizations in the enterprise. * **Organization**: Bill the organization that owns the repository. * **Let organizations decide**: Organization owners can choose how to bill usage associated with members who have paid {% data variables.product.prodname_copilot_short %} licenses. + This policy changes billing only and does not enable reviews for members without a license. + Organizations billed must have {% data variables.product.prodname_ai_credits_short %} paid usage enabled. Setting a budget is optional. 1. To choose whether {% data variables.product.prodname_copilot_short %} can approve pull requests in your organizations, next to "Allow {% data variables.product.prodname_copilot_short %} to approve pull requests," select a policy. * **Let organizations decide**: Organization owners can choose whether to enable {% data variables.product.prodname_copilot_short %} approvals.