您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

18 行
356B

  1. import requests
  2. from git import Repo, Git
  3. repo = Repo('./')
  4. print repo
  5. for remote in repo.remotes:
  6. remote.fetch()
  7. url = 'https://api.github.com/repos/manuel83/craftbeerpi3/releases'
  8. response = requests.get(url)
  9. result = []
  10. for r in response.json():
  11. result.append({"tag_name": r.get("tag_name"), "timestamp": r.get("created_at")})
  12. print result