tartiflette/fetch.py
2017-03-08 09:21:43 -05:00

18 lines
573 B
Python
Executable file

#!/usr/bin/python3
import requests
repos = ["yunohost", "yunohost-admin", "SSOwat", "moulinette", "doc", "ynh-dev",
"apps", "CI_package_check", "example_ynh", "package_linter", "Simone",
"project-organization", "build.yunohost.org", "dynette", "YunoPorts",
"rebuildd", "cd_build", "install_script"]
for repo in repos:
print("Fetching pull requests for %s" % repo)
issues = requests.get("https://api.github.com/repos/yunohost/%s/issues?per_page=100" % repo)
with open("data/%s.json" % repo, "w") as f:
f.write(issues.text)