Server side commit workflow

This commit is contained in:
2014-10-30 19:23:57 +01:00
parent 4d16028d31
commit a3eb5b05a3
2 changed files with 35 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
#!/usr/bin/env python3
import requests
import json
import os
MODULE_DIR = os.path.dirname(__file__)
@@ -43,8 +44,13 @@ def request_url(path):
# params={'file': filepath}
# )
args = {
'message' : 'Adding test file.'
}
payload = {
'command' : 'checkin',
'command' : 'commit',
'arguments' : json.dumps(args)
}
files = {'file': open('buck.mp4', 'rb')}