{"action":"created","comment":{"url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/comments/44017621","id":44017621,"diff_hunk":"@@ -36,6 +36,8 @@ habitrpg.controller(\"RootCtrl\", ['$scope', '$rootScope', '$location', 'User', '$\n     $rootScope.toJson = angular.toJson;\n     $rootScope.Payments = Payments;\n \n+    $http.defaults.headers.common['x-client'] = \"habitica-web\";","path":"website/public/js/controllers/rootCtrl.js","position":4,"original_position":4,"commit_id":"7f189bebbaf1421fe43c0e01399d99c08be5fce3","original_commit_id":"7f189bebbaf1421fe43c0e01399d99c08be5fce3","user":{"login":"paglias","id":589911,"avatar_url":"https://avatars.githubusercontent.com/u/589911?v=3","gravatar_id":"","url":"https://api.github.com/users/paglias","html_url":"https://github.com/paglias","followers_url":"https://api.github.com/users/paglias/followers","following_url":"https://api.github.com/users/paglias/following{/other_user}","gists_url":"https://api.github.com/users/paglias/gists{/gist_id}","starred_url":"https://api.github.com/users/paglias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paglias/subscriptions","organizations_url":"https://api.github.com/users/paglias/orgs","repos_url":"https://api.github.com/users/paglias/repos","events_url":"https://api.github.com/users/paglias/events{/privacy}","received_events_url":"https://api.github.com/users/paglias/received_events","type":"User","site_admin":false},"body":"you're right, if it's not a big problem would you mind putting it in public/js/app.js like the other headers?","created_at":"2015-11-05T14:37:14Z","updated_at":"2015-11-05T14:37:14Z","html_url":"https://github.com/HabitRPG/habitrpg/pull/6177#discussion_r44017621","pull_request_url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/6177","_links":{"self":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/comments/44017621"},"html":{"href":"https://github.com/HabitRPG/habitrpg/pull/6177#discussion_r44017621"},"pull_request":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/6177"}}},"pull_request":{"url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/6177","id":49709673,"html_url":"https://github.com/HabitRPG/habitrpg/pull/6177","diff_url":"https://github.com/HabitRPG/habitrpg/pull/6177.diff","patch_url":"https://github.com/HabitRPG/habitrpg/pull/6177.patch","issue_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/6177","number":6177,"state":"closed","locked":false,"title":"Add Client identifier and act on it during registration","user":{"login":"vIiRuS","id":298062,"avatar_url":"https://avatars.githubusercontent.com/u/298062?v=3","gravatar_id":"","url":"https://api.github.com/users/vIiRuS","html_url":"https://github.com/vIiRuS","followers_url":"https://api.github.com/users/vIiRuS/followers","following_url":"https://api.github.com/users/vIiRuS/following{/other_user}","gists_url":"https://api.github.com/users/vIiRuS/gists{/gist_id}","starred_url":"https://api.github.com/users/vIiRuS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vIiRuS/subscriptions","organizations_url":"https://api.github.com/users/vIiRuS/orgs","repos_url":"https://api.github.com/users/vIiRuS/repos","events_url":"https://api.github.com/users/vIiRuS/events{/privacy}","received_events_url":"https://api.github.com/users/vIiRuS/received_events","type":"User","site_admin":false},"body":"Add a x-client header and use it to only create all sample tasks when registering from the website. Also set the tutorials to done (for the platform the user did not register on).","created_at":"2015-11-04T16:19:12Z","updated_at":"2015-11-05T14:37:14Z","closed_at":"2015-11-05T02:03:35Z","merged_at":"2015-11-05T02:03:35Z","merge_commit_sha":"b98726cd5e8ecac11e0bc5dc093ee20e43599ce3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/6177/commits","review_comments_url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/6177/comments","review_comment_url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/6177/comments","statuses_url":"https://api.github.com/repos/HabitRPG/habitrpg/statuses/7f189bebbaf1421fe43c0e01399d99c08be5fce3","head":{"label":"vIiRuS:clientIdentifier","ref":"clientIdentifier","sha":"7f189bebbaf1421fe43c0e01399d99c08be5fce3","user":{"login":"vIiRuS","id":298062,"avatar_url":"https://avatars.githubusercontent.com/u/298062?v=3","gravatar_id":"","url":"https://api.github.com/users/vIiRuS","html_url":"https://github.com/vIiRuS","followers_url":"https://api.github.com/users/vIiRuS/followers","following_url":"https://api.github.com/users/vIiRuS/following{/other_user}","gists_url":"https://api.github.com/users/vIiRuS/gists{/gist_id}","starred_url":"https://api.github.com/users/vIiRuS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vIiRuS/subscriptions","organizations_url":"https://api.github.com/users/vIiRuS/orgs","repos_url":"https://api.github.com/users/vIiRuS/repos","events_url":"https://api.github.com/users/vIiRuS/events{/privacy}","received_events_url":"https://api.github.com/users/vIiRuS/received_events","type":"User","site_admin":false},"repo":{"id":15554181,"name":"habitrpg","full_name":"vIiRuS/habitrpg","owner":{"login":"vIiRuS","id":298062,"avatar_url":"https://avatars.githubusercontent.com/u/298062?v=3","gravatar_id":"","url":"https://api.github.com/users/vIiRuS","html_url":"https://github.com/vIiRuS","followers_url":"https://api.github.com/users/vIiRuS/followers","following_url":"https://api.github.com/users/vIiRuS/following{/other_user}","gists_url":"https://api.github.com/users/vIiRuS/gists{/gist_id}","starred_url":"https://api.github.com/users/vIiRuS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vIiRuS/subscriptions","organizations_url":"https://api.github.com/users/vIiRuS/orgs","repos_url":"https://api.github.com/users/vIiRuS/repos","events_url":"https://api.github.com/users/vIiRuS/events{/privacy}","received_events_url":"https://api.github.com/users/vIiRuS/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vIiRuS/habitrpg","description":"A habit tracker app which treats your goals like a Role Playing Game.","fork":true,"url":"https://api.github.com/repos/vIiRuS/habitrpg","forks_url":"https://api.github.com/repos/vIiRuS/habitrpg/forks","keys_url":"https://api.github.com/repos/vIiRuS/habitrpg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vIiRuS/habitrpg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vIiRuS/habitrpg/teams","hooks_url":"https://api.github.com/repos/vIiRuS/habitrpg/hooks","issue_events_url":"https://api.github.com/repos/vIiRuS/habitrpg/issues/events{/number}","events_url":"https://api.github.com/repos/vIiRuS/habitrpg/events","assignees_url":"https://api.github.com/repos/vIiRuS/habitrpg/assignees{/user}","branches_url":"https://api.github.com/repos/vIiRuS/habitrpg/branches{/branch}","tags_url":"https://api.github.com/repos/vIiRuS/habitrpg/tags","blobs_url":"https://api.github.com/repos/vIiRuS/habitrpg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vIiRuS/habitrpg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vIiRuS/habitrpg/git/refs{/sha}","trees_url":"https://api.github.com/repos/vIiRuS/habitrpg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vIiRuS/habitrpg/statuses/{sha}","languages_url":"https://api.github.com/repos/vIiRuS/habitrpg/languages","stargazers_url":"https://api.github.com/repos/vIiRuS/habitrpg/stargazers","contributors_url":"https://api.github.com/repos/vIiRuS/habitrpg/contributors","subscribers_url":"https://api.github.com/repos/vIiRuS/habitrpg/subscribers","subscription_url":"https://api.github.com/repos/vIiRuS/habitrpg/subscription","commits_url":"https://api.github.com/repos/vIiRuS/habitrpg/commits{/sha}","git_commits_url":"https://api.github.com/repos/vIiRuS/habitrpg/git/commits{/sha}","comments_url":"https://api.github.com/repos/vIiRuS/habitrpg/comments{/number}","issue_comment_url":"https://api.github.com/repos/vIiRuS/habitrpg/issues/comments{/number}","contents_url":"https://api.github.com/repos/vIiRuS/habitrpg/contents/{+path}","compare_url":"https://api.github.com/repos/vIiRuS/habitrpg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vIiRuS/habitrpg/merges","archive_url":"https://api.github.com/repos/vIiRuS/habitrpg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vIiRuS/habitrpg/downloads","issues_url":"https://api.github.com/repos/vIiRuS/habitrpg/issues{/number}","pulls_url":"https://api.github.com/repos/vIiRuS/habitrpg/pulls{/number}","milestones_url":"https://api.github.com/repos/vIiRuS/habitrpg/milestones{/number}","notifications_url":"https://api.github.com/repos/vIiRuS/habitrpg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vIiRuS/habitrpg/labels{/name}","releases_url":"https://api.github.com/repos/vIiRuS/habitrpg/releases{/id}","created_at":"2013-12-31T17:43:20Z","updated_at":"2014-08-03T18:39:09Z","pushed_at":"2015-11-04T15:55:22Z","git_url":"git://github.com/vIiRuS/habitrpg.git","ssh_url":"git@github.com:vIiRuS/habitrpg.git","clone_url":"https://github.com/vIiRuS/habitrpg.git","svn_url":"https://github.com/vIiRuS/habitrpg","homepage":"habitrpg.com","size":282708,"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":"master"}},"base":{"label":"HabitRPG:develop","ref":"develop","sha":"a7f0a2a8ca3b03b193c50f199d40f83cf52a2b3f","user":{"login":"HabitRPG","id":3834775,"avatar_url":"https://avatars.githubusercontent.com/u/3834775?v=3","gravatar_id":"","url":"https://api.github.com/users/HabitRPG","html_url":"https://github.com/HabitRPG","followers_url":"https://api.github.com/users/HabitRPG/followers","following_url":"https://api.github.com/users/HabitRPG/following{/other_user}","gists_url":"https://api.github.com/users/HabitRPG/gists{/gist_id}","starred_url":"https://api.github.com/users/HabitRPG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HabitRPG/subscriptions","organizations_url":"https://api.github.com/users/HabitRPG/orgs","repos_url":"https://api.github.com/users/HabitRPG/repos","events_url":"https://api.github.com/users/HabitRPG/events{/privacy}","received_events_url":"https://api.github.com/users/HabitRPG/received_events","type":"Organization","site_admin":false},"repo":{"id":4578898,"name":"habitrpg","full_name":"HabitRPG/habitrpg","owner":{"login":"HabitRPG","id":3834775,"avatar_url":"https://avatars.githubusercontent.com/u/3834775?v=3","gravatar_id":"","url":"https://api.github.com/users/HabitRPG","html_url":"https://github.com/HabitRPG","followers_url":"https://api.github.com/users/HabitRPG/followers","following_url":"https://api.github.com/users/HabitRPG/following{/other_user}","gists_url":"https://api.github.com/users/HabitRPG/gists{/gist_id}","starred_url":"https://api.github.com/users/HabitRPG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HabitRPG/subscriptions","organizations_url":"https://api.github.com/users/HabitRPG/orgs","repos_url":"https://api.github.com/users/HabitRPG/repos","events_url":"https://api.github.com/users/HabitRPG/events{/privacy}","received_events_url":"https://api.github.com/users/HabitRPG/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HabitRPG/habitrpg","description":"A habit tracker app which treats your goals like a Role Playing Game.","fork":false,"url":"https://api.github.com/repos/HabitRPG/habitrpg","forks_url":"https://api.github.com/repos/HabitRPG/habitrpg/forks","keys_url":"https://api.github.com/repos/HabitRPG/habitrpg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HabitRPG/habitrpg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HabitRPG/habitrpg/teams","hooks_url":"https://api.github.com/repos/HabitRPG/habitrpg/hooks","issue_events_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/events{/number}","events_url":"https://api.github.com/repos/HabitRPG/habitrpg/events","assignees_url":"https://api.github.com/repos/HabitRPG/habitrpg/assignees{/user}","branches_url":"https://api.github.com/repos/HabitRPG/habitrpg/branches{/branch}","tags_url":"https://api.github.com/repos/HabitRPG/habitrpg/tags","blobs_url":"https://api.github.com/repos/HabitRPG/habitrpg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HabitRPG/habitrpg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HabitRPG/habitrpg/git/refs{/sha}","trees_url":"https://api.github.com/repos/HabitRPG/habitrpg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HabitRPG/habitrpg/statuses/{sha}","languages_url":"https://api.github.com/repos/HabitRPG/habitrpg/languages","stargazers_url":"https://api.github.com/repos/HabitRPG/habitrpg/stargazers","contributors_url":"https://api.github.com/repos/HabitRPG/habitrpg/contributors","subscribers_url":"https://api.github.com/repos/HabitRPG/habitrpg/subscribers","subscription_url":"https://api.github.com/repos/HabitRPG/habitrpg/subscription","commits_url":"https://api.github.com/repos/HabitRPG/habitrpg/commits{/sha}","git_commits_url":"https://api.github.com/repos/HabitRPG/habitrpg/git/commits{/sha}","comments_url":"https://api.github.com/repos/HabitRPG/habitrpg/comments{/number}","issue_comment_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/comments{/number}","contents_url":"https://api.github.com/repos/HabitRPG/habitrpg/contents/{+path}","compare_url":"https://api.github.com/repos/HabitRPG/habitrpg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HabitRPG/habitrpg/merges","archive_url":"https://api.github.com/repos/HabitRPG/habitrpg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HabitRPG/habitrpg/downloads","issues_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues{/number}","pulls_url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls{/number}","milestones_url":"https://api.github.com/repos/HabitRPG/habitrpg/milestones{/number}","notifications_url":"https://api.github.com/repos/HabitRPG/habitrpg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HabitRPG/habitrpg/labels{/name}","releases_url":"https://api.github.com/repos/HabitRPG/habitrpg/releases{/id}","created_at":"2012-06-06T22:49:48Z","updated_at":"2015-11-05T14:25:57Z","pushed_at":"2015-11-05T14:17:44Z","git_url":"git://github.com/HabitRPG/habitrpg.git","ssh_url":"git@github.com:HabitRPG/habitrpg.git","clone_url":"https://github.com/HabitRPG/habitrpg.git","svn_url":"https://github.com/HabitRPG/habitrpg","homepage":"https://habitica.com","size":310627,"stargazers_count":3238,"watchers_count":3238,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1305,"mirror_url":null,"open_issues_count":429,"forks":1305,"open_issues":429,"watchers":3238,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/6177"},"html":{"href":"https://github.com/HabitRPG/habitrpg/pull/6177"},"issue":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/issues/6177"},"comments":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/issues/6177/comments"},"review_comments":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/6177/comments"},"review_comment":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/6177/commits"},"statuses":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/statuses/7f189bebbaf1421fe43c0e01399d99c08be5fce3"}}}}