Skip to main content

Cette version de GitHub Enterprise Server n'est plus disponible depuis le 2024-09-25. Aucune publication de correctifs n’est effectuée, même pour les problèmes de sécurité critiques. Pour de meilleures performances, une sécurité améliorée et de nouvelles fonctionnalités, effectuez une mise à niveau vers la dernière version de GitHub Enterprise. Pour obtenir de l’aide sur la mise à niveau, contactez le support GitHub Enterprise.

Gestion des modèles project dans votre organisation

Vous pouvez définir des projets comme modèles dans votre organisation, permettant à d’autres personnes de sélectionner votre modèle comme base pour les projets qu’ils créent.

Qui peut utiliser cette fonctionnalité ?

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