{"action":"created","comment":{"url":"https://api.github.com/repos/NikitaSedyx/todo-list/pulls/comments/36272956","id":36272956,"diff_hunk":"@@ -0,0 +1,30 @@\n+;(function () {\n+  angular\n+    .module(\"todo\")\n+    .controller(\"LoginController\", LoginController);\n+\n+  LoginController.$inject = [\"$scope\", \"$http\", \"$state\", \"API\"];\n+\n+  function LoginController($scope, $http, $state, API) {\n+    $scope.signIn = signIn;\n+    this.loginSucces = loginSucces;\n+    this.loginError = loginError;\n+\n+\n+    function signIn() {\n+      $http.post(API.BASE + API.AUTH + API.LOGIN, $scope.user)\n+      .then(loginSucces,loginError);\n+      $state.go(\"groups\");","path":"app/components/login/login.controller.js","position":18,"original_position":17,"commit_id":"0ebd044003af8739cd469a5e75fe333238449b03","original_commit_id":"25e909647bc5b3097895a63ca09bd54f200c65c0","user":{"login":"NikitaSedyx","id":12440608,"avatar_url":"https://avatars.githubusercontent.com/u/12440608?v=3","gravatar_id":"","url":"https://api.github.com/users/NikitaSedyx","html_url":"https://github.com/NikitaSedyx","followers_url":"https://api.github.com/users/NikitaSedyx/followers","following_url":"https://api.github.com/users/NikitaSedyx/following{/other_user}","gists_url":"https://api.github.com/users/NikitaSedyx/gists{/gist_id}","starred_url":"https://api.github.com/users/NikitaSedyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NikitaSedyx/subscriptions","organizations_url":"https://api.github.com/users/NikitaSedyx/orgs","repos_url":"https://api.github.com/users/NikitaSedyx/repos","events_url":"https://api.github.com/users/NikitaSedyx/events{/privacy}","received_events_url":"https://api.github.com/users/NikitaSedyx/received_events","type":"User","site_admin":false},"body":"it should be in function loginSucces(response) mb","created_at":"2015-08-05T06:33:48Z","updated_at":"2015-08-05T06:33:48Z","html_url":"https://github.com/NikitaSedyx/todo-list/pull/21#discussion_r36272956","pull_request_url":"https://api.github.com/repos/NikitaSedyx/todo-list/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/NikitaSedyx/todo-list/pulls/comments/36272956"},"html":{"href":"https://github.com/NikitaSedyx/todo-list/pull/21#discussion_r36272956"},"pull_request":{"href":"https://api.github.com/repos/NikitaSedyx/todo-list/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/NikitaSedyx/todo-list/pulls/21","id":41557626,"html_url":"https://github.com/NikitaSedyx/todo-list/pull/21","diff_url":"https://github.com/NikitaSedyx/todo-list/pull/21.diff","patch_url":"https://github.com/NikitaSedyx/todo-list/pull/21.patch","issue_url":"https://api.github.com/repos/NikitaSedyx/todo-list/issues/21","number":21,"state":"open","locked":false,"title":"Add grops v1","user":{"login":"atreidas1","id":13235962,"avatar_url":"https://avatars.githubusercontent.com/u/13235962?v=3","gravatar_id":"","url":"https://api.github.com/users/atreidas1","html_url":"https://github.com/atreidas1","followers_url":"https://api.github.com/users/atreidas1/followers","following_url":"https://api.github.com/users/atreidas1/following{/other_user}","gists_url":"https://api.github.com/users/atreidas1/gists{/gist_id}","starred_url":"https://api.github.com/users/atreidas1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atreidas1/subscriptions","organizations_url":"https://api.github.com/users/atreidas1/orgs","repos_url":"https://api.github.com/users/atreidas1/repos","events_url":"https://api.github.com/users/atreidas1/events{/privacy}","received_events_url":"https://api.github.com/users/atreidas1/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-04T11:01:04Z","updated_at":"2015-08-05T06:33:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f9376a38e119524db1940c2dcd79c66d306ee9cb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/NikitaSedyx/todo-list/pulls/21/commits","review_comments_url":"https://api.github.com/repos/NikitaSedyx/todo-list/pulls/21/comments","review_comment_url":"https://api.github.com/repos/NikitaSedyx/todo-list/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NikitaSedyx/todo-list/issues/21/comments","statuses_url":"https://api.github.com/repos/NikitaSedyx/todo-list/statuses/0ebd044003af8739cd469a5e75fe333238449b03","head":{"label":"NikitaSedyx:add-grops-V1","ref":"add-grops-V1","sha":"0ebd044003af8739cd469a5e75fe333238449b03","user":{"login":"NikitaSedyx","id":12440608,"avatar_url":"https://avatars.githubusercontent.com/u/12440608?v=3","gravatar_id":"","url":"https://api.github.com/users/NikitaSedyx","html_url":"https://github.com/NikitaSedyx","followers_url":"https://api.github.com/users/NikitaSedyx/followers","following_url":"https://api.github.com/users/NikitaSedyx/following{/other_user}","gists_url":"https://api.github.com/users/NikitaSedyx/gists{/gist_id}","starred_url":"https://api.github.com/users/NikitaSedyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NikitaSedyx/subscriptions","organizations_url":"https://api.github.com/users/NikitaSedyx/orgs","repos_url":"https://api.github.com/users/NikitaSedyx/repos","events_url":"https://api.github.com/users/NikitaSedyx/events{/privacy}","received_events_url":"https://api.github.com/users/NikitaSedyx/received_events","type":"User","site_admin":false},"repo":{"id":37664997,"name":"todo-list","full_name":"NikitaSedyx/todo-list","owner":{"login":"NikitaSedyx","id":12440608,"avatar_url":"https://avatars.githubusercontent.com/u/12440608?v=3","gravatar_id":"","url":"https://api.github.com/users/NikitaSedyx","html_url":"https://github.com/NikitaSedyx","followers_url":"https://api.github.com/users/NikitaSedyx/followers","following_url":"https://api.github.com/users/NikitaSedyx/following{/other_user}","gists_url":"https://api.github.com/users/NikitaSedyx/gists{/gist_id}","starred_url":"https://api.github.com/users/NikitaSedyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NikitaSedyx/subscriptions","organizations_url":"https://api.github.com/users/NikitaSedyx/orgs","repos_url":"https://api.github.com/users/NikitaSedyx/repos","events_url":"https://api.github.com/users/NikitaSedyx/events{/privacy}","received_events_url":"https://api.github.com/users/NikitaSedyx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NikitaSedyx/todo-list","description":"","fork":false,"url":"https://api.github.com/repos/NikitaSedyx/todo-list","forks_url":"https://api.github.com/repos/NikitaSedyx/todo-list/forks","keys_url":"https://api.github.com/repos/NikitaSedyx/todo-list/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NikitaSedyx/todo-list/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NikitaSedyx/todo-list/teams","hooks_url":"https://api.github.com/repos/NikitaSedyx/todo-list/hooks","issue_events_url":"https://api.github.com/repos/NikitaSedyx/todo-list/issues/events{/number}","events_url":"https://api.github.com/repos/NikitaSedyx/todo-list/events","assignees_url":"https://api.github.com/repos/NikitaSedyx/todo-list/assignees{/user}","branches_url":"https://api.github.com/repos/NikitaSedyx/todo-list/branches{/branch}","tags_url":"https://api.github.com/repos/NikitaSedyx/todo-list/tags","blobs_url":"https://api.github.com/repos/NikitaSedyx/todo-list/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NikitaSedyx/todo-list/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NikitaSedyx/todo-list/git/refs{/sha}","trees_url":"https://api.github.com/repos/NikitaSedyx/todo-list/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NikitaSedyx/todo-list/statuses/{sha}","languages_url":"https://api.github.com/repos/NikitaSedyx/todo-list/languages","stargazers_url":"https://api.github.com/repos/NikitaSedyx/todo-list/stargazers","contributors_url":"https://api.github.com/repos/NikitaSedyx/todo-list/contributors","subscribers_url":"https://api.github.com/repos/NikitaSedyx/todo-list/subscribers","subscription_url":"https://api.github.com/repos/NikitaSedyx/todo-list/subscription","commits_url":"https://api.github.com/repos/NikitaSedyx/todo-list/commits{/sha}","git_commits_url":"https://api.github.com/repos/NikitaSedyx/todo-list/git/commits{/sha}","comments_url":"https://api.github.com/repos/NikitaSedyx/todo-list/comments{/number}","issue_comment_url":"https://api.github.com/repos/NikitaSedyx/todo-list/issues/comments{/number}","contents_url":"https://api.github.com/repos/NikitaSedyx/todo-list/contents/{+path}","compare_url":"https://api.github.com/repos/NikitaSedyx/todo-list/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NikitaSedyx/todo-list/merges","archive_url":"https://api.github.com/repos/NikitaSedyx/todo-list/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NikitaSedyx/todo-list/downloads","issues_url":"https://api.github.com/repos/NikitaSedyx/todo-list/issues{/number}","pulls_url":"https://api.github.com/repos/NikitaSedyx/todo-list/pulls{/number}","milestones_url":"https://api.github.com/repos/NikitaSedyx/todo-list/milestones{/number}","notifications_url":"https://api.github.com/repos/NikitaSedyx/todo-list/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NikitaSedyx/todo-list/labels{/name}","releases_url":"https://api.github.com/repos/NikitaSedyx/todo-list/releases{/id}","created_at":"2015-06-18T14:40:10Z","updated_at":"2015-06-22T13:50:25Z","pushed_at":"2015-08-04T14:46:51Z","git_url":"git://github.com/NikitaSedyx/todo-list.git","ssh_url":"git@github.com:NikitaSedyx/todo-list.git","clone_url":"https://github.com/NikitaSedyx/todo-list.git","svn_url":"https://github.com/NikitaSedyx/todo-list","homepage":null,"size":672,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"NikitaSedyx:master","ref":"master","sha":"58a8cd763cea96a906aecda4a3c306a1a75eb580","user":{"login":"NikitaSedyx","id":12440608,"avatar_url":"https://avatars.githubusercontent.com/u/12440608?v=3","gravatar_id":"","url":"https://api.github.com/users/NikitaSedyx","html_url":"https://github.com/NikitaSedyx","followers_url":"https://api.github.com/users/NikitaSedyx/followers","following_url":"https://api.github.com/users/NikitaSedyx/following{/other_user}","gists_url":"https://api.github.com/users/NikitaSedyx/gists{/gist_id}","starred_url":"https://api.github.com/users/NikitaSedyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NikitaSedyx/subscriptions","organizations_url":"https://api.github.com/users/NikitaSedyx/orgs","repos_url":"https://api.github.com/users/NikitaSedyx/repos","events_url":"https://api.github.com/users/NikitaSedyx/events{/privacy}","received_events_url":"https://api.github.com/users/NikitaSedyx/received_events","type":"User","site_admin":false},"repo":{"id":37664997,"name":"todo-list","full_name":"NikitaSedyx/todo-list","owner":{"login":"NikitaSedyx","id":12440608,"avatar_url":"https://avatars.githubusercontent.com/u/12440608?v=3","gravatar_id":"","url":"https://api.github.com/users/NikitaSedyx","html_url":"https://github.com/NikitaSedyx","followers_url":"https://api.github.com/users/NikitaSedyx/followers","following_url":"https://api.github.com/users/NikitaSedyx/following{/other_user}","gists_url":"https://api.github.com/users/NikitaSedyx/gists{/gist_id}","starred_url":"https://api.github.com/users/NikitaSedyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NikitaSedyx/subscriptions","organizations_url":"https://api.github.com/users/NikitaSedyx/orgs","repos_url":"https://api.github.com/users/NikitaSedyx/repos","events_url":"https://api.github.com/users/NikitaSedyx/events{/privacy}","received_events_url":"https://api.github.com/users/NikitaSedyx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NikitaSedyx/todo-list","description":"","fork":false,"url":"https://api.github.com/repos/NikitaSedyx/todo-list","forks_url":"https://api.github.com/repos/NikitaSedyx/todo-list/forks","keys_url":"https://api.github.com/repos/NikitaSedyx/todo-list/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NikitaSedyx/todo-list/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NikitaSedyx/todo-list/teams","hooks_url":"https://api.github.com/repos/NikitaSedyx/todo-list/hooks","issue_events_url":"https://api.github.com/repos/NikitaSedyx/todo-list/issues/events{/number}","events_url":"https://api.github.com/repos/NikitaSedyx/todo-list/events","assignees_url":"https://api.github.com/repos/NikitaSedyx/todo-list/assignees{/user}","branches_url":"https://api.github.com/repos/NikitaSedyx/todo-list/branches{/branch}","tags_url":"https://api.github.com/repos/NikitaSedyx/todo-list/tags","blobs_url":"https://api.github.com/repos/NikitaSedyx/todo-list/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NikitaSedyx/todo-list/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NikitaSedyx/todo-list/git/refs{/sha}","trees_url":"https://api.github.com/repos/NikitaSedyx/todo-list/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NikitaSedyx/todo-list/statuses/{sha}","languages_url":"https://api.github.com/repos/NikitaSedyx/todo-list/languages","stargazers_url":"https://api.github.com/repos/NikitaSedyx/todo-list/stargazers","contributors_url":"https://api.github.com/repos/NikitaSedyx/todo-list/contributors","subscribers_url":"https://api.github.com/repos/NikitaSedyx/todo-list/subscribers","subscription_url":"https://api.github.com/repos/NikitaSedyx/todo-list/subscription","commits_url":"https://api.github.com/repos/NikitaSedyx/todo-list/commits{/sha}","git_commits_url":"https://api.github.com/repos/NikitaSedyx/todo-list/git/commits{/sha}","comments_url":"https://api.github.com/repos/NikitaSedyx/todo-list/comments{/number}","issue_comment_url":"https://api.github.com/repos/NikitaSedyx/todo-list/issues/comments{/number}","contents_url":"https://api.github.com/repos/NikitaSedyx/todo-list/contents/{+path}","compare_url":"https://api.github.com/repos/NikitaSedyx/todo-list/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NikitaSedyx/todo-list/merges","archive_url":"https://api.github.com/repos/NikitaSedyx/todo-list/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NikitaSedyx/todo-list/downloads","issues_url":"https://api.github.com/repos/NikitaSedyx/todo-list/issues{/number}","pulls_url":"https://api.github.com/repos/NikitaSedyx/todo-list/pulls{/number}","milestones_url":"https://api.github.com/repos/NikitaSedyx/todo-list/milestones{/number}","notifications_url":"https://api.github.com/repos/NikitaSedyx/todo-list/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NikitaSedyx/todo-list/labels{/name}","releases_url":"https://api.github.com/repos/NikitaSedyx/todo-list/releases{/id}","created_at":"2015-06-18T14:40:10Z","updated_at":"2015-06-22T13:50:25Z","pushed_at":"2015-08-04T14:46:51Z","git_url":"git://github.com/NikitaSedyx/todo-list.git","ssh_url":"git@github.com:NikitaSedyx/todo-list.git","clone_url":"https://github.com/NikitaSedyx/todo-list.git","svn_url":"https://github.com/NikitaSedyx/todo-list","homepage":null,"size":672,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NikitaSedyx/todo-list/pulls/21"},"html":{"href":"https://github.com/NikitaSedyx/todo-list/pull/21"},"issue":{"href":"https://api.github.com/repos/NikitaSedyx/todo-list/issues/21"},"comments":{"href":"https://api.github.com/repos/NikitaSedyx/todo-list/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/NikitaSedyx/todo-list/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/NikitaSedyx/todo-list/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NikitaSedyx/todo-list/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/NikitaSedyx/todo-list/statuses/0ebd044003af8739cd469a5e75fe333238449b03"}}}}