{"action":"created","comment":{"url":"https://api.github.com/repos/viethle126/todo/pulls/comments/59819151","id":59819151,"diff_hunk":"@@ -2,7 +2,24 @@ var app = angular.module('todo', []);\n \n app.controller('homeController', home);\n \n-function home() {\n+app.$inject = ['$http'];\n+\n+function home($http) {\n \tvar vm = this;\n-\tvm.message = 'Welcome home.'\n+\tvm.message = 'Welcome home, '\n+\n+\tvar user = $http.get('http://localhost:1337/user');\n+\tuser.then(function(info) {\n+\t\tvm.user = info.data;","path":"public/app.js","position":14,"original_position":14,"commit_id":"12c83b1a8dfee1952d8126fbb68576d605d1fd6d","original_commit_id":"12c83b1a8dfee1952d8126fbb68576d605d1fd6d","user":{"login":"occs","id":11880982,"avatar_url":"https://avatars.githubusercontent.com/u/11880982?v=3","gravatar_id":"","url":"https://api.github.com/users/occs","html_url":"https://github.com/occs","followers_url":"https://api.github.com/users/occs/followers","following_url":"https://api.github.com/users/occs/following{/other_user}","gists_url":"https://api.github.com/users/occs/gists{/gist_id}","starred_url":"https://api.github.com/users/occs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/occs/subscriptions","organizations_url":"https://api.github.com/users/occs/orgs","repos_url":"https://api.github.com/users/occs/repos","events_url":"https://api.github.com/users/occs/events{/privacy}","received_events_url":"https://api.github.com/users/occs/received_events","type":"User","site_admin":false},"body":"This whitespace is weird.","created_at":"2016-04-15T02:11:39Z","updated_at":"2016-04-15T02:11:39Z","html_url":"https://github.com/viethle126/todo/pull/3#discussion_r59819151","pull_request_url":"https://api.github.com/repos/viethle126/todo/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/viethle126/todo/pulls/comments/59819151"},"html":{"href":"https://github.com/viethle126/todo/pull/3#discussion_r59819151"},"pull_request":{"href":"https://api.github.com/repos/viethle126/todo/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/viethle126/todo/pulls/3","id":66568800,"html_url":"https://github.com/viethle126/todo/pull/3","diff_url":"https://github.com/viethle126/todo/pull/3.diff","patch_url":"https://github.com/viethle126/todo/pull/3.patch","issue_url":"https://api.github.com/repos/viethle126/todo/issues/3","number":3,"state":"open","locked":false,"title":"Todo List","user":{"login":"viethle126","id":16697731,"avatar_url":"https://avatars.githubusercontent.com/u/16697731?v=3","gravatar_id":"","url":"https://api.github.com/users/viethle126","html_url":"https://github.com/viethle126","followers_url":"https://api.github.com/users/viethle126/followers","following_url":"https://api.github.com/users/viethle126/following{/other_user}","gists_url":"https://api.github.com/users/viethle126/gists{/gist_id}","starred_url":"https://api.github.com/users/viethle126/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viethle126/subscriptions","organizations_url":"https://api.github.com/users/viethle126/orgs","repos_url":"https://api.github.com/users/viethle126/repos","events_url":"https://api.github.com/users/viethle126/events{/privacy}","received_events_url":"https://api.github.com/users/viethle126/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-14T23:13:37Z","updated_at":"2016-04-15T02:11:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"13922b87ec3a3aaf1463448e0abddf6756b282bf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/viethle126/todo/pulls/3/commits","review_comments_url":"https://api.github.com/repos/viethle126/todo/pulls/3/comments","review_comment_url":"https://api.github.com/repos/viethle126/todo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/viethle126/todo/issues/3/comments","statuses_url":"https://api.github.com/repos/viethle126/todo/statuses/12c83b1a8dfee1952d8126fbb68576d605d1fd6d","head":{"label":"viethle126:home","ref":"home","sha":"12c83b1a8dfee1952d8126fbb68576d605d1fd6d","user":{"login":"viethle126","id":16697731,"avatar_url":"https://avatars.githubusercontent.com/u/16697731?v=3","gravatar_id":"","url":"https://api.github.com/users/viethle126","html_url":"https://github.com/viethle126","followers_url":"https://api.github.com/users/viethle126/followers","following_url":"https://api.github.com/users/viethle126/following{/other_user}","gists_url":"https://api.github.com/users/viethle126/gists{/gist_id}","starred_url":"https://api.github.com/users/viethle126/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viethle126/subscriptions","organizations_url":"https://api.github.com/users/viethle126/orgs","repos_url":"https://api.github.com/users/viethle126/repos","events_url":"https://api.github.com/users/viethle126/events{/privacy}","received_events_url":"https://api.github.com/users/viethle126/received_events","type":"User","site_admin":false},"repo":{"id":56254968,"name":"todo","full_name":"viethle126/todo","owner":{"login":"viethle126","id":16697731,"avatar_url":"https://avatars.githubusercontent.com/u/16697731?v=3","gravatar_id":"","url":"https://api.github.com/users/viethle126","html_url":"https://github.com/viethle126","followers_url":"https://api.github.com/users/viethle126/followers","following_url":"https://api.github.com/users/viethle126/following{/other_user}","gists_url":"https://api.github.com/users/viethle126/gists{/gist_id}","starred_url":"https://api.github.com/users/viethle126/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viethle126/subscriptions","organizations_url":"https://api.github.com/users/viethle126/orgs","repos_url":"https://api.github.com/users/viethle126/repos","events_url":"https://api.github.com/users/viethle126/events{/privacy}","received_events_url":"https://api.github.com/users/viethle126/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/viethle126/todo","description":"","fork":false,"url":"https://api.github.com/repos/viethle126/todo","forks_url":"https://api.github.com/repos/viethle126/todo/forks","keys_url":"https://api.github.com/repos/viethle126/todo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/viethle126/todo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/viethle126/todo/teams","hooks_url":"https://api.github.com/repos/viethle126/todo/hooks","issue_events_url":"https://api.github.com/repos/viethle126/todo/issues/events{/number}","events_url":"https://api.github.com/repos/viethle126/todo/events","assignees_url":"https://api.github.com/repos/viethle126/todo/assignees{/user}","branches_url":"https://api.github.com/repos/viethle126/todo/branches{/branch}","tags_url":"https://api.github.com/repos/viethle126/todo/tags","blobs_url":"https://api.github.com/repos/viethle126/todo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/viethle126/todo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/viethle126/todo/git/refs{/sha}","trees_url":"https://api.github.com/repos/viethle126/todo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/viethle126/todo/statuses/{sha}","languages_url":"https://api.github.com/repos/viethle126/todo/languages","stargazers_url":"https://api.github.com/repos/viethle126/todo/stargazers","contributors_url":"https://api.github.com/repos/viethle126/todo/contributors","subscribers_url":"https://api.github.com/repos/viethle126/todo/subscribers","subscription_url":"https://api.github.com/repos/viethle126/todo/subscription","commits_url":"https://api.github.com/repos/viethle126/todo/commits{/sha}","git_commits_url":"https://api.github.com/repos/viethle126/todo/git/commits{/sha}","comments_url":"https://api.github.com/repos/viethle126/todo/comments{/number}","issue_comment_url":"https://api.github.com/repos/viethle126/todo/issues/comments{/number}","contents_url":"https://api.github.com/repos/viethle126/todo/contents/{+path}","compare_url":"https://api.github.com/repos/viethle126/todo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/viethle126/todo/merges","archive_url":"https://api.github.com/repos/viethle126/todo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/viethle126/todo/downloads","issues_url":"https://api.github.com/repos/viethle126/todo/issues{/number}","pulls_url":"https://api.github.com/repos/viethle126/todo/pulls{/number}","milestones_url":"https://api.github.com/repos/viethle126/todo/milestones{/number}","notifications_url":"https://api.github.com/repos/viethle126/todo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/viethle126/todo/labels{/name}","releases_url":"https://api.github.com/repos/viethle126/todo/releases{/id}","deployments_url":"https://api.github.com/repos/viethle126/todo/deployments","created_at":"2016-04-14T16:57:25Z","updated_at":"2016-04-14T22:29:39Z","pushed_at":"2016-04-14T23:13:37Z","git_url":"git://github.com/viethle126/todo.git","ssh_url":"git@github.com:viethle126/todo.git","clone_url":"https://github.com/viethle126/todo.git","svn_url":"https://github.com/viethle126/todo","homepage":null,"size":3,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"viethle126:master","ref":"master","sha":"686c7d16f5bd0c62ab8334e16a2a85cc2ecff950","user":{"login":"viethle126","id":16697731,"avatar_url":"https://avatars.githubusercontent.com/u/16697731?v=3","gravatar_id":"","url":"https://api.github.com/users/viethle126","html_url":"https://github.com/viethle126","followers_url":"https://api.github.com/users/viethle126/followers","following_url":"https://api.github.com/users/viethle126/following{/other_user}","gists_url":"https://api.github.com/users/viethle126/gists{/gist_id}","starred_url":"https://api.github.com/users/viethle126/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viethle126/subscriptions","organizations_url":"https://api.github.com/users/viethle126/orgs","repos_url":"https://api.github.com/users/viethle126/repos","events_url":"https://api.github.com/users/viethle126/events{/privacy}","received_events_url":"https://api.github.com/users/viethle126/received_events","type":"User","site_admin":false},"repo":{"id":56254968,"name":"todo","full_name":"viethle126/todo","owner":{"login":"viethle126","id":16697731,"avatar_url":"https://avatars.githubusercontent.com/u/16697731?v=3","gravatar_id":"","url":"https://api.github.com/users/viethle126","html_url":"https://github.com/viethle126","followers_url":"https://api.github.com/users/viethle126/followers","following_url":"https://api.github.com/users/viethle126/following{/other_user}","gists_url":"https://api.github.com/users/viethle126/gists{/gist_id}","starred_url":"https://api.github.com/users/viethle126/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viethle126/subscriptions","organizations_url":"https://api.github.com/users/viethle126/orgs","repos_url":"https://api.github.com/users/viethle126/repos","events_url":"https://api.github.com/users/viethle126/events{/privacy}","received_events_url":"https://api.github.com/users/viethle126/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/viethle126/todo","description":"","fork":false,"url":"https://api.github.com/repos/viethle126/todo","forks_url":"https://api.github.com/repos/viethle126/todo/forks","keys_url":"https://api.github.com/repos/viethle126/todo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/viethle126/todo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/viethle126/todo/teams","hooks_url":"https://api.github.com/repos/viethle126/todo/hooks","issue_events_url":"https://api.github.com/repos/viethle126/todo/issues/events{/number}","events_url":"https://api.github.com/repos/viethle126/todo/events","assignees_url":"https://api.github.com/repos/viethle126/todo/assignees{/user}","branches_url":"https://api.github.com/repos/viethle126/todo/branches{/branch}","tags_url":"https://api.github.com/repos/viethle126/todo/tags","blobs_url":"https://api.github.com/repos/viethle126/todo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/viethle126/todo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/viethle126/todo/git/refs{/sha}","trees_url":"https://api.github.com/repos/viethle126/todo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/viethle126/todo/statuses/{sha}","languages_url":"https://api.github.com/repos/viethle126/todo/languages","stargazers_url":"https://api.github.com/repos/viethle126/todo/stargazers","contributors_url":"https://api.github.com/repos/viethle126/todo/contributors","subscribers_url":"https://api.github.com/repos/viethle126/todo/subscribers","subscription_url":"https://api.github.com/repos/viethle126/todo/subscription","commits_url":"https://api.github.com/repos/viethle126/todo/commits{/sha}","git_commits_url":"https://api.github.com/repos/viethle126/todo/git/commits{/sha}","comments_url":"https://api.github.com/repos/viethle126/todo/comments{/number}","issue_comment_url":"https://api.github.com/repos/viethle126/todo/issues/comments{/number}","contents_url":"https://api.github.com/repos/viethle126/todo/contents/{+path}","compare_url":"https://api.github.com/repos/viethle126/todo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/viethle126/todo/merges","archive_url":"https://api.github.com/repos/viethle126/todo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/viethle126/todo/downloads","issues_url":"https://api.github.com/repos/viethle126/todo/issues{/number}","pulls_url":"https://api.github.com/repos/viethle126/todo/pulls{/number}","milestones_url":"https://api.github.com/repos/viethle126/todo/milestones{/number}","notifications_url":"https://api.github.com/repos/viethle126/todo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/viethle126/todo/labels{/name}","releases_url":"https://api.github.com/repos/viethle126/todo/releases{/id}","deployments_url":"https://api.github.com/repos/viethle126/todo/deployments","created_at":"2016-04-14T16:57:25Z","updated_at":"2016-04-14T22:29:39Z","pushed_at":"2016-04-14T23:13:37Z","git_url":"git://github.com/viethle126/todo.git","ssh_url":"git@github.com:viethle126/todo.git","clone_url":"https://github.com/viethle126/todo.git","svn_url":"https://github.com/viethle126/todo","homepage":null,"size":3,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/viethle126/todo/pulls/3"},"html":{"href":"https://github.com/viethle126/todo/pull/3"},"issue":{"href":"https://api.github.com/repos/viethle126/todo/issues/3"},"comments":{"href":"https://api.github.com/repos/viethle126/todo/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/viethle126/todo/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/viethle126/todo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/viethle126/todo/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/viethle126/todo/statuses/12c83b1a8dfee1952d8126fbb68576d605d1fd6d"}}}}