Skip to main content

Enforcing policies for projects in your enterprise

You can enforce policies for projects 和 经典项目 within your enterprise's organizations, or allow policies to be set in each organization.

Who can use this feature

Enterprise owners can enforce policies for projects in an enterprise.

About policies for projects in your enterprise

You can enforce policies to control how enterprise members manage projects 和 经典项目, or you can allow organization owners to manage policies for projects 和 经典项目 at the organization level.

Some policies apply to both Projects, the new projects experience, and projects (classic), the previous experience, while some apply only to projects (classic). For more information about each experience, see "About Projects" and "About projects (classic)."

Enforcing a policy for organization-wide projects

Across all organizations owned by your enterprise, you can enable or disable organization-wide project boards, or allow owners to administer the setting on the organization level.

  1. 在 GitHub.com 的右上角,单击你的个人资料照片,然后单击“你的企业”。 GitHub Enterprise Cloud 上个人资料照片下拉菜单中的“你的企业”

  2. 在企业列表中,单击您想要查看的企业。 企业列表中的企业名称

  3. 在企业边栏中,单击 “策略”。 企业帐户边栏中的“策略”选项卡

  4. 在左侧边栏中,单击“项目”。 在企业帐户设置侧边栏中的“项目”选项卡

  5. Under "Organization projects", review the information about changing the setting. (可选)若要在更改设置之前查看企业帐户中所有组织的当前配置,请单击 查看组织的当前配置查看企业中组织的当前策略配置的链接

  6. Under "Organization projects", use the drop-down menu and choose a policy. Drop-down menu with organization project board policy options

Enforcing a policy for visibility changes to projects

Across all organizations owned by your enterprise, you can enable or disable the ability for people with admin access to a project to change the visibility of the project, or you can allow owners to administer the setting on the organization level.

  1. 在 GitHub.com 的右上角,单击你的个人资料照片,然后单击“你的企业”。 GitHub Enterprise Cloud 上个人资料照片下拉菜单中的“你的企业”

  2. 在企业列表中,单击您想要查看的企业。 企业列表中的企业名称

  3. 在企业边栏中,单击 “策略”。 企业帐户边栏中的“策略”选项卡

  4. 在左侧边栏中,单击“项目”。 在企业帐户设置侧边栏中的“项目”选项卡

  5. Under "Project visibility change permission", review the information about changing the setting. (可选)若要在更改设置之前查看企业帐户中所有组织的当前配置,请单击 查看组织的当前配置查看企业中组织的当前策略配置的链接

  6. Select the dropdown menu, then click a policy.

    Screenshot of the dropdown menu for configuring the "Project visibility change permission" policy

Enforcing policies for projects (classic)

Some policies apply only to projects (classic).

Enforcing a policy for repository projects

Across all organizations owned by your enterprise, you can enable or disable repository-level projects, or allow owners to administer the setting at the organization level.

  1. 在 GitHub.com 的右上角,单击你的个人资料照片,然后单击“你的企业”。 GitHub Enterprise Cloud 上个人资料照片下拉菜单中的“你的企业”

  2. 在企业列表中,单击您想要查看的企业。 企业列表中的企业名称

  3. 在企业边栏中,单击 “策略”。 企业帐户边栏中的“策略”选项卡

  4. 在左侧边栏中,单击“项目”。 在企业帐户设置侧边栏中的“项目”选项卡

  5. Under "Repository projects", review the information about changing the setting. (可选)若要在更改设置之前查看企业帐户中所有组织的当前配置,请单击 查看组织的当前配置查看企业中组织的当前策略配置的链接

  6. Under "Repository projects", use the drop-down menu and choose a policy.

    Drop-down menu with repository project board policy options