There was an error while loading. Please reload this page.
1 parent 4a2ae8a commit c7b3f96Copy full SHA for c7b3f96
1 file changed
docs/gl_objects/commits.py
@@ -17,8 +17,15 @@
17
'actions': [
18
{
19
'action': 'create',
20
- 'file_path': 'blah',
21
- 'content': 'blah'
+ 'file_path': 'README.rst',
+ 'content': open('path/to/file.rst').read(),
22
+ },
23
+ {
24
+ # Binary files need to be base64 encoded
25
+ 'action': 'create',
26
+ 'file_path': 'logo.png',
27
+ 'content': base64.b64encode(open('logo.png').read()),
28
+ 'encoding': 'base64',
29
}
30
]
31
0 commit comments