summaryrefslogtreecommitdiff
path: root/docs/gl_objects/projects.py
diff options
context:
space:
mode:
authorTwan <tmeynen@inuits.eu>2018-04-13 10:25:27 +0200
committerGitHub <noreply@github.com>2018-04-13 10:25:27 +0200
commit629b1e1c9488cea4bf853a42622dd7f182ee47ed (patch)
tree0cdc6f8372095cd4ae7e2d3d6e18a918ba114d9e /docs/gl_objects/projects.py
parentf3533cd7b4c84454a78644af6f2f2c1a16bbe109 (diff)
downloadgitlab-629b1e1c9488cea4bf853a42622dd7f182ee47ed.tar.gz
Update projects.py
Add missing attributes to file.create in order to make it work.
Diffstat (limited to 'docs/gl_objects/projects.py')
-rw-r--r--docs/gl_objects/projects.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/gl_objects/projects.py b/docs/gl_objects/projects.py
index 27d250b..22c805d 100644
--- a/docs/gl_objects/projects.py
+++ b/docs/gl_objects/projects.py
@@ -195,11 +195,13 @@ print(f.decode())
# files create
# v4
-f = project.files.create({'file_path': 'testfile',
+f = project.files.create({'file_path': 'testfile.txt',
'branch': 'master',
'content': file_content,
+ 'author_email': 'test@example.com',
+ 'author_name': 'yourname',
+ 'encoding': 'text',
'commit_message': 'Create testfile'})
-
# v3
f = project.files.create({'file_path': 'testfile',
'branch_name': 'master',