{"action":"created","comment":{"url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/pulls/comments/37925163","id":37925163,"diff_hunk":"@@ -0,0 +1,863 @@\n+/*!\n+ * @overview  Github.js\n+ *\n+ * @copyright (c) 2013 Michael Aufreiter, Development Seed\n+ *            Github.js is freely distributable.\n+ *\n+ * @license   Licensed under MIT license\n+ *\n+ *            For all details and documentation:\n+ *            http://substance.io/michael/github\n+ */\n+\n+(function() {\n+  'use strict';\n+  \n+  // Initial Setup\n+  // -------------\n+\n+  var XMLHttpRequest, btoa;\n+  /* istanbul ignore else  */\n+  if (typeof exports !== 'undefined') {\n+      XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest;\n+      if (typeof btoa === 'undefined') {\n+        btoa = require('btoa'); //jshint ignore:line\n+      }\n+  } else { \n+      btoa = window.btoa;\n+  }\n+  \n+  //prefer native XMLHttpRequest always\n+  /* istanbul ignore if  */\n+  if (typeof window !== 'undefined' && typeof window.XMLHttpRequest !== 'undefined'){\n+      XMLHttpRequest = window.XMLHttpRequest;\n+  }\n+\n+\n+\n+  var Github = function(options) {\n+    var API_URL = options.apiUrl || 'https://api.github.com';\n+\n+    // HTTP Request Abstraction\n+    // =======\n+    //\n+    // I'm not proud of this and neither should you be if you were responsible for the XMLHttpRequest spec.","path":"github.js","position":44,"original_position":44,"commit_id":"ef16e0cf45429fd208a34c64119327ec4304e2ac","original_commit_id":"ef16e0cf45429fd208a34c64119327ec4304e2ac","user":{"login":"eternaldensity","id":5440153,"avatar_url":"https://avatars.githubusercontent.com/u/5440153?v=3","gravatar_id":"","url":"https://api.github.com/users/eternaldensity","html_url":"https://github.com/eternaldensity","followers_url":"https://api.github.com/users/eternaldensity/followers","following_url":"https://api.github.com/users/eternaldensity/following{/other_user}","gists_url":"https://api.github.com/users/eternaldensity/gists{/gist_id}","starred_url":"https://api.github.com/users/eternaldensity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eternaldensity/subscriptions","organizations_url":"https://api.github.com/users/eternaldensity/orgs","repos_url":"https://api.github.com/users/eternaldensity/repos","events_url":"https://api.github.com/users/eternaldensity/events{/privacy}","received_events_url":"https://api.github.com/users/eternaldensity/received_events","type":"User","site_admin":false},"body":"Ah, gotta love snarky developer comments :D","created_at":"2015-08-25T22:01:14Z","updated_at":"2015-08-25T22:01:14Z","html_url":"https://github.com/eternaldensity/Sandcastle-Builder/pull/1378#discussion_r37925163","pull_request_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/pulls/1378","_links":{"self":{"href":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/pulls/comments/37925163"},"html":{"href":"https://github.com/eternaldensity/Sandcastle-Builder/pull/1378#discussion_r37925163"},"pull_request":{"href":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/pulls/1378"}}},"pull_request":{"url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/pulls/1378","id":43264667,"html_url":"https://github.com/eternaldensity/Sandcastle-Builder/pull/1378","diff_url":"https://github.com/eternaldensity/Sandcastle-Builder/pull/1378.diff","patch_url":"https://github.com/eternaldensity/Sandcastle-Builder/pull/1378.patch","issue_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/issues/1378","number":1378,"state":"open","locked":false,"title":"[AM] Add cloudsync via gists","user":{"login":"erp-lsf","id":4072364,"avatar_url":"https://avatars.githubusercontent.com/u/4072364?v=3","gravatar_id":"","url":"https://api.github.com/users/erp-lsf","html_url":"https://github.com/erp-lsf","followers_url":"https://api.github.com/users/erp-lsf/followers","following_url":"https://api.github.com/users/erp-lsf/following{/other_user}","gists_url":"https://api.github.com/users/erp-lsf/gists{/gist_id}","starred_url":"https://api.github.com/users/erp-lsf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erp-lsf/subscriptions","organizations_url":"https://api.github.com/users/erp-lsf/orgs","repos_url":"https://api.github.com/users/erp-lsf/repos","events_url":"https://api.github.com/users/erp-lsf/events{/privacy}","received_events_url":"https://api.github.com/users/erp-lsf/received_events","type":"User","site_admin":false},"body":"So here it is. #1363\r\nRight now, it's all configured via option title clicking, and as this is test version some debug info is still printed into console.\r\nIf you don't input your credentials and leave the fields empty it will create anonymous gist and still save there, but only for this session. As this option deals with sensitive data I didn't add it to persistent saving system, so everything needs to be entered again on reload.\r\nAlso, there's a lot of weak places where there's no protection from wrong input.\r\n\r\nI pushed it to @LuminousLeopards Sandcastle-Builder-tree-gh-pages repository too.\r\nReview it, and share your thoughts.\r\n","created_at":"2015-08-25T09:05:01Z","updated_at":"2015-08-25T22:01:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e55897b1a3bcec3aa9fd35e7b3a84b0f43a8aa21","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/pulls/1378/commits","review_comments_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/pulls/1378/comments","review_comment_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/issues/1378/comments","statuses_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/statuses/ef16e0cf45429fd208a34c64119327ec4304e2ac","head":{"label":"erp-lsf:master","ref":"master","sha":"ef16e0cf45429fd208a34c64119327ec4304e2ac","user":{"login":"erp-lsf","id":4072364,"avatar_url":"https://avatars.githubusercontent.com/u/4072364?v=3","gravatar_id":"","url":"https://api.github.com/users/erp-lsf","html_url":"https://github.com/erp-lsf","followers_url":"https://api.github.com/users/erp-lsf/followers","following_url":"https://api.github.com/users/erp-lsf/following{/other_user}","gists_url":"https://api.github.com/users/erp-lsf/gists{/gist_id}","starred_url":"https://api.github.com/users/erp-lsf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erp-lsf/subscriptions","organizations_url":"https://api.github.com/users/erp-lsf/orgs","repos_url":"https://api.github.com/users/erp-lsf/repos","events_url":"https://api.github.com/users/erp-lsf/events{/privacy}","received_events_url":"https://api.github.com/users/erp-lsf/received_events","type":"User","site_admin":false},"repo":{"id":22033585,"name":"Sandcastle-Builder","full_name":"erp-lsf/Sandcastle-Builder","owner":{"login":"erp-lsf","id":4072364,"avatar_url":"https://avatars.githubusercontent.com/u/4072364?v=3","gravatar_id":"","url":"https://api.github.com/users/erp-lsf","html_url":"https://github.com/erp-lsf","followers_url":"https://api.github.com/users/erp-lsf/followers","following_url":"https://api.github.com/users/erp-lsf/following{/other_user}","gists_url":"https://api.github.com/users/erp-lsf/gists{/gist_id}","starred_url":"https://api.github.com/users/erp-lsf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erp-lsf/subscriptions","organizations_url":"https://api.github.com/users/erp-lsf/orgs","repos_url":"https://api.github.com/users/erp-lsf/repos","events_url":"https://api.github.com/users/erp-lsf/events{/privacy}","received_events_url":"https://api.github.com/users/erp-lsf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/erp-lsf/Sandcastle-Builder","description":"xkcd: 1190: Time: The Game","fork":true,"url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder","forks_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/forks","keys_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/teams","hooks_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/hooks","issue_events_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/issues/events{/number}","events_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/events","assignees_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/assignees{/user}","branches_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/branches{/branch}","tags_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/tags","blobs_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/statuses/{sha}","languages_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/languages","stargazers_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/stargazers","contributors_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/contributors","subscribers_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/subscribers","subscription_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/subscription","commits_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/issues/comments{/number}","contents_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/contents/{+path}","compare_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/merges","archive_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/downloads","issues_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/issues{/number}","pulls_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/pulls{/number}","milestones_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/milestones{/number}","notifications_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/labels{/name}","releases_url":"https://api.github.com/repos/erp-lsf/Sandcastle-Builder/releases{/id}","created_at":"2014-07-20T13:19:24Z","updated_at":"2014-07-21T10:35:17Z","pushed_at":"2015-08-25T08:50:27Z","git_url":"git://github.com/erp-lsf/Sandcastle-Builder.git","ssh_url":"git@github.com:erp-lsf/Sandcastle-Builder.git","clone_url":"https://github.com/erp-lsf/Sandcastle-Builder.git","svn_url":"https://github.com/erp-lsf/Sandcastle-Builder","homepage":null,"size":16017,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"eternaldensity:master","ref":"master","sha":"17f70abd5efb18b85b5bb4c4f8385e6e39a898c3","user":{"login":"eternaldensity","id":5440153,"avatar_url":"https://avatars.githubusercontent.com/u/5440153?v=3","gravatar_id":"","url":"https://api.github.com/users/eternaldensity","html_url":"https://github.com/eternaldensity","followers_url":"https://api.github.com/users/eternaldensity/followers","following_url":"https://api.github.com/users/eternaldensity/following{/other_user}","gists_url":"https://api.github.com/users/eternaldensity/gists{/gist_id}","starred_url":"https://api.github.com/users/eternaldensity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eternaldensity/subscriptions","organizations_url":"https://api.github.com/users/eternaldensity/orgs","repos_url":"https://api.github.com/users/eternaldensity/repos","events_url":"https://api.github.com/users/eternaldensity/events{/privacy}","received_events_url":"https://api.github.com/users/eternaldensity/received_events","type":"User","site_admin":false},"repo":{"id":12771726,"name":"Sandcastle-Builder","full_name":"eternaldensity/Sandcastle-Builder","owner":{"login":"eternaldensity","id":5440153,"avatar_url":"https://avatars.githubusercontent.com/u/5440153?v=3","gravatar_id":"","url":"https://api.github.com/users/eternaldensity","html_url":"https://github.com/eternaldensity","followers_url":"https://api.github.com/users/eternaldensity/followers","following_url":"https://api.github.com/users/eternaldensity/following{/other_user}","gists_url":"https://api.github.com/users/eternaldensity/gists{/gist_id}","starred_url":"https://api.github.com/users/eternaldensity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eternaldensity/subscriptions","organizations_url":"https://api.github.com/users/eternaldensity/orgs","repos_url":"https://api.github.com/users/eternaldensity/repos","events_url":"https://api.github.com/users/eternaldensity/events{/privacy}","received_events_url":"https://api.github.com/users/eternaldensity/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eternaldensity/Sandcastle-Builder","description":"xkcd: 1190: Time: The Game","fork":false,"url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder","forks_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/forks","keys_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/teams","hooks_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/hooks","issue_events_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/issues/events{/number}","events_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/events","assignees_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/assignees{/user}","branches_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/branches{/branch}","tags_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/tags","blobs_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/statuses/{sha}","languages_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/languages","stargazers_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/stargazers","contributors_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/contributors","subscribers_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/subscribers","subscription_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/subscription","commits_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/issues/comments{/number}","contents_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/contents/{+path}","compare_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/merges","archive_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/downloads","issues_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/issues{/number}","pulls_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/pulls{/number}","milestones_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/milestones{/number}","notifications_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/labels{/name}","releases_url":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/releases{/id}","created_at":"2013-09-12T00:58:48Z","updated_at":"2015-07-23T23:30:01Z","pushed_at":"2015-08-25T09:05:01Z","git_url":"git://github.com/eternaldensity/Sandcastle-Builder.git","ssh_url":"git@github.com:eternaldensity/Sandcastle-Builder.git","clone_url":"https://github.com/eternaldensity/Sandcastle-Builder.git","svn_url":"https://github.com/eternaldensity/Sandcastle-Builder","homepage":null,"size":22667,"stargazers_count":46,"watchers_count":46,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":44,"mirror_url":null,"open_issues_count":91,"forks":44,"open_issues":91,"watchers":46,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/pulls/1378"},"html":{"href":"https://github.com/eternaldensity/Sandcastle-Builder/pull/1378"},"issue":{"href":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/issues/1378"},"comments":{"href":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/issues/1378/comments"},"review_comments":{"href":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/pulls/1378/comments"},"review_comment":{"href":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/pulls/1378/commits"},"statuses":{"href":"https://api.github.com/repos/eternaldensity/Sandcastle-Builder/statuses/ef16e0cf45429fd208a34c64119327ec4304e2ac"}}}}