Skip to content

Commit 2b9ae5c

Browse files
author
Gauvain Pocentek
authored
Merge pull request #483 from ToonMeynen/patch-2
Update projects.py documentation
2 parents f3533cd + 629b1e1 commit 2b9ae5c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/gl_objects/projects.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,13 @@
195195

196196
# files create
197197
# v4
198-
f = project.files.create({'file_path': 'testfile',
198+
f = project.files.create({'file_path': 'testfile.txt',
199199
'branch': 'master',
200200
'content': file_content,
201+
'author_email': 'test@example.com',
202+
'author_name': 'yourname',
203+
'encoding': 'text',
201204
'commit_message': 'Create testfile'})
202-
203205
# v3
204206
f = project.files.create({'file_path': 'testfile',
205207
'branch_name': 'master',

0 commit comments

Comments
 (0)