2017-03-17 19:27:52 +01:00
|
|
|
#!/usr/bin/python3
|
|
|
|
|
|
|
|
import requests
|
|
|
|
import json
|
|
|
|
|
2017-07-03 23:33:27 +02:00
|
|
|
roadmaps = { "2.6.x": 11, "2.7.x": 13 }
|
|
|
|
|
2017-03-17 19:27:52 +01:00
|
|
|
def get_roadmapissues():
|
|
|
|
|
2017-07-03 23:33:27 +02:00
|
|
|
for roadmap, id in roadmaps.items():
|
2017-03-17 19:27:52 +01:00
|
|
|
|
2017-07-03 23:33:27 +02:00
|
|
|
issues = requests.get("https://dev.yunohost.org/issues.xml?fixed_version_id="+str(id)+"&status_id=*&limit=100", verify=False)
|
2017-03-17 19:27:52 +01:00
|
|
|
|
2017-07-03 23:33:27 +02:00
|
|
|
with open("data/raw_"+roadmap+"_issues.xml", "w") as f:
|
|
|
|
f.write(issues.text)
|
2017-03-17 19:27:52 +01:00
|
|
|
|
|
|
|
get_roadmapissues()
|