Skip to content
GitLab
Next
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 54.7k
    • Issues 54.7k
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1.6k
    • Merge requests 1.6k
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
    • Model experiments
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #1602
Project 'gitlab-org/gitlab-ee' was moved to 'gitlab-org/gitlab'. Please update any links and bookmarks that may still have the old path.
Closed
Open
Issue created Dec 13, 2016 by Job van der Voort@JobV🚀Contributor

File template repository

Templates are important for easily getting started with a project. It's a shame that people can't create their own templates that suit the needs of their own teams.

We should just have a repository per instance / group with templates, from which we load them. This way they can be managed, changed and reviewed easily.

Proposal

  • Templates are managed in a repository
  • It should be transparent to the end user: the user does not have to know that templates are managed by git.

Specification of the templates project:

  • The templates project is at the instance level, and/or the group level.
  • Template project at the group level will override template project defined at the instance level.
  • All LICENSE templates, for instance, will be located in a LICENSE folder inside this project.
  • Extensions we'll read when populating dropdowns are
    • files with no extension
    • .gitignore
    • .yml
    • .md
    • .txt

List of the template folders we'll support for instances and groups

  • .gitlab-ci.yml
  • .gitignore
  • LICENSE
  • Dockerfile

Possible future improvements:

  • Interface to manage templates
  • Description templates for issues and merge requests https://gitlab.com/gitlab-org/gitlab-ee/issues/6886
  • Custom file templates https://gitlab.com/gitlab-org/gitlab-ce/issues/26199
    • /README
    • /contribution-guide
    • /services

Links / references

Edited Jul 11, 2018 by James Ramsay (ex-GitLab)
Assignee
Assign to
Time tracking