关于 Codespaces 的支出限额
Note: You must set a spending limit before you can use Codespaces.
By default, your organization or enterprise will have a Codespaces spending limit of $0, which prevents new codespaces from being created or existing codespaces from being opened. To allow your users to create codespaces in your organization, set the limit to a value higher than $0.
Once you've reached your spending limit, your organization or repository will no longer be able to create new codespaces, and won't be able to start existing codespaces. Any existing codespaces that are still running will not be shutdown; if you don't change the spending limit, you will not be charged for the amount that exceeds the limit.
有关 Codespaces 使用价格的更多信息,请参阅“关于 Codespaces 的计费”。
Using your Azure Subscription
If you purchased GitHub Enterprise through a Microsoft Enterprise Agreement, you can connect your Azure Subscription ID to your enterprise account to enable and pay for Codespaces usage. 更多信息请参阅“将 Azure 订阅连接到您的企业”。
管理组织的 Codespaces 支出限额
组织所有者和帐单管理员可管理组织的 Codespaces 支出限额。
- 在任何页面的右上角,单击您的个人资料照片,然后单击 Settings(设置)。

- 在设置侧边栏中,单击 Organizations(组织)。

- 在组织旁边,单击 Settings(设置)。

- 如果您是组织所有者,请在左侧边栏中单击 Billing & plans(帐单和计划)。

- 在页面顶部的“Payment information(付款信息)”下,单击 Manage spending limit(管理支出限制)。

- Under "Monthly spending limit", scroll down to "Codespaces" and choose to limit spending or allow unlimited spending.

- 如果您选择限制支出,在“Limit spending(限制支出)”下输入限额,然后单击 Update limit(更新限制)。

管理企业帐户的 Codespaces 支出限额
企业所有者和帐单管理员可管理企业帐户的 Codespaces 支出限额。
-
在 GitHub 的右上角,单击您的个人资料照片,然后单击 Your enterprises(您的企业)。

-
在企业列表中,单击您想要查看的企业。

-
在企业帐户侧边栏中,单击 Settings(设置)。

-
在左侧边栏中,单击 Billing(计费)。

-
Above "Codespaces monthly usage", click Spending Limit.

-
在“Monthly spending limit(每月支出限额)”下,选择限制支出或允许无限支出。

-
如果您选择限制支出,在“Limit spending(限制支出)”下输入限额,然后单击 Update limit(更新限制)。

Exporting changes when you have reached your spending limit
If you hit a spending limit, you will no longer be able to create or resume your codespaces. You can still export any work in progress changes to a new branch.
Managing usage and spending limit email notifications
Email notifications are sent to account owners and billing managers when spending reaches 50%, 75%, and 90% of your account's spending limit.
You can disable these notifications anytime by navigating to the bottom of the Spending Limit page.