Skip to main content

Эта версия GitHub Enterprise Server была прекращена 2024-09-25. Исправления выпускаться не будут даже при критических проблемах безопасности. Для повышения производительности, повышения безопасности и новых функций выполните обновление до последней версии GitHub Enterprise Server. Чтобы получить справку по обновлению, обратитесь в службу поддержки GitHub Enterprise.

Управление шаблонами проект в организации

Вы можете задать проекты в качестве шаблонов в организации, позволяя другим людям выбрать шаблон в качестве основы для проектов, которые они создают.

Кто может использовать эту функцию?

People with admin permissions for a project in an organization can set the project as a template. People with admin or write permissions for a project in an organization can copy the project and set the copied project as a template.

Note

Project templates for organizations is currently in beta and subject to change.

About templates

You can set a project as a template to share a pre-configured project with other people in your organization which they can then use as the base for their projects.

The projects you mark as templates are shown in the "Create a project" dialog when anyone creates a project in your organization.

When someone creates a project from a template, the views, custom fields, and draft issues are copied from the template to the new project.

Setting a project as a template

If you have admin permissions for a project in your organization, you can set the project as a template and make it available for others in your organization to use.

  1. Navigate to your project.

  2. In the top-right, click to open the menu.

    Screenshot showing a project's menu bar. The menu icon is highlighted with an orange outline.

  3. In the menu, click Settings to access the project settings.

  4. In the "Templates" section, next to "Make template", select the switch to toggle it to On.

Finding templates in your organization

You can filter the list of projects in your organization to only show projects set as templates.

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

  2. Click the name of your organization.

  3. At the top of the screen, click Projects.

    Screenshot of the navigation bar for an account. A tab, labeled with a table icon and "Projects", is outlined in dark orange.

  4. In the text box above the list of projects, type is:template, and press Enter.

    Screenshot of the projects index page. The search text box is highlighted with an orange outline.

Copying a project as a template

If you have write or admin permissions for a project in your organization, you can choose to copy the project as a template. This will make a duplicate of the current project—copying the views, custom fields, and draft issues —and set that copied project as a template for your organization.

  1. Navigate to your project.

  2. In the top-right, click to open the menu.

    Screenshot showing a project's menu bar. The menu icon is highlighted with an orange outline.

  3. In the menu, click Settings to access the project settings.

  4. In the "Templates" section, click Copy as template.

Further reading