You can request templates for different type of files:
- License files
- .gitignore files
- GitLab CI configuration files
- Dockerfiles
- v4 API:
- v3 API:
- GitLab API: https://docs.gitlab.com/ce/api/templates/licenses.html
List known license templates:
.. literalinclude:: templates.py :start-after: # license list :end-before: # end license list
Generate a license content for a project:
.. literalinclude:: templates.py :start-after: # license get :end-before: # end license get
- v4 API:
- v3 API:
- GitLab API: https://docs.gitlab.com/ce/api/templates/gitignores.html
List known gitignore templates:
.. literalinclude:: templates.py :start-after: # gitignore list :end-before: # end gitignore list
Get a gitignore template:
.. literalinclude:: templates.py :start-after: # gitignore get :end-before: # end gitignore get
- v4 API:
- v3 API:
- GitLab API: https://docs.gitlab.com/ce/api/templates/gitlab_ci_ymls.html
List known GitLab CI templates:
.. literalinclude:: templates.py :start-after: # gitlabciyml list :end-before: # end gitlabciyml list
Get a GitLab CI template:
.. literalinclude:: templates.py :start-after: # gitlabciyml get :end-before: # end gitlabciyml get
- v4 API:
- GitLab API: Not documented.
List known Dockerfile templates:
.. literalinclude:: templates.py :start-after: # dockerfile list :end-before: # end dockerfile list
Get a Dockerfile template:
.. literalinclude:: templates.py :start-after: # dockerfile get :end-before: # end dockerfile get