We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dc3dcd1 + 0c1c894 commit 449830fCopy full SHA for 449830f
docs/gl_objects/projects.py
@@ -51,6 +51,9 @@
51
fork = gl.project_forks.create({}, project_id=1)
52
# or
53
fork = project.forks.create({})
54
+
55
+# fork to a specific namespace
56
+fork = gl.project_forks.create({'namespace': 'myteam'}, project_id=1)
57
# end fork
58
59
# forkrelation
gitlab/objects.py
@@ -1169,6 +1169,7 @@ class ProjectFork(GitlabObject):
1169
canList = False
1170
canGet = False
1171
requiredUrlAttrs = ['project_id']
1172
+ optionalCreateAttrs = ['namespace']
1173
1174
1175
class ProjectForkManager(BaseManager):
0 commit comments