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 55k
    • Issues 55k
    • 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
    • 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
  • #5986
Closed
Open
Issue created May 11, 2018 by James Ramsay (ex-GitLab)@jramsay-gitlab🔴Contributor

Instance level LICENSE 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.

We should make it possible for LICENSE templates to be created in a central repository and be available to every project in the instance. Using a repository allows merge requests to be used to manage the process of changing the templates.

We should allow Admin's to select a repository to be a template repository for the entire instance. In the future we should extend this concept to support groups too.

Proposal

  • Add a setting for Admins to select one repository to be the instance 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. The instance templates should grouped separately from the default GitLab templates.
  • The name of the template in the template list will be the name of the file
  • The repository selected to contain the templates does not need to be public for the templates to be seen by all users via the template list

Screen_Shot_2018-05-29_at_2.16.08_PM

updated-template-file

Links / references

https://gitlab.com/gitlab-org/gitlab-ee/issues/1602

Edited Jun 12, 2018 by Sarrah Vesselov
Assignee
Assign to
Time tracking