GitHub PullRequestReviewCommentEvent at 2014-09-09 18:35:07
Repository: webapi-demos
Actor: willyaranda
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/mozillahispano/webapi-demos/pulls/comments/17318438","id":17318438,"diff_hunk":"@@ -0,0 +1,77 @@\n+/* handle an activity */\n+var activity;\n+var files = [];\n+\n+var Gallery = {\n+  /* a simple gallery */\n+  init: function() {\n+    this.thumbnails = $('thumbnails');\n+\n+    this.setGalleryUI();\n+    this.showImages();\n+  },\n+\n+  setGalleryUI: function() {\n+    var welcome = $('gallery');\n+    var buttons = $('buttons');\n+\n+    buttons.setAttribute('class', 'hide');\n+    welcome.removeAttribute('class', 'hide');\n+    welcome.setAttribute('class', 'show');\n+  },\n+\n+  showImages: function() {\n+    var pics = navigator.getDeviceStorage(\"pictures\");","path":"web_activities/js/handle.js","position":24,"original_position":24,"commit_id":"a135beda54541a48fab3bddfcb170fb3b5b3d2d1","original_commit_id":"a135beda54541a48fab3bddfcb170fb3b5b3d2d1","user":{"login":"willyaranda","id":679157,"avatar_url":"https://avatars.githubusercontent.com/u/679157?v=2","gravatar_id":"8d9581b1399bf199f095ae630f5faee7","url":"https://api.github.com/users/willyaranda","html_url":"https://github.com/willyaranda","followers_url":"https://api.github.com/users/willyaranda/followers","following_url":"https://api.github.com/users/willyaranda/following{/other_user}","gists_url":"https://api.github.com/users/willyaranda/gists{/gist_id}","starred_url":"https://api.github.com/users/willyaranda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willyaranda/subscriptions","organizations_url":"https://api.github.com/users/willyaranda/orgs","repos_url":"https://api.github.com/users/willyaranda/repos","events_url":"https://api.github.com/users/willyaranda/events{/privacy}","received_events_url":"https://api.github.com/users/willyaranda/received_events","type":"User","site_admin":false},"body":"this is not needed when using this WebActivity. We should just leave the minimum code to work. This example uses both Activities and the Device Storage API. I would not recommend this.","created_at":"2014-09-09T18:35:07Z","updated_at":"2014-09-09T18:35:07Z","html_url":"https://github.com/mozillahispano/webapi-demos/pull/1#discussion_r17318438","pull_request_url":"https://api.github.com/repos/mozillahispano/webapi-demos/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/mozillahispano/webapi-demos/pulls/comments/17318438"},"html":{"href":"https://github.com/mozillahispano/webapi-demos/pull/1#discussion_r17318438"},"pull_request":{"href":"https://api.github.com/repos/mozillahispano/webapi-demos/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/mozillahispano/webapi-demos/pulls/1","id":20967519,"html_url":"https://github.com/mozillahispano/webapi-demos/pull/1","diff_url":"https://github.com/mozillahispano/webapi-demos/pull/1.diff","patch_url":"https://github.com/mozillahispano/webapi-demos/pull/1.patch","issue_url":"https://api.github.com/repos/mozillahispano/webapi-demos/issues/1","number":1,"state":"open","locked":false,"title":"Webactivities demo","user":{"login":"ccarruitero","id":1203517,"avatar_url":"https://avatars.githubusercontent.com/u/1203517?v=2","gravatar_id":"2c64a5e6f3174d1b32f92b8123766259","url":"https://api.github.com/users/ccarruitero","html_url":"https://github.com/ccarruitero","followers_url":"https://api.github.com/users/ccarruitero/followers","following_url":"https://api.github.com/users/ccarruitero/following{/other_user}","gists_url":"https://api.github.com/users/ccarruitero/gists{/gist_id}","starred_url":"https://api.github.com/users/ccarruitero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccarruitero/subscriptions","organizations_url":"https://api.github.com/users/ccarruitero/orgs","repos_url":"https://api.github.com/users/ccarruitero/repos","events_url":"https://api.github.com/users/ccarruitero/events{/privacy}","received_events_url":"https://api.github.com/users/ccarruitero/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-09-09T16:33:59Z","updated_at":"2014-09-09T18:35:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5019feef112e7d9235956ff648a2545558af1e2c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozillahispano/webapi-demos/pulls/1/commits","review_comments_url":"https://api.github.com/repos/mozillahispano/webapi-demos/pulls/1/comments","review_comment_url":"https://api.github.com/repos/mozillahispano/webapi-demos/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mozillahispano/webapi-demos/issues/1/comments","statuses_url":"https://api.github.com/repos/mozillahispano/webapi-demos/statuses/a135beda54541a48fab3bddfcb170fb3b5b3d2d1","head":{"label":"ccarruitero:webactivities-demo","ref":"webactivities-demo","sha":"a135beda54541a48fab3bddfcb170fb3b5b3d2d1","user":{"login":"ccarruitero","id":1203517,"avatar_url":"https://avatars.githubusercontent.com/u/1203517?v=2","gravatar_id":"2c64a5e6f3174d1b32f92b8123766259","url":"https://api.github.com/users/ccarruitero","html_url":"https://github.com/ccarruitero","followers_url":"https://api.github.com/users/ccarruitero/followers","following_url":"https://api.github.com/users/ccarruitero/following{/other_user}","gists_url":"https://api.github.com/users/ccarruitero/gists{/gist_id}","starred_url":"https://api.github.com/users/ccarruitero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccarruitero/subscriptions","organizations_url":"https://api.github.com/users/ccarruitero/orgs","repos_url":"https://api.github.com/users/ccarruitero/repos","events_url":"https://api.github.com/users/ccarruitero/events{/privacy}","received_events_url":"https://api.github.com/users/ccarruitero/received_events","type":"User","site_admin":false},"repo":{"id":22560062,"name":"webapi-demos","full_name":"ccarruitero/webapi-demos","owner":{"login":"ccarruitero","id":1203517,"avatar_url":"https://avatars.githubusercontent.com/u/1203517?v=2","gravatar_id":"2c64a5e6f3174d1b32f92b8123766259","url":"https://api.github.com/users/ccarruitero","html_url":"https://github.com/ccarruitero","followers_url":"https://api.github.com/users/ccarruitero/followers","following_url":"https://api.github.com/users/ccarruitero/following{/other_user}","gists_url":"https://api.github.com/users/ccarruitero/gists{/gist_id}","starred_url":"https://api.github.com/users/ccarruitero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccarruitero/subscriptions","organizations_url":"https://api.github.com/users/ccarruitero/orgs","repos_url":"https://api.github.com/users/ccarruitero/repos","events_url":"https://api.github.com/users/ccarruitero/events{/privacy}","received_events_url":"https://api.github.com/users/ccarruitero/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ccarruitero/webapi-demos","description":"WebAPI demos for hackatons","fork":true,"url":"https://api.github.com/repos/ccarruitero/webapi-demos","forks_url":"https://api.github.com/repos/ccarruitero/webapi-demos/forks","keys_url":"https://api.github.com/repos/ccarruitero/webapi-demos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ccarruitero/webapi-demos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ccarruitero/webapi-demos/teams","hooks_url":"https://api.github.com/repos/ccarruitero/webapi-demos/hooks","issue_events_url":"https://api.github.com/repos/ccarruitero/webapi-demos/issues/events{/number}","events_url":"https://api.github.com/repos/ccarruitero/webapi-demos/events","assignees_url":"https://api.github.com/repos/ccarruitero/webapi-demos/assignees{/user}","branches_url":"https://api.github.com/repos/ccarruitero/webapi-demos/branches{/branch}","tags_url":"https://api.github.com/repos/ccarruitero/webapi-demos/tags","blobs_url":"https://api.github.com/repos/ccarruitero/webapi-demos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ccarruitero/webapi-demos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ccarruitero/webapi-demos/git/refs{/sha}","trees_url":"https://api.github.com/repos/ccarruitero/webapi-demos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ccarruitero/webapi-demos/statuses/{sha}","languages_url":"https://api.github.com/repos/ccarruitero/webapi-demos/languages","stargazers_url":"https://api.github.com/repos/ccarruitero/webapi-demos/stargazers","contributors_url":"https://api.github.com/repos/ccarruitero/webapi-demos/contributors","subscribers_url":"https://api.github.com/repos/ccarruitero/webapi-demos/subscribers","subscription_url":"https://api.github.com/repos/ccarruitero/webapi-demos/subscription","commits_url":"https://api.github.com/repos/ccarruitero/webapi-demos/commits{/sha}","git_commits_url":"https://api.github.com/repos/ccarruitero/webapi-demos/git/commits{/sha}","comments_url":"https://api.github.com/repos/ccarruitero/webapi-demos/comments{/number}","issue_comment_url":"https://api.github.com/repos/ccarruitero/webapi-demos/issues/comments/{number}","contents_url":"https://api.github.com/repos/ccarruitero/webapi-demos/contents/{+path}","compare_url":"https://api.github.com/repos/ccarruitero/webapi-demos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ccarruitero/webapi-demos/merges","archive_url":"https://api.github.com/repos/ccarruitero/webapi-demos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ccarruitero/webapi-demos/downloads","issues_url":"https://api.github.com/repos/ccarruitero/webapi-demos/issues{/number}","pulls_url":"https://api.github.com/repos/ccarruitero/webapi-demos/pulls{/number}","milestones_url":"https://api.github.com/repos/ccarruitero/webapi-demos/milestones{/number}","notifications_url":"https://api.github.com/repos/ccarruitero/webapi-demos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ccarruitero/webapi-demos/labels{/name}","releases_url":"https://api.github.com/repos/ccarruitero/webapi-demos/releases{/id}","created_at":"2014-08-02T23:11:09Z","updated_at":"2014-06-17T20:25:13Z","pushed_at":"2014-09-07T17:10:24Z","git_url":"git://github.com/ccarruitero/webapi-demos.git","ssh_url":"git@github.com:ccarruitero/webapi-demos.git","clone_url":"https://github.com/ccarruitero/webapi-demos.git","svn_url":"https://github.com/ccarruitero/webapi-demos","homepage":null,"size":239,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozillahispano:master","ref":"master","sha":"bd4274acb89b6f26a820dde55de6e510764ff2a2","user":{"login":"mozillahispano","id":1511160,"avatar_url":"https://avatars.githubusercontent.com/u/1511160?v=2","gravatar_id":"0862de8f79c9fb0a2a66e415f841145e","url":"https://api.github.com/users/mozillahispano","html_url":"https://github.com/mozillahispano","followers_url":"https://api.github.com/users/mozillahispano/followers","following_url":"https://api.github.com/users/mozillahispano/following{/other_user}","gists_url":"https://api.github.com/users/mozillahispano/gists{/gist_id}","starred_url":"https://api.github.com/users/mozillahispano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozillahispano/subscriptions","organizations_url":"https://api.github.com/users/mozillahispano/orgs","repos_url":"https://api.github.com/users/mozillahispano/repos","events_url":"https://api.github.com/users/mozillahispano/events{/privacy}","received_events_url":"https://api.github.com/users/mozillahispano/received_events","type":"Organization","site_admin":false},"repo":{"id":14022478,"name":"webapi-demos","full_name":"mozillahispano/webapi-demos","owner":{"login":"mozillahispano","id":1511160,"avatar_url":"https://avatars.githubusercontent.com/u/1511160?v=2","gravatar_id":"0862de8f79c9fb0a2a66e415f841145e","url":"https://api.github.com/users/mozillahispano","html_url":"https://github.com/mozillahispano","followers_url":"https://api.github.com/users/mozillahispano/followers","following_url":"https://api.github.com/users/mozillahispano/following{/other_user}","gists_url":"https://api.github.com/users/mozillahispano/gists{/gist_id}","starred_url":"https://api.github.com/users/mozillahispano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozillahispano/subscriptions","organizations_url":"https://api.github.com/users/mozillahispano/orgs","repos_url":"https://api.github.com/users/mozillahispano/repos","events_url":"https://api.github.com/users/mozillahispano/events{/privacy}","received_events_url":"https://api.github.com/users/mozillahispano/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozillahispano/webapi-demos","description":"WebAPI demos for hackatons","fork":false,"url":"https://api.github.com/repos/mozillahispano/webapi-demos","forks_url":"https://api.github.com/repos/mozillahispano/webapi-demos/forks","keys_url":"https://api.github.com/repos/mozillahispano/webapi-demos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozillahispano/webapi-demos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozillahispano/webapi-demos/teams","hooks_url":"https://api.github.com/repos/mozillahispano/webapi-demos/hooks","issue_events_url":"https://api.github.com/repos/mozillahispano/webapi-demos/issues/events{/number}","events_url":"https://api.github.com/repos/mozillahispano/webapi-demos/events","assignees_url":"https://api.github.com/repos/mozillahispano/webapi-demos/assignees{/user}","branches_url":"https://api.github.com/repos/mozillahispano/webapi-demos/branches{/branch}","tags_url":"https://api.github.com/repos/mozillahispano/webapi-demos/tags","blobs_url":"https://api.github.com/repos/mozillahispano/webapi-demos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozillahispano/webapi-demos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozillahispano/webapi-demos/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozillahispano/webapi-demos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozillahispano/webapi-demos/statuses/{sha}","languages_url":"https://api.github.com/repos/mozillahispano/webapi-demos/languages","stargazers_url":"https://api.github.com/repos/mozillahispano/webapi-demos/stargazers","contributors_url":"https://api.github.com/repos/mozillahispano/webapi-demos/contributors","subscribers_url":"https://api.github.com/repos/mozillahispano/webapi-demos/subscribers","subscription_url":"https://api.github.com/repos/mozillahispano/webapi-demos/subscription","commits_url":"https://api.github.com/repos/mozillahispano/webapi-demos/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozillahispano/webapi-demos/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozillahispano/webapi-demos/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozillahispano/webapi-demos/issues/comments/{number}","contents_url":"https://api.github.com/repos/mozillahispano/webapi-demos/contents/{+path}","compare_url":"https://api.github.com/repos/mozillahispano/webapi-demos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozillahispano/webapi-demos/merges","archive_url":"https://api.github.com/repos/mozillahispano/webapi-demos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozillahispano/webapi-demos/downloads","issues_url":"https://api.github.com/repos/mozillahispano/webapi-demos/issues{/number}","pulls_url":"https://api.github.com/repos/mozillahispano/webapi-demos/pulls{/number}","milestones_url":"https://api.github.com/repos/mozillahispano/webapi-demos/milestones{/number}","notifications_url":"https://api.github.com/repos/mozillahispano/webapi-demos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozillahispano/webapi-demos/labels{/name}","releases_url":"https://api.github.com/repos/mozillahispano/webapi-demos/releases{/id}","created_at":"2013-10-31T16:36:47Z","updated_at":"2014-08-13T22:17:49Z","pushed_at":"2013-11-11T09:41:21Z","git_url":"git://github.com/mozillahispano/webapi-demos.git","ssh_url":"git@github.com:mozillahispano/webapi-demos.git","clone_url":"https://github.com/mozillahispano/webapi-demos.git","svn_url":"https://github.com/mozillahispano/webapi-demos","homepage":null,"size":240,"stargazers_count":2,"watchers_count":2,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozillahispano/webapi-demos/pulls/1"},"html":{"href":"https://github.com/mozillahispano/webapi-demos/pull/1"},"issue":{"href":"https://api.github.com/repos/mozillahispano/webapi-demos/issues/1"},"comments":{"href":"https://api.github.com/repos/mozillahispano/webapi-demos/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/mozillahispano/webapi-demos/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/mozillahispano/webapi-demos/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mozillahispano/webapi-demos/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/mozillahispano/webapi-demos/statuses/a135beda54541a48fab3bddfcb170fb3b5b3d2d1"}}}}