{"action":"created","comment":{"url":"https://api.github.com/repos/ArseniyKanev/tn-travel/pulls/comments/42326395","id":42326395,"diff_hunk":"@@ -0,0 +1,72 @@\n+var app = angular.module('tnTravel', []);\n+\n+app.controller('TravelsController', function($scope){\n+\n+  $scope.showForm = false;\n+\n+  $scope.travels = [\n+    {\n+      title: \"New York\",\n+      text: \"Lorem ipsum dolor sit amet\",\n+      price: 100,\n+      country: null\n+    }\n+  ];\n+\n+  $scope.newTravel = {\n+    title: null,\n+    text: null,\n+    price: null,\n+    country: null\n+  };\n+\n+  $scope.tempTravel = {\n+    title: null,\n+    text: null,\n+    price: null,\n+    country: null\n+  };\n+\n+  function emptyTravel(){\n+    return {\n+      title: null,\n+      text: null,\n+      price: null,\n+      country: null\n+    };\n+  };\n+\n+  $scope.addTravel = function() {\n+    $scope.travels.push(angular.copy($scope.newTravel));\n+    $scope.newTravel = emptyTravel();\n+  };\n+\n+  $scope.deleteTravel = function(travel, index) {","path":"travels_controller.js","position":44,"original_position":44,"commit_id":"f6773969d25e03628dc293206d1babf367e20007","original_commit_id":"f6773969d25e03628dc293206d1babf367e20007","user":{"login":"anaumov","id":1510570,"avatar_url":"https://avatars.githubusercontent.com/u/1510570?v=3","gravatar_id":"","url":"https://api.github.com/users/anaumov","html_url":"https://github.com/anaumov","followers_url":"https://api.github.com/users/anaumov/followers","following_url":"https://api.github.com/users/anaumov/following{/other_user}","gists_url":"https://api.github.com/users/anaumov/gists{/gist_id}","starred_url":"https://api.github.com/users/anaumov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anaumov/subscriptions","organizations_url":"https://api.github.com/users/anaumov/orgs","repos_url":"https://api.github.com/users/anaumov/repos","events_url":"https://api.github.com/users/anaumov/events{/privacy}","received_events_url":"https://api.github.com/users/anaumov/received_events","type":"User","site_admin":false},"body":"первый параметр лишний","created_at":"2015-10-18T21:05:33Z","updated_at":"2015-10-18T21:05:33Z","html_url":"https://github.com/ArseniyKanev/tn-travel/pull/1#discussion_r42326395","pull_request_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/ArseniyKanev/tn-travel/pulls/comments/42326395"},"html":{"href":"https://github.com/ArseniyKanev/tn-travel/pull/1#discussion_r42326395"},"pull_request":{"href":"https://api.github.com/repos/ArseniyKanev/tn-travel/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/ArseniyKanev/tn-travel/pulls/1","id":47997354,"html_url":"https://github.com/ArseniyKanev/tn-travel/pull/1","diff_url":"https://github.com/ArseniyKanev/tn-travel/pull/1.diff","patch_url":"https://github.com/ArseniyKanev/tn-travel/pull/1.patch","issue_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/issues/1","number":1,"state":"open","locked":false,"title":"Exercise 1","user":{"login":"ArseniyKanev","id":9465382,"avatar_url":"https://avatars.githubusercontent.com/u/9465382?v=3","gravatar_id":"","url":"https://api.github.com/users/ArseniyKanev","html_url":"https://github.com/ArseniyKanev","followers_url":"https://api.github.com/users/ArseniyKanev/followers","following_url":"https://api.github.com/users/ArseniyKanev/following{/other_user}","gists_url":"https://api.github.com/users/ArseniyKanev/gists{/gist_id}","starred_url":"https://api.github.com/users/ArseniyKanev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArseniyKanev/subscriptions","organizations_url":"https://api.github.com/users/ArseniyKanev/orgs","repos_url":"https://api.github.com/users/ArseniyKanev/repos","events_url":"https://api.github.com/users/ArseniyKanev/events{/privacy}","received_events_url":"https://api.github.com/users/ArseniyKanev/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-17T23:01:38Z","updated_at":"2015-10-18T21:05:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"84a42a648b6eae5299dcfa56f30305c23dfc25c6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/issues/1/comments","statuses_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/statuses/f6773969d25e03628dc293206d1babf367e20007","head":{"label":"ArseniyKanev:develop","ref":"develop","sha":"f6773969d25e03628dc293206d1babf367e20007","user":{"login":"ArseniyKanev","id":9465382,"avatar_url":"https://avatars.githubusercontent.com/u/9465382?v=3","gravatar_id":"","url":"https://api.github.com/users/ArseniyKanev","html_url":"https://github.com/ArseniyKanev","followers_url":"https://api.github.com/users/ArseniyKanev/followers","following_url":"https://api.github.com/users/ArseniyKanev/following{/other_user}","gists_url":"https://api.github.com/users/ArseniyKanev/gists{/gist_id}","starred_url":"https://api.github.com/users/ArseniyKanev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArseniyKanev/subscriptions","organizations_url":"https://api.github.com/users/ArseniyKanev/orgs","repos_url":"https://api.github.com/users/ArseniyKanev/repos","events_url":"https://api.github.com/users/ArseniyKanev/events{/privacy}","received_events_url":"https://api.github.com/users/ArseniyKanev/received_events","type":"User","site_admin":false},"repo":{"id":44050300,"name":"tn-travel","full_name":"ArseniyKanev/tn-travel","owner":{"login":"ArseniyKanev","id":9465382,"avatar_url":"https://avatars.githubusercontent.com/u/9465382?v=3","gravatar_id":"","url":"https://api.github.com/users/ArseniyKanev","html_url":"https://github.com/ArseniyKanev","followers_url":"https://api.github.com/users/ArseniyKanev/followers","following_url":"https://api.github.com/users/ArseniyKanev/following{/other_user}","gists_url":"https://api.github.com/users/ArseniyKanev/gists{/gist_id}","starred_url":"https://api.github.com/users/ArseniyKanev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArseniyKanev/subscriptions","organizations_url":"https://api.github.com/users/ArseniyKanev/orgs","repos_url":"https://api.github.com/users/ArseniyKanev/repos","events_url":"https://api.github.com/users/ArseniyKanev/events{/privacy}","received_events_url":"https://api.github.com/users/ArseniyKanev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ArseniyKanev/tn-travel","description":"Learning angularjs","fork":false,"url":"https://api.github.com/repos/ArseniyKanev/tn-travel","forks_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/forks","keys_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/teams","hooks_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/hooks","issue_events_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/issues/events{/number}","events_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/events","assignees_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/assignees{/user}","branches_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/branches{/branch}","tags_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/tags","blobs_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/git/refs{/sha}","trees_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/statuses/{sha}","languages_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/languages","stargazers_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/stargazers","contributors_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/contributors","subscribers_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/subscribers","subscription_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/subscription","commits_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/commits{/sha}","git_commits_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/git/commits{/sha}","comments_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/comments{/number}","issue_comment_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/issues/comments{/number}","contents_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/contents/{+path}","compare_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/merges","archive_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/downloads","issues_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/issues{/number}","pulls_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/pulls{/number}","milestones_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/milestones{/number}","notifications_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/labels{/name}","releases_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/releases{/id}","created_at":"2015-10-11T11:56:17Z","updated_at":"2015-10-14T16:26:26Z","pushed_at":"2015-10-18T12:32:35Z","git_url":"git://github.com/ArseniyKanev/tn-travel.git","ssh_url":"git@github.com:ArseniyKanev/tn-travel.git","clone_url":"https://github.com/ArseniyKanev/tn-travel.git","svn_url":"https://github.com/ArseniyKanev/tn-travel","homepage":null,"size":324,"stargazers_count":0,"watchers_count":0,"language":null,"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":"ArseniyKanev:master","ref":"master","sha":"07d8b7bee286b2cc680eb92cf5cb592d4abf69d1","user":{"login":"ArseniyKanev","id":9465382,"avatar_url":"https://avatars.githubusercontent.com/u/9465382?v=3","gravatar_id":"","url":"https://api.github.com/users/ArseniyKanev","html_url":"https://github.com/ArseniyKanev","followers_url":"https://api.github.com/users/ArseniyKanev/followers","following_url":"https://api.github.com/users/ArseniyKanev/following{/other_user}","gists_url":"https://api.github.com/users/ArseniyKanev/gists{/gist_id}","starred_url":"https://api.github.com/users/ArseniyKanev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArseniyKanev/subscriptions","organizations_url":"https://api.github.com/users/ArseniyKanev/orgs","repos_url":"https://api.github.com/users/ArseniyKanev/repos","events_url":"https://api.github.com/users/ArseniyKanev/events{/privacy}","received_events_url":"https://api.github.com/users/ArseniyKanev/received_events","type":"User","site_admin":false},"repo":{"id":44050300,"name":"tn-travel","full_name":"ArseniyKanev/tn-travel","owner":{"login":"ArseniyKanev","id":9465382,"avatar_url":"https://avatars.githubusercontent.com/u/9465382?v=3","gravatar_id":"","url":"https://api.github.com/users/ArseniyKanev","html_url":"https://github.com/ArseniyKanev","followers_url":"https://api.github.com/users/ArseniyKanev/followers","following_url":"https://api.github.com/users/ArseniyKanev/following{/other_user}","gists_url":"https://api.github.com/users/ArseniyKanev/gists{/gist_id}","starred_url":"https://api.github.com/users/ArseniyKanev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArseniyKanev/subscriptions","organizations_url":"https://api.github.com/users/ArseniyKanev/orgs","repos_url":"https://api.github.com/users/ArseniyKanev/repos","events_url":"https://api.github.com/users/ArseniyKanev/events{/privacy}","received_events_url":"https://api.github.com/users/ArseniyKanev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ArseniyKanev/tn-travel","description":"Learning angularjs","fork":false,"url":"https://api.github.com/repos/ArseniyKanev/tn-travel","forks_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/forks","keys_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/teams","hooks_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/hooks","issue_events_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/issues/events{/number}","events_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/events","assignees_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/assignees{/user}","branches_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/branches{/branch}","tags_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/tags","blobs_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/git/refs{/sha}","trees_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/statuses/{sha}","languages_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/languages","stargazers_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/stargazers","contributors_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/contributors","subscribers_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/subscribers","subscription_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/subscription","commits_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/commits{/sha}","git_commits_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/git/commits{/sha}","comments_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/comments{/number}","issue_comment_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/issues/comments{/number}","contents_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/contents/{+path}","compare_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/merges","archive_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/downloads","issues_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/issues{/number}","pulls_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/pulls{/number}","milestones_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/milestones{/number}","notifications_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/labels{/name}","releases_url":"https://api.github.com/repos/ArseniyKanev/tn-travel/releases{/id}","created_at":"2015-10-11T11:56:17Z","updated_at":"2015-10-14T16:26:26Z","pushed_at":"2015-10-18T12:32:35Z","git_url":"git://github.com/ArseniyKanev/tn-travel.git","ssh_url":"git@github.com:ArseniyKanev/tn-travel.git","clone_url":"https://github.com/ArseniyKanev/tn-travel.git","svn_url":"https://github.com/ArseniyKanev/tn-travel","homepage":null,"size":324,"stargazers_count":0,"watchers_count":0,"language":null,"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/ArseniyKanev/tn-travel/pulls/1"},"html":{"href":"https://github.com/ArseniyKanev/tn-travel/pull/1"},"issue":{"href":"https://api.github.com/repos/ArseniyKanev/tn-travel/issues/1"},"comments":{"href":"https://api.github.com/repos/ArseniyKanev/tn-travel/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ArseniyKanev/tn-travel/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ArseniyKanev/tn-travel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ArseniyKanev/tn-travel/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ArseniyKanev/tn-travel/statuses/f6773969d25e03628dc293206d1babf367e20007"}}}}