forked from python-gitlab/python-gitlab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplates.py
More file actions
35 lines (28 loc) · 752 Bytes
/
templates.py
File metadata and controls
35 lines (28 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# license list
licenses = gl.licenses.list()
# end license list
# license get
license = gl.licenses.get('apache-2.0', project='foobar', fullname='John Doe')
print(license.content)
# end license get
# gitignore list
gitignores = gl.gitignores.list()
# end gitignore list
# gitignore get
gitignore = gl.gitignores.get('Python')
print(gitignore.content)
# end gitignore get
# gitlabciyml list
gitlabciymls = gl.gitlabciymls.list()
# end gitlabciyml list
# gitlabciyml get
gitlabciyml = gl.gitlabciymls.get('Pelican')
print(gitlabciyml.content)
# end gitlabciyml get
# dockerfile list
dockerfiles = gl.dockerfiles.list()
# end dockerfile list
# dockerfile get
dockerfile = gl.dockerfiles.get('Python')
print(dockerfile.content)
# end dockerfile get