mike-burns/github — Issue #11: missing access to repo parent information
Author: joeyh
Created: 2012-01-29 17:44:13+00:00
State: open

The api includes a way to find the parent that a repo was forked off of. For example, see `curl -i 'https://api.github.com/repos/martijnvermaat/github-backup'`

"parent": {
"clone_url": "https://github.com/joeyh/github-backup.git",

(The parent field is not present in repos that were not forked from anywhere.)

Without this info, it's not possible to traverse from a fork to its parents, thus the complete fork graph for an arbitrary repo cannot be walked.

I think that userRepo should return this info. Perhaps by adding to `Repo` a field `parent :: Maybe Repo`