{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/pulls/comments/39213563","id":39213563,"diff_hunk":"@@ -91,6 +91,18 @@ define(function(require) {\n     Metadata.removeFile(getRoot(), stripRoot(path), callback);\n   }\n \n+  // Sets a flag on the project root that indicates whether we need to update\n+  // the published version of this project or not\n+  function publishNeedsUpdate(value, callback) {\n+    Metadata.setPublishNeedsUpdate(getRoot(), value, callback);\n+  }\n+\n+  // Gets the flag from the project root that indicates whether we need to\n+  // update the published version of this project or not\n+  function doesPublishNeedUpdate(callback) {","path":"public/editor/scripts/project/project.js","position":12,"original_position":12,"commit_id":"23272e34f9564cd201f6dd7c8f94d66f132b8f40","original_commit_id":"23272e34f9564cd201f6dd7c8f94d66f132b8f40","user":{"login":"humphd","id":427398,"avatar_url":"https://avatars.githubusercontent.com/u/427398?v=3","gravatar_id":"","url":"https://api.github.com/users/humphd","html_url":"https://github.com/humphd","followers_url":"https://api.github.com/users/humphd/followers","following_url":"https://api.github.com/users/humphd/following{/other_user}","gists_url":"https://api.github.com/users/humphd/gists{/gist_id}","starred_url":"https://api.github.com/users/humphd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humphd/subscriptions","organizations_url":"https://api.github.com/users/humphd/orgs","repos_url":"https://api.github.com/users/humphd/repos","events_url":"https://api.github.com/users/humphd/events{/privacy}","received_events_url":"https://api.github.com/users/humphd/received_events","type":"User","site_admin":false},"body":"I would call this `getPublishNeedsUpdate` (also note the `s` on `Needs` that you missed).","created_at":"2015-09-10T21:03:41Z","updated_at":"2015-09-10T21:03:41Z","html_url":"https://github.com/mozilla/thimble.webmaker.org/pull/1088#discussion_r39213563","pull_request_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/pulls/1088","_links":{"self":{"href":"https://api.github.com/repos/mozilla/thimble.webmaker.org/pulls/comments/39213563"},"html":{"href":"https://github.com/mozilla/thimble.webmaker.org/pull/1088#discussion_r39213563"},"pull_request":{"href":"https://api.github.com/repos/mozilla/thimble.webmaker.org/pulls/1088"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/pulls/1088","id":44706691,"html_url":"https://github.com/mozilla/thimble.webmaker.org/pull/1088","diff_url":"https://github.com/mozilla/thimble.webmaker.org/pull/1088.diff","patch_url":"https://github.com/mozilla/thimble.webmaker.org/pull/1088.patch","issue_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/issues/1088","number":1088,"state":"open","locked":false,"title":"Fix #1051 - Remember if we made changes that need to be published on refresh","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":"","created_at":"2015-09-10T19:08:06Z","updated_at":"2015-09-10T21:03:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c747fd31279aa3443c388b16d900045351f3eba","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/pulls/1088/commits","review_comments_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/pulls/1088/comments","review_comment_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/issues/1088/comments","statuses_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/statuses/23272e34f9564cd201f6dd7c8f94d66f132b8f40","head":{"label":"gideonthomas:issue1051","ref":"issue1051","sha":"23272e34f9564cd201f6dd7c8f94d66f132b8f40","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},"repo":{"id":31554137,"name":"thimble.webmaker.org","full_name":"gideonthomas/thimble.webmaker.org","owner":{"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},"private":false,"html_url":"https://github.com/gideonthomas/thimble.webmaker.org","description":"a minimal thimble on node.js POC","fork":true,"url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org","forks_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/forks","keys_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/teams","hooks_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/hooks","issue_events_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/issues/events{/number}","events_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/events","assignees_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/assignees{/user}","branches_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/branches{/branch}","tags_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/tags","blobs_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/statuses/{sha}","languages_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/languages","stargazers_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/stargazers","contributors_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/contributors","subscribers_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/subscribers","subscription_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/subscription","commits_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/contents/{+path}","compare_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/merges","archive_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/downloads","issues_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/issues{/number}","pulls_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/pulls{/number}","milestones_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/milestones{/number}","notifications_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/labels{/name}","releases_url":"https://api.github.com/repos/gideonthomas/thimble.webmaker.org/releases{/id}","created_at":"2015-03-02T17:51:20Z","updated_at":"2015-03-02T17:51:21Z","pushed_at":"2015-09-10T19:07:45Z","git_url":"git://github.com/gideonthomas/thimble.webmaker.org.git","ssh_url":"git@github.com:gideonthomas/thimble.webmaker.org.git","clone_url":"https://github.com/gideonthomas/thimble.webmaker.org.git","svn_url":"https://github.com/gideonthomas/thimble.webmaker.org","homepage":null,"size":18456,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"mvpIntegration"}},"base":{"label":"mozilla:bramble","ref":"bramble","sha":"5d58f12e21e4236c705bfc68c9fb1751acfa4b07","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":9349840,"name":"thimble.webmaker.org","full_name":"mozilla/thimble.webmaker.org","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/thimble.webmaker.org","description":"Online code editor geared to people teaching and learning HTML, CSS, and JavaScript.","fork":false,"url":"https://api.github.com/repos/mozilla/thimble.webmaker.org","forks_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/forks","keys_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/teams","hooks_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/hooks","issue_events_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/events","assignees_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/tags","blobs_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/languages","stargazers_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/stargazers","contributors_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/contributors","subscribers_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/subscribers","subscription_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/subscription","commits_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/merges","archive_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/downloads","issues_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/thimble.webmaker.org/releases{/id}","created_at":"2013-04-10T15:54:34Z","updated_at":"2015-09-10T02:52:47Z","pushed_at":"2015-09-10T19:08:07Z","git_url":"git://github.com/mozilla/thimble.webmaker.org.git","ssh_url":"git@github.com:mozilla/thimble.webmaker.org.git","clone_url":"https://github.com/mozilla/thimble.webmaker.org.git","svn_url":"https://github.com/mozilla/thimble.webmaker.org","homepage":"https://thimble.mozilla.org","size":61099,"stargazers_count":174,"watchers_count":174,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":81,"mirror_url":null,"open_issues_count":140,"forks":81,"open_issues":140,"watchers":174,"default_branch":"bramble"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/thimble.webmaker.org/pulls/1088"},"html":{"href":"https://github.com/mozilla/thimble.webmaker.org/pull/1088"},"issue":{"href":"https://api.github.com/repos/mozilla/thimble.webmaker.org/issues/1088"},"comments":{"href":"https://api.github.com/repos/mozilla/thimble.webmaker.org/issues/1088/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/thimble.webmaker.org/pulls/1088/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/thimble.webmaker.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/thimble.webmaker.org/pulls/1088/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/thimble.webmaker.org/statuses/23272e34f9564cd201f6dd7c8f94d66f132b8f40"}}}}