Skip to content

Instantly share code, notes, and snippets.

@rjurney
Created May 31, 2013 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rjurney/5687232 to your computer and use it in GitHub Desktop.
Save rjurney/5687232 to your computer and use it in GitHub Desktop.
Github Archive ForkEvent
{
"type": "ForkEvent",
"actor": {
"avatar_url": "https://secure.gravatar.com/avatar/b39787c57ab1c8330a60278e76a47fb8?d=http://github.dev%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
"url": "https://api.github.dev/users/goreckm",
"login": "goreckm",
"id": 308672,
"gravatar_id": "b39787c57ab1c8330a60278e76a47fb8"
},
"repo": {
"url": "https://api.github.dev/repos/thedersen/backbone.validation",
"id": 2456444,
"name": "thedersen/backbone.validation"
},
"public": true,
"payload": {
"forkee": {
"owner": {
"avatar_url": "https://secure.gravatar.com/avatar/b39787c57ab1c8330a60278e76a47fb8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
"url": "https://api.github.com/users/goreckm",
"login": "goreckm",
"id": 308672,
"gravatar_id": "b39787c57ab1c8330a60278e76a47fb8"
},
"clone_url": "https://github.com/goreckm/backbone.validation.git",
"html_url": "https://github.com/goreckm/backbone.validation",
"url": "https://api.github.com/repos/goreckm/backbone.validation",
"git_url": "git://github.com/goreckm/backbone.validation.git",
"updated_at": "2012-01-01T00:50:43Z",
"private": false,
"svn_url": "https://github.com/goreckm/backbone.validation",
"public": true,
"language": "JavaScript",
"watchers": 1,
"description": "A validation plugin for Backbone.js",
"id": 3081331,
"fork": true,
"created_at": "2012-01-01T00:50:43Z",
"master_branch": null,
"name": "backbone.validation",
"open_issues": 0,
"size": 124,
"pushed_at": "2011-12-27T19:42:56Z",
"homepage": "",
"forks": 0,
"ssh_url": "git@github.com:goreckm/backbone.validation.git"
}
},
"id": "1508514511",
"created_at": "2012-01-01T00:50:43Z"
}
/* Fork events happen whenever a github project is 'forked' */
fork_events = LOAD '/tmp/ForkEvent'; /* s3://github-explorer/ForkEvent */
fork_ratings = FOREACH fork_events GENERATE (chararray)$0#'actor'#'login' AS follower:chararray,
(chararray)$0#'repo'#'name' as repo:chararray,
3.0 AS rating;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment