UNCLASSIFIED

Commits (4)
......@@ -9,7 +9,8 @@ def __getBranches(url, token, id):
url = url + "/api/v4/projects/" + id + "/repository/branches"
HEADER = {
'private_token': token
'private_token': token,
'Accept': 'application/json'
}
page = 1
......@@ -42,7 +43,8 @@ def __getProtectedBranches(url, token, id):
url = url + "/api/v4/projects/" + id + "/protected_branches"
HEADER = {
'private_token': token
'private_token': token,
'Accept': 'application/json'
}
page = 1
......@@ -75,7 +77,8 @@ def __createBranch(url, token, id, name, ref):
url = url + "/api/v4/projects/" + str(id) + "/repository/branches"
HEADER = {
'private_token': token
'private_token': token,
'Accept': 'application/json'
}
PARAMS = {
......@@ -91,7 +94,8 @@ def __createProtectedBranch(url, token, id, access):
url = url + "/api/v4/projects/" + str(id) + "/protected_branches"
HEADER = {
'private_token': token
'private_token': token,
'Accept': 'application/json'
}
PARAMS = {}
......