•  


Restricting the number of organization-billed codespaces a user can create - GitHub Docs
Skip to main content

Restricting the number of organization-billed codespaces a user can create

You can specify the maximum number of codespaces that any member of your organization, or collaborator, can create for the repositories in your organization.

Who can use this feature?

To manage this constraint for an organization, you must be an owner of the organization.

Organizations on GitHub Team and GitHub Enterprise plans can pay for members' and collaborators' use of GitHub Codespaces. These organizations can then access settings and policies to manage codespaces paid for by the organization. For more information, see " Choosing who owns and pays for codespaces in your organization " and " GitHub’s plans ."

Overview

By default, if organization members, or collaborators, are permitted to create codespaces that are billable to your organization, they can create multiple such codespaces. The number of organization-billed codespaces someone can create is governed by a limit to the total number of codespaces that they can create across all repositories they can access. This limit is set by GitHub.

As an organization owner, you can restrict the number of codespaces that each user can create, where the costs of the codespace are billable to the organization. This can help to reduce the overall cost of GitHub Codespaces to the organization, as there is a charge for codespace storage. For more information, see " About billing for GitHub Codespaces ."

To restrict the maximum number of organization-billed codespaces that users can create, you create a policy in the Codespaces settings for your organization. For example, if you set the maximum to 2, users who already have 2 active or stopped codespaces that are billed to your organization will have to delete one of these before they can create a new codespace that's billed to the organization.

This setting does not restrict users from creating codespaces that are not billed to your organization. For example, they can create additional codespaces for public repositories, using their personal Codespaces usage allowance. However, users who are permitted to create organization-billed codespaces, but have reached the limit for such codespaces, cannot choose to create a codespace for an organization-owned repository using their personal included allowance.

For information about the free use of GitHub Codespaces for personal accounts, see " About billing for GitHub Codespaces ." For information on how to choose who can create codespaces that are billed to your organization, see " Enabling or disabling GitHub Codespaces for your organization ."

Policies with the "Maximum codespaces per user" constraint are applied to every repository in your organization. You can't, therefore, add this constraint to an existing policy that is configured to apply only to selected repositories.

Adding a policy to define the maximum codespaces per user

  1. In the upper-right corner of GitHub, select your profile photo, then click Your organizations .

  2. Next to the organization, click Settings .

  3. In the "Code, planning, and automation" section of the sidebar, select Codespaces then click Policies .

  4. On the "Codespaces policies" page, click Create Policy .

  5. Enter a name for your new policy.

  6. Click Add constraint and choose Maximum codespaces per user .

  7. Click to edit the constraint.

  8. In the "Maximum value" field, enter the maximum number of organization-billed codespaces that each user can create.

    Screenshot of the 'Maximum value' dialog with the value '2' being entered, and 'Cancel' and 'Save' buttons.

  9. Click Save .

  10. If you want to add another constraint to the policy, click Add constraint and choose another constraint. For information about other constraints, see:

    Note : When you add a constraint to a policy that already contains the "Maximum codespaces per user" constraint, you won't be able to restrict the additional constraint to specific repositories, as the "Maximum codespaces per user" constraint applies to all repositories in the organization.

  11. After you've finished adding constraints to your policy, click Save .

The policy is applied when anyone attempts to create a new codespace that is billable to your organization.

Editing a policy

You can edit an existing policy. For example, you may want to add or remove constraints to or from a policy.

  1. Display the "Codespaces policies" page. For more information, see " Adding a policy to define the maximum codespaces per user ."
  2. Click the name of the policy you want to edit.
  3. Beside the "Maximum codespaces per user" constraint, click .
  4. Edit the maximum number of codespaces.
  5. Click Save .

Deleting a policy

  1. Display the "Codespaces policies" page. For more information, see " Adding a policy to define the maximum codespaces per user ."
  2. Click to the right of the policy you want to delete.
- "漢字路" 한글한자자동변환 서비스는 교육부 고전문헌국역지원사업의 지원으로 구축되었습니다.
- "漢字路" 한글한자자동변환 서비스는 전통문화연구회 "울산대학교한국어처리연구실 옥철영(IT융합전공)교수팀"에서 개발한 한글한자자동변환기를 바탕하여 지속적으로 공동 연구 개발하고 있는 서비스입니다.
- 현재 고유명사(인명, 지명등)을 비롯한 여러 변환오류가 있으며 이를 해결하고자 많은 연구 개발을 진행하고자 하고 있습니다. 이를 인지하시고 다른 곳에서 인용시 한자 변환 결과를 한번 더 검토하시고 사용해 주시기 바랍니다.
- 변환오류 및 건의,문의사항은 juntong@juntong.or.kr로 메일로 보내주시면 감사하겠습니다. .
Copyright ⓒ 2020 By '전통문화연구회(傳統文化硏究會)' All Rights reserved.
 한국   대만   중국   일본