diff options
author | Twan <tmeynen@inuits.eu> | 2018-04-13 10:25:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-13 10:25:27 +0200 |
commit | 629b1e1c9488cea4bf853a42622dd7f182ee47ed (patch) | |
tree | 0cdc6f8372095cd4ae7e2d3d6e18a918ba114d9e /docs/gl_objects/projects.py | |
parent | f3533cd7b4c84454a78644af6f2f2c1a16bbe109 (diff) | |
download | gitlab-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.py | 6 |
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', |