Commit cc80f6b8 authored by Julien Michel's avatar Julien Michel

BUG: Fix error on status filtering

parent fee20620
......@@ -10,7 +10,7 @@ id=53
if len(sys.argv)!=3:
print("Usage: {} release_name(ex: 6.6.0) last_release_date(ex: 2017-12-22)".format(sys.argv[0]))
print("Warning: a maximum of 1000 merge requets will be returned")
print("Warning: a maximum of 1000 merge requests will be returned")
exit(1)
......@@ -18,12 +18,12 @@ milestone = sys.argv[1]
last_release_date = sys.argv[2]
# Merge Requests with milestone M.m.p
req="https://gitlab.orfeo-toolbox.org/api/v4/projects/53/merge_requests?scope=all&per_page=1000&status=merged&milestone={}".format(milestone)
req="https://gitlab.orfeo-toolbox.org/api/v4/projects/53/merge_requests?scope=all&per_page=1000&state=merged&milestone={}".format(milestone)
r = requests.get(req,verify=False)
data = json.loads(r.text)
#Merge Requests merged in develop after branching to last release
req="https://gitlab.orfeo-toolbox.org/api/v4/projects/53/merge_requests?scope=all&per_page=1000&status=merged&target_branch=develop&updated_after={}".format(last_release_date)
req="https://gitlab.orfeo-toolbox.org/api/v4/projects/53/merge_requests?scope=all&per_page=1000&state=merged&target_branch=develop&updated_after={}".format(last_release_date)
r = requests.get(req,verify=False)
data+=json.loads(r.text)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment