{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/womenandweb/pulls/comments/74707243","id":74707243,"diff_hunk":"@@ -0,0 +1,54 @@\n+var NodeGit = require(`nodegit`);\n+var shell = require(`shelljs`);\n+var pathToRepo = require(`path`).resolve(`.`);\n+\n+var getStatus = (repo) => {\n+  return repo.getStatus();\n+};\n+\n+var runDeploy = () => {\n+  shell.echo(`Running deployment now...`);\n+\n+  shell.exec(`git checkout master`);\n+  shell.exec(`git pull origin master`);\n+\n+  shell.rm(`-rf`,`node_modules`);\n+\n+  shell.exec(`npm i`);\n+  shell.exec(`npm run build`);\n+\n+  shell.exec(`git branch -D gh-pages`);\n+  shell.exec(`git checkout --orphan gh-pages`);\n+\n+  shell.rm(`.gitignore`);\n+\n+  shell.echo(`/*\\n`).toEnd(`.gitignore`);\n+  shell.echo(`!css\\n`).toEnd(`.gitignore`);\n+  shell.echo(`!images\\n`).toEnd(`.gitignore`);\n+  shell.echo(`!index.html\\n`).toEnd(`.gitignore`);\n+  shell.echo(`!last-built.txt\\n`).toEnd(`.gitignore`);\n+\n+  shell.echo(new Date).to(`last-built.txt`);\n+\n+  shell.mv(`dest/*`, `./`);\n+\n+  shell.exec(`git reset`);\n+  shell.exec(`git add .`);\n+  shell.exec(`git commit -m 'deploy.js-ified'`);","path":"scripts/deploy.js","position":37,"original_position":37,"commit_id":"1dddc1b28c55b9df6222efaefd563dc33c340b88","original_commit_id":"1dddc1b28c55b9df6222efaefd563dc33c340b88","user":{"login":"gideonthomas","id":5816130,"avatar_url":"https://avatars.githubusercontent.com/u/5816130?v=3","gravatar_id":"","url":"https://api.github.com/users/gideonthomas","html_url":"https://github.com/gideonthomas","followers_url":"https://api.github.com/users/gideonthomas/followers","following_url":"https://api.github.com/users/gideonthomas/following{/other_user}","gists_url":"https://api.github.com/users/gideonthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/gideonthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gideonthomas/subscriptions","organizations_url":"https://api.github.com/users/gideonthomas/orgs","repos_url":"https://api.github.com/users/gideonthomas/repos","events_url":"https://api.github.com/users/gideonthomas/events{/privacy}","received_events_url":"https://api.github.com/users/gideonthomas/received_events","type":"User","site_admin":false},"body":"It might be good to version it based on something?","created_at":"2016-08-14T19:37:28Z","updated_at":"2016-08-14T19:37:28Z","html_url":"https://github.com/mozilla/womenandweb/pull/9#discussion_r74707243","pull_request_url":"https://api.github.com/repos/mozilla/womenandweb/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/mozilla/womenandweb/pulls/comments/74707243"},"html":{"href":"https://github.com/mozilla/womenandweb/pull/9#discussion_r74707243"},"pull_request":{"href":"https://api.github.com/repos/mozilla/womenandweb/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/womenandweb/pulls/9","id":81188250,"html_url":"https://github.com/mozilla/womenandweb/pull/9","diff_url":"https://github.com/mozilla/womenandweb/pull/9.diff","patch_url":"https://github.com/mozilla/womenandweb/pull/9.patch","issue_url":"https://api.github.com/repos/mozilla/womenandweb/issues/9","number":9,"state":"open","locked":false,"title":"adding deployment script","user":{"login":"gvn","id":206379,"avatar_url":"https://avatars.githubusercontent.com/u/206379?v=3","gravatar_id":"","url":"https://api.github.com/users/gvn","html_url":"https://github.com/gvn","followers_url":"https://api.github.com/users/gvn/followers","following_url":"https://api.github.com/users/gvn/following{/other_user}","gists_url":"https://api.github.com/users/gvn/gists{/gist_id}","starred_url":"https://api.github.com/users/gvn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvn/subscriptions","organizations_url":"https://api.github.com/users/gvn/orgs","repos_url":"https://api.github.com/users/gvn/repos","events_url":"https://api.github.com/users/gvn/events{/privacy}","received_events_url":"https://api.github.com/users/gvn/received_events","type":"User","site_admin":false},"body":"Related #6 ","created_at":"2016-08-12T21:51:08Z","updated_at":"2016-08-14T19:37:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"91ee1cd0a41d5128e5d391d46ed35590baf2f0d8","assignee":{"login":"gideonthomas","id":5816130,"avatar_url":"https://avatars.githubusercontent.com/u/5816130?v=3","gravatar_id":"","url":"https://api.github.com/users/gideonthomas","html_url":"https://github.com/gideonthomas","followers_url":"https://api.github.com/users/gideonthomas/followers","following_url":"https://api.github.com/users/gideonthomas/following{/other_user}","gists_url":"https://api.github.com/users/gideonthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/gideonthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gideonthomas/subscriptions","organizations_url":"https://api.github.com/users/gideonthomas/orgs","repos_url":"https://api.github.com/users/gideonthomas/repos","events_url":"https://api.github.com/users/gideonthomas/events{/privacy}","received_events_url":"https://api.github.com/users/gideonthomas/received_events","type":"User","site_admin":false},"assignees":[{"login":"gideonthomas","id":5816130,"avatar_url":"https://avatars.githubusercontent.com/u/5816130?v=3","gravatar_id":"","url":"https://api.github.com/users/gideonthomas","html_url":"https://github.com/gideonthomas","followers_url":"https://api.github.com/users/gideonthomas/followers","following_url":"https://api.github.com/users/gideonthomas/following{/other_user}","gists_url":"https://api.github.com/users/gideonthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/gideonthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gideonthomas/subscriptions","organizations_url":"https://api.github.com/users/gideonthomas/orgs","repos_url":"https://api.github.com/users/gideonthomas/repos","events_url":"https://api.github.com/users/gideonthomas/events{/privacy}","received_events_url":"https://api.github.com/users/gideonthomas/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/womenandweb/pulls/9/commits","review_comments_url":"https://api.github.com/repos/mozilla/womenandweb/pulls/9/comments","review_comment_url":"https://api.github.com/repos/mozilla/womenandweb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/womenandweb/issues/9/comments","statuses_url":"https://api.github.com/repos/mozilla/womenandweb/statuses/1dddc1b28c55b9df6222efaefd563dc33c340b88","head":{"label":"gvn:deploy","ref":"deploy","sha":"1dddc1b28c55b9df6222efaefd563dc33c340b88","user":{"login":"gvn","id":206379,"avatar_url":"https://avatars.githubusercontent.com/u/206379?v=3","gravatar_id":"","url":"https://api.github.com/users/gvn","html_url":"https://github.com/gvn","followers_url":"https://api.github.com/users/gvn/followers","following_url":"https://api.github.com/users/gvn/following{/other_user}","gists_url":"https://api.github.com/users/gvn/gists{/gist_id}","starred_url":"https://api.github.com/users/gvn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvn/subscriptions","organizations_url":"https://api.github.com/users/gvn/orgs","repos_url":"https://api.github.com/users/gvn/repos","events_url":"https://api.github.com/users/gvn/events{/privacy}","received_events_url":"https://api.github.com/users/gvn/received_events","type":"User","site_admin":false},"repo":{"id":65404769,"name":"womenandweblit.mozilla.org","full_name":"gvn/womenandweblit.mozilla.org","owner":{"login":"gvn","id":206379,"avatar_url":"https://avatars.githubusercontent.com/u/206379?v=3","gravatar_id":"","url":"https://api.github.com/users/gvn","html_url":"https://github.com/gvn","followers_url":"https://api.github.com/users/gvn/followers","following_url":"https://api.github.com/users/gvn/following{/other_user}","gists_url":"https://api.github.com/users/gvn/gists{/gist_id}","starred_url":"https://api.github.com/users/gvn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvn/subscriptions","organizations_url":"https://api.github.com/users/gvn/orgs","repos_url":"https://api.github.com/users/gvn/repos","events_url":"https://api.github.com/users/gvn/events{/privacy}","received_events_url":"https://api.github.com/users/gvn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gvn/womenandweblit.mozilla.org","description":"This repository hosts the code used to power the Women and Web Literacy hub's website","fork":true,"url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org","forks_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/forks","keys_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/teams","hooks_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/hooks","issue_events_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/issues/events{/number}","events_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/events","assignees_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/assignees{/user}","branches_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/branches{/branch}","tags_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/tags","blobs_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/statuses/{sha}","languages_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/languages","stargazers_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/stargazers","contributors_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/contributors","subscribers_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/subscribers","subscription_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/subscription","commits_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/contents/{+path}","compare_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/merges","archive_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/downloads","issues_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/issues{/number}","pulls_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/pulls{/number}","milestones_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/milestones{/number}","notifications_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/labels{/name}","releases_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/releases{/id}","deployments_url":"https://api.github.com/repos/gvn/womenandweblit.mozilla.org/deployments","created_at":"2016-08-10T17:59:45Z","updated_at":"2016-08-03T20:56:35Z","pushed_at":"2016-08-12T21:51:50Z","git_url":"git://github.com/gvn/womenandweblit.mozilla.org.git","ssh_url":"git@github.com:gvn/womenandweblit.mozilla.org.git","clone_url":"https://github.com/gvn/womenandweblit.mozilla.org.git","svn_url":"https://github.com/gvn/womenandweblit.mozilla.org","homepage":null,"size":58,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"6675f408fa2c915676e01bcb4509b1e216ff5a11","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":64878803,"name":"womenandweb","full_name":"mozilla/womenandweb","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/womenandweb","description":"This repository hosts the code used to power the Women and Web Literacy hub's website","fork":false,"url":"https://api.github.com/repos/mozilla/womenandweb","forks_url":"https://api.github.com/repos/mozilla/womenandweb/forks","keys_url":"https://api.github.com/repos/mozilla/womenandweb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/womenandweb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/womenandweb/teams","hooks_url":"https://api.github.com/repos/mozilla/womenandweb/hooks","issue_events_url":"https://api.github.com/repos/mozilla/womenandweb/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/womenandweb/events","assignees_url":"https://api.github.com/repos/mozilla/womenandweb/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/womenandweb/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/womenandweb/tags","blobs_url":"https://api.github.com/repos/mozilla/womenandweb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/womenandweb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/womenandweb/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/womenandweb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/womenandweb/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/womenandweb/languages","stargazers_url":"https://api.github.com/repos/mozilla/womenandweb/stargazers","contributors_url":"https://api.github.com/repos/mozilla/womenandweb/contributors","subscribers_url":"https://api.github.com/repos/mozilla/womenandweb/subscribers","subscription_url":"https://api.github.com/repos/mozilla/womenandweb/subscription","commits_url":"https://api.github.com/repos/mozilla/womenandweb/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/womenandweb/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/womenandweb/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/womenandweb/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/womenandweb/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/womenandweb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/womenandweb/merges","archive_url":"https://api.github.com/repos/mozilla/womenandweb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/womenandweb/downloads","issues_url":"https://api.github.com/repos/mozilla/womenandweb/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/womenandweb/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/womenandweb/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/womenandweb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/womenandweb/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/womenandweb/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/womenandweb/deployments","created_at":"2016-08-03T20:56:35Z","updated_at":"2016-08-11T19:47:56Z","pushed_at":"2016-08-12T22:05:37Z","git_url":"git://github.com/mozilla/womenandweb.git","ssh_url":"git@github.com:mozilla/womenandweb.git","clone_url":"https://github.com/mozilla/womenandweb.git","svn_url":"https://github.com/mozilla/womenandweb","homepage":null,"size":62,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":6,"forks":2,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/womenandweb/pulls/9"},"html":{"href":"https://github.com/mozilla/womenandweb/pull/9"},"issue":{"href":"https://api.github.com/repos/mozilla/womenandweb/issues/9"},"comments":{"href":"https://api.github.com/repos/mozilla/womenandweb/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/womenandweb/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/womenandweb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/womenandweb/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/womenandweb/statuses/1dddc1b28c55b9df6222efaefd563dc33c340b88"}}}}
{"actor":{"display_login":"gideonthomas"}}