Created
January 8, 2016 13:03
-
-
Save ttx/1bc34b9b203bbfe8b7b0 to your computer and use it in GitHub Desktop.
project-repo-count.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import yaml | |
teams = yaml.load(sys.stdin) | |
total = 0 | |
for tname, team in teams.iteritems(): | |
for dname, deliverable in team['deliverables'].iteritems(): | |
total += len(deliverable.get('repos')) | |
print total |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment