Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
GitLab Enterprise Edition
GitLab Enterprise Edition
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
    • Locked Files
  • Issues 3,632
    • Issues 3,632
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 229
    • Merge Requests 229
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Registry
    • Registry
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GitLab.org
  • GitLab Enterprise EditionGitLab Enterprise Edition
  • Issues
  • #5987

Closed
Open
Opened May 11, 2018 by James Ramsay@jramsay
  • Report abuse
  • New issue
Report abuse New issue

Group level file templates

Templates are important for easily getting started with a project and increase consistency between projects. If a company has a custom license they use for all their projects, it would currently need to be copied into every new project manually.

Building on the work of #5986 (closed) and #5306 (closed), we should make it possible for templates to be created in a central repository and be available to every project in the group. Adding group support makes this feature useful for large instances where there independent teams that need different templates and want to manage them separately.

We should allow Group Maintainers to select a repository in the group to be a template repository for the group and sub-groups.

Proposal

  • Add a setting for Groups to select one repository in the group to be the group template repository
  • Files in the default branch of the LICENSE directory of the template repository will be shown in the license template list when creating/editing a file in projects in the group or sub-group
    • Projects shared from one group to another should not inherit templates from that group.
  • The name of the template in the template list will be the name of the file

We can extend the existing pattern which we built on in #5306 (closed)

Designs

Group Settings Template chooser dropdown (in file editor)
image template-chooser
Edited Oct 01, 2018 by Jeethu Karthik

Related issues

Assignee
Assign to
Epic
11.5
Milestone
11.5
Assign milestone
Time tracking
None
Due date
No due date
15
Labels
Create Deliverable GitLab Premium In review P2 UX ready backend customer devops:create direction feature missed-deliverable missed:11.4 repository settings
Assign labels
  • View project labels
Reference: gitlab-org/gitlab-ee#5987