Skip to content

Commit

Permalink
Further git test code
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel83 authored and Manuel83 committed Oct 13, 2017
1 parent a265d3a commit f07a2bd
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions gittest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
import requests
from git import Repo, Git

repo = Repo('./')
print repo
for remote in repo.remotes:
print remote
remote.fetch()ls

remote.fetch()

url = 'https://api.github.com/repos/manuel83/craftbeerpi3/releases'
response = requests.get(url)

result = []

for r in response.json():
result.append({"tag_name": r.get("tag_name"), "timestamp": r.get("created_at")})

print result

0 comments on commit f07a2bd

Please sign in to comment.