{"action":"created","comment":{"url":"https://api.github.com/repos/TrueCar/gluestick/pulls/comments/55422532","id":55422532,"diff_hunk":"@@ -0,0 +1,23 @@\n+const fs = require(\"fs\");\n+const path = require(\"path\");\n+const getVersion = require(\"./getVersion.js\");\n+const chalk = require(\"chalk\");\n+\n+module.exports = function updateLastVersionUsed() {\n+  // Check version in .gluestick file\n+  const gluestickDotFile = path.join(process.cwd(), \".gluestick\");\n+  var fileContents = fs.readFileSync(gluestickDotFile, {encoding: \"utf8\"})\n+  // We won't know how old this version is, it might have still have the 'DO NOT MODIFY' header\n+  fileContents = fileContents.replace(\"DO NOT MODIFY\", \"\");","path":"src/lib/updateVersion.js","position":11,"original_position":11,"commit_id":"cc0e5d266557d3843f24f07196ca4104cd660932","original_commit_id":"cc0e5d266557d3843f24f07196ca4104cd660932","user":{"login":"JoeCortopassi","id":943606,"avatar_url":"https://avatars.githubusercontent.com/u/943606?v=3","gravatar_id":"","url":"https://api.github.com/users/JoeCortopassi","html_url":"https://github.com/JoeCortopassi","followers_url":"https://api.github.com/users/JoeCortopassi/followers","following_url":"https://api.github.com/users/JoeCortopassi/following{/other_user}","gists_url":"https://api.github.com/users/JoeCortopassi/gists{/gist_id}","starred_url":"https://api.github.com/users/JoeCortopassi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoeCortopassi/subscriptions","organizations_url":"https://api.github.com/users/JoeCortopassi/orgs","repos_url":"https://api.github.com/users/JoeCortopassi/repos","events_url":"https://api.github.com/users/JoeCortopassi/events{/privacy}","received_events_url":"https://api.github.com/users/JoeCortopassi/received_events","type":"User","site_admin":false},"body":"This is just a safety check to strip it because we don't know how old the dot file is, and it might have one. We don't add it back in","created_at":"2016-03-08T20:31:43Z","updated_at":"2016-03-08T20:31:43Z","html_url":"https://github.com/TrueCar/gluestick/pull/79#discussion_r55422532","pull_request_url":"https://api.github.com/repos/TrueCar/gluestick/pulls/79","_links":{"self":{"href":"https://api.github.com/repos/TrueCar/gluestick/pulls/comments/55422532"},"html":{"href":"https://github.com/TrueCar/gluestick/pull/79#discussion_r55422532"},"pull_request":{"href":"https://api.github.com/repos/TrueCar/gluestick/pulls/79"}}},"pull_request":{"url":"https://api.github.com/repos/TrueCar/gluestick/pulls/79","id":61596947,"html_url":"https://github.com/TrueCar/gluestick/pull/79","diff_url":"https://github.com/TrueCar/gluestick/pull/79.diff","patch_url":"https://github.com/TrueCar/gluestick/pull/79.patch","issue_url":"https://api.github.com/repos/TrueCar/gluestick/issues/79","number":79,"state":"open","locked":false,"title":"Feature/sela 227","user":{"login":"JoeCortopassi","id":943606,"avatar_url":"https://avatars.githubusercontent.com/u/943606?v=3","gravatar_id":"","url":"https://api.github.com/users/JoeCortopassi","html_url":"https://github.com/JoeCortopassi","followers_url":"https://api.github.com/users/JoeCortopassi/followers","following_url":"https://api.github.com/users/JoeCortopassi/following{/other_user}","gists_url":"https://api.github.com/users/JoeCortopassi/gists{/gist_id}","starred_url":"https://api.github.com/users/JoeCortopassi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoeCortopassi/subscriptions","organizations_url":"https://api.github.com/users/JoeCortopassi/orgs","repos_url":"https://api.github.com/users/JoeCortopassi/repos","events_url":"https://api.github.com/users/JoeCortopassi/events{/privacy}","received_events_url":"https://api.github.com/users/JoeCortopassi/received_events","type":"User","site_admin":false},"body":"added a version update based on the last version of Gluestick to modify the project. Version gets stored in the root `.gluestick` file, and gives an upgrade warning if the version is unknown or if your version of gluestick is different than the project's","created_at":"2016-03-03T17:43:24Z","updated_at":"2016-03-08T20:31:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"12a34274dd1c99c3ff3b7312bbc72f41f9f26878","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TrueCar/gluestick/pulls/79/commits","review_comments_url":"https://api.github.com/repos/TrueCar/gluestick/pulls/79/comments","review_comment_url":"https://api.github.com/repos/TrueCar/gluestick/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TrueCar/gluestick/issues/79/comments","statuses_url":"https://api.github.com/repos/TrueCar/gluestick/statuses/cc0e5d266557d3843f24f07196ca4104cd660932","head":{"label":"JoeCortopassi:feature/SELA-227","ref":"feature/SELA-227","sha":"cc0e5d266557d3843f24f07196ca4104cd660932","user":{"login":"JoeCortopassi","id":943606,"avatar_url":"https://avatars.githubusercontent.com/u/943606?v=3","gravatar_id":"","url":"https://api.github.com/users/JoeCortopassi","html_url":"https://github.com/JoeCortopassi","followers_url":"https://api.github.com/users/JoeCortopassi/followers","following_url":"https://api.github.com/users/JoeCortopassi/following{/other_user}","gists_url":"https://api.github.com/users/JoeCortopassi/gists{/gist_id}","starred_url":"https://api.github.com/users/JoeCortopassi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoeCortopassi/subscriptions","organizations_url":"https://api.github.com/users/JoeCortopassi/orgs","repos_url":"https://api.github.com/users/JoeCortopassi/repos","events_url":"https://api.github.com/users/JoeCortopassi/events{/privacy}","received_events_url":"https://api.github.com/users/JoeCortopassi/received_events","type":"User","site_admin":false},"repo":{"id":52993791,"name":"gluestick","full_name":"JoeCortopassi/gluestick","owner":{"login":"JoeCortopassi","id":943606,"avatar_url":"https://avatars.githubusercontent.com/u/943606?v=3","gravatar_id":"","url":"https://api.github.com/users/JoeCortopassi","html_url":"https://github.com/JoeCortopassi","followers_url":"https://api.github.com/users/JoeCortopassi/followers","following_url":"https://api.github.com/users/JoeCortopassi/following{/other_user}","gists_url":"https://api.github.com/users/JoeCortopassi/gists{/gist_id}","starred_url":"https://api.github.com/users/JoeCortopassi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoeCortopassi/subscriptions","organizations_url":"https://api.github.com/users/JoeCortopassi/orgs","repos_url":"https://api.github.com/users/JoeCortopassi/repos","events_url":"https://api.github.com/users/JoeCortopassi/events{/privacy}","received_events_url":"https://api.github.com/users/JoeCortopassi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JoeCortopassi/gluestick","description":"Experimental Command Line Interface for rapidly developing universal React applications","fork":true,"url":"https://api.github.com/repos/JoeCortopassi/gluestick","forks_url":"https://api.github.com/repos/JoeCortopassi/gluestick/forks","keys_url":"https://api.github.com/repos/JoeCortopassi/gluestick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JoeCortopassi/gluestick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JoeCortopassi/gluestick/teams","hooks_url":"https://api.github.com/repos/JoeCortopassi/gluestick/hooks","issue_events_url":"https://api.github.com/repos/JoeCortopassi/gluestick/issues/events{/number}","events_url":"https://api.github.com/repos/JoeCortopassi/gluestick/events","assignees_url":"https://api.github.com/repos/JoeCortopassi/gluestick/assignees{/user}","branches_url":"https://api.github.com/repos/JoeCortopassi/gluestick/branches{/branch}","tags_url":"https://api.github.com/repos/JoeCortopassi/gluestick/tags","blobs_url":"https://api.github.com/repos/JoeCortopassi/gluestick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JoeCortopassi/gluestick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JoeCortopassi/gluestick/git/refs{/sha}","trees_url":"https://api.github.com/repos/JoeCortopassi/gluestick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JoeCortopassi/gluestick/statuses/{sha}","languages_url":"https://api.github.com/repos/JoeCortopassi/gluestick/languages","stargazers_url":"https://api.github.com/repos/JoeCortopassi/gluestick/stargazers","contributors_url":"https://api.github.com/repos/JoeCortopassi/gluestick/contributors","subscribers_url":"https://api.github.com/repos/JoeCortopassi/gluestick/subscribers","subscription_url":"https://api.github.com/repos/JoeCortopassi/gluestick/subscription","commits_url":"https://api.github.com/repos/JoeCortopassi/gluestick/commits{/sha}","git_commits_url":"https://api.github.com/repos/JoeCortopassi/gluestick/git/commits{/sha}","comments_url":"https://api.github.com/repos/JoeCortopassi/gluestick/comments{/number}","issue_comment_url":"https://api.github.com/repos/JoeCortopassi/gluestick/issues/comments{/number}","contents_url":"https://api.github.com/repos/JoeCortopassi/gluestick/contents/{+path}","compare_url":"https://api.github.com/repos/JoeCortopassi/gluestick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JoeCortopassi/gluestick/merges","archive_url":"https://api.github.com/repos/JoeCortopassi/gluestick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JoeCortopassi/gluestick/downloads","issues_url":"https://api.github.com/repos/JoeCortopassi/gluestick/issues{/number}","pulls_url":"https://api.github.com/repos/JoeCortopassi/gluestick/pulls{/number}","milestones_url":"https://api.github.com/repos/JoeCortopassi/gluestick/milestones{/number}","notifications_url":"https://api.github.com/repos/JoeCortopassi/gluestick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JoeCortopassi/gluestick/labels{/name}","releases_url":"https://api.github.com/repos/JoeCortopassi/gluestick/releases{/id}","deployments_url":"https://api.github.com/repos/JoeCortopassi/gluestick/deployments","created_at":"2016-03-02T20:22:59Z","updated_at":"2016-03-02T20:22:59Z","pushed_at":"2016-03-08T19:54:40Z","git_url":"git://github.com/JoeCortopassi/gluestick.git","ssh_url":"git@github.com:JoeCortopassi/gluestick.git","clone_url":"https://github.com/JoeCortopassi/gluestick.git","svn_url":"https://github.com/JoeCortopassi/gluestick","homepage":null,"size":1185,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"develop"}},"base":{"label":"TrueCar:develop","ref":"develop","sha":"9fd7a8615b7d3c24ca23215a0687fc733b04938d","user":{"login":"TrueCar","id":432757,"avatar_url":"https://avatars.githubusercontent.com/u/432757?v=3","gravatar_id":"","url":"https://api.github.com/users/TrueCar","html_url":"https://github.com/TrueCar","followers_url":"https://api.github.com/users/TrueCar/followers","following_url":"https://api.github.com/users/TrueCar/following{/other_user}","gists_url":"https://api.github.com/users/TrueCar/gists{/gist_id}","starred_url":"https://api.github.com/users/TrueCar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrueCar/subscriptions","organizations_url":"https://api.github.com/users/TrueCar/orgs","repos_url":"https://api.github.com/users/TrueCar/repos","events_url":"https://api.github.com/users/TrueCar/events{/privacy}","received_events_url":"https://api.github.com/users/TrueCar/received_events","type":"Organization","site_admin":false},"repo":{"id":47585131,"name":"gluestick","full_name":"TrueCar/gluestick","owner":{"login":"TrueCar","id":432757,"avatar_url":"https://avatars.githubusercontent.com/u/432757?v=3","gravatar_id":"","url":"https://api.github.com/users/TrueCar","html_url":"https://github.com/TrueCar","followers_url":"https://api.github.com/users/TrueCar/followers","following_url":"https://api.github.com/users/TrueCar/following{/other_user}","gists_url":"https://api.github.com/users/TrueCar/gists{/gist_id}","starred_url":"https://api.github.com/users/TrueCar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrueCar/subscriptions","organizations_url":"https://api.github.com/users/TrueCar/orgs","repos_url":"https://api.github.com/users/TrueCar/repos","events_url":"https://api.github.com/users/TrueCar/events{/privacy}","received_events_url":"https://api.github.com/users/TrueCar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TrueCar/gluestick","description":"Experimental Command Line Interface for rapidly developing universal React applications","fork":false,"url":"https://api.github.com/repos/TrueCar/gluestick","forks_url":"https://api.github.com/repos/TrueCar/gluestick/forks","keys_url":"https://api.github.com/repos/TrueCar/gluestick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TrueCar/gluestick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TrueCar/gluestick/teams","hooks_url":"https://api.github.com/repos/TrueCar/gluestick/hooks","issue_events_url":"https://api.github.com/repos/TrueCar/gluestick/issues/events{/number}","events_url":"https://api.github.com/repos/TrueCar/gluestick/events","assignees_url":"https://api.github.com/repos/TrueCar/gluestick/assignees{/user}","branches_url":"https://api.github.com/repos/TrueCar/gluestick/branches{/branch}","tags_url":"https://api.github.com/repos/TrueCar/gluestick/tags","blobs_url":"https://api.github.com/repos/TrueCar/gluestick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TrueCar/gluestick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TrueCar/gluestick/git/refs{/sha}","trees_url":"https://api.github.com/repos/TrueCar/gluestick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TrueCar/gluestick/statuses/{sha}","languages_url":"https://api.github.com/repos/TrueCar/gluestick/languages","stargazers_url":"https://api.github.com/repos/TrueCar/gluestick/stargazers","contributors_url":"https://api.github.com/repos/TrueCar/gluestick/contributors","subscribers_url":"https://api.github.com/repos/TrueCar/gluestick/subscribers","subscription_url":"https://api.github.com/repos/TrueCar/gluestick/subscription","commits_url":"https://api.github.com/repos/TrueCar/gluestick/commits{/sha}","git_commits_url":"https://api.github.com/repos/TrueCar/gluestick/git/commits{/sha}","comments_url":"https://api.github.com/repos/TrueCar/gluestick/comments{/number}","issue_comment_url":"https://api.github.com/repos/TrueCar/gluestick/issues/comments{/number}","contents_url":"https://api.github.com/repos/TrueCar/gluestick/contents/{+path}","compare_url":"https://api.github.com/repos/TrueCar/gluestick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TrueCar/gluestick/merges","archive_url":"https://api.github.com/repos/TrueCar/gluestick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TrueCar/gluestick/downloads","issues_url":"https://api.github.com/repos/TrueCar/gluestick/issues{/number}","pulls_url":"https://api.github.com/repos/TrueCar/gluestick/pulls{/number}","milestones_url":"https://api.github.com/repos/TrueCar/gluestick/milestones{/number}","notifications_url":"https://api.github.com/repos/TrueCar/gluestick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TrueCar/gluestick/labels{/name}","releases_url":"https://api.github.com/repos/TrueCar/gluestick/releases{/id}","deployments_url":"https://api.github.com/repos/TrueCar/gluestick/deployments","created_at":"2015-12-07T23:12:30Z","updated_at":"2016-03-07T20:50:05Z","pushed_at":"2016-03-08T20:17:46Z","git_url":"git://github.com/TrueCar/gluestick.git","ssh_url":"git@github.com:TrueCar/gluestick.git","clone_url":"https://github.com/TrueCar/gluestick.git","svn_url":"https://github.com/TrueCar/gluestick","homepage":null,"size":1188,"stargazers_count":205,"watchers_count":205,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":2,"forks":13,"open_issues":2,"watchers":205,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/TrueCar/gluestick/pulls/79"},"html":{"href":"https://github.com/TrueCar/gluestick/pull/79"},"issue":{"href":"https://api.github.com/repos/TrueCar/gluestick/issues/79"},"comments":{"href":"https://api.github.com/repos/TrueCar/gluestick/issues/79/comments"},"review_comments":{"href":"https://api.github.com/repos/TrueCar/gluestick/pulls/79/comments"},"review_comment":{"href":"https://api.github.com/repos/TrueCar/gluestick/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TrueCar/gluestick/pulls/79/commits"},"statuses":{"href":"https://api.github.com/repos/TrueCar/gluestick/statuses/cc0e5d266557d3843f24f07196ca4104cd660932"}}}}