{"action":"created","comment":{"url":"https://api.github.com/repos/openhq/openhq/pulls/comments/43526573","id":43526573,"diff_hunk":"@@ -0,0 +1,55 @@\n+angular.module(\"OpenHq\").directive(\"taskItem\", function(Task) {\n+  return {\n+    restrict: \"E\",\n+    scope: {\n+      task: '=',\n+      users: '=',\n+    },\n+    template: JST['templates/directives/task_item'],\n+\n+    controller: function($scope){\n+      $scope.editing = false;\n+\n+      $scope.startEditing = function($event) {\n+        $scope.editing = true;\n+        $($event.currentTarget).closest('li').addClass('editing');\n+      }\n+\n+      $scope.stopEditing = function($event) {\n+        $scope.editing = false;\n+        $($event.currentTarget).closest('li').removeClass('editing');\n+      }\n+\n+      $scope.updateTask = function($event, task) {\n+        var $form = $($event.currentTarget),\n+            update_params = {","path":"app/assets/javascripts/directives/task_item.js","position":25,"original_position":25,"commit_id":"2e278761c090d2b79a1a5d0fbbe2e3a27ea5018a","original_commit_id":"f91e989047d73cab02ca51bdcd435a902827ffe7","user":{"login":"phawk","id":456019,"avatar_url":"https://avatars.githubusercontent.com/u/456019?v=3","gravatar_id":"","url":"https://api.github.com/users/phawk","html_url":"https://github.com/phawk","followers_url":"https://api.github.com/users/phawk/followers","following_url":"https://api.github.com/users/phawk/following{/other_user}","gists_url":"https://api.github.com/users/phawk/gists{/gist_id}","starred_url":"https://api.github.com/users/phawk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phawk/subscriptions","organizations_url":"https://api.github.com/users/phawk/orgs","repos_url":"https://api.github.com/users/phawk/repos","events_url":"https://api.github.com/users/phawk/events{/privacy}","received_events_url":"https://api.github.com/users/phawk/received_events","type":"User","site_admin":false},"body":"for the form use `ng-model=\"task.label\"` etc on the form inputs so the form fields get bound to the model then you won’t need to fetch the values","created_at":"2015-10-30T17:04:03Z","updated_at":"2015-10-30T17:04:03Z","html_url":"https://github.com/openhq/openhq/pull/125#discussion_r43526573","pull_request_url":"https://api.github.com/repos/openhq/openhq/pulls/125","_links":{"self":{"href":"https://api.github.com/repos/openhq/openhq/pulls/comments/43526573"},"html":{"href":"https://github.com/openhq/openhq/pull/125#discussion_r43526573"},"pull_request":{"href":"https://api.github.com/repos/openhq/openhq/pulls/125"}}},"pull_request":{"url":"https://api.github.com/repos/openhq/openhq/pulls/125","id":49294828,"html_url":"https://github.com/openhq/openhq/pull/125","diff_url":"https://github.com/openhq/openhq/pull/125.diff","patch_url":"https://github.com/openhq/openhq/pull/125.patch","issue_url":"https://api.github.com/repos/openhq/openhq/issues/125","number":125,"state":"open","locked":false,"title":"Angular tasks","user":{"login":"colinyoung87","id":1223543,"avatar_url":"https://avatars.githubusercontent.com/u/1223543?v=3","gravatar_id":"","url":"https://api.github.com/users/colinyoung87","html_url":"https://github.com/colinyoung87","followers_url":"https://api.github.com/users/colinyoung87/followers","following_url":"https://api.github.com/users/colinyoung87/following{/other_user}","gists_url":"https://api.github.com/users/colinyoung87/gists{/gist_id}","starred_url":"https://api.github.com/users/colinyoung87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinyoung87/subscriptions","organizations_url":"https://api.github.com/users/colinyoung87/orgs","repos_url":"https://api.github.com/users/colinyoung87/repos","events_url":"https://api.github.com/users/colinyoung87/events{/privacy}","received_events_url":"https://api.github.com/users/colinyoung87/received_events","type":"User","site_admin":false},"body":"List, update and delete tasks ","created_at":"2015-10-30T16:57:24Z","updated_at":"2015-10-30T17:04:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b8b64dd986063f0accbcd4851b0daf5838ceded7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openhq/openhq/pulls/125/commits","review_comments_url":"https://api.github.com/repos/openhq/openhq/pulls/125/comments","review_comment_url":"https://api.github.com/repos/openhq/openhq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openhq/openhq/issues/125/comments","statuses_url":"https://api.github.com/repos/openhq/openhq/statuses/2e278761c090d2b79a1a5d0fbbe2e3a27ea5018a","head":{"label":"openhq:angular_tasks","ref":"angular_tasks","sha":"2e278761c090d2b79a1a5d0fbbe2e3a27ea5018a","user":{"login":"openhq","id":12968000,"avatar_url":"https://avatars.githubusercontent.com/u/12968000?v=3","gravatar_id":"","url":"https://api.github.com/users/openhq","html_url":"https://github.com/openhq","followers_url":"https://api.github.com/users/openhq/followers","following_url":"https://api.github.com/users/openhq/following{/other_user}","gists_url":"https://api.github.com/users/openhq/gists{/gist_id}","starred_url":"https://api.github.com/users/openhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openhq/subscriptions","organizations_url":"https://api.github.com/users/openhq/orgs","repos_url":"https://api.github.com/users/openhq/repos","events_url":"https://api.github.com/users/openhq/events{/privacy}","received_events_url":"https://api.github.com/users/openhq/received_events","type":"Organization","site_admin":false},"repo":{"id":30417605,"name":"openhq","full_name":"openhq/openhq","owner":{"login":"openhq","id":12968000,"avatar_url":"https://avatars.githubusercontent.com/u/12968000?v=3","gravatar_id":"","url":"https://api.github.com/users/openhq","html_url":"https://github.com/openhq","followers_url":"https://api.github.com/users/openhq/followers","following_url":"https://api.github.com/users/openhq/following{/other_user}","gists_url":"https://api.github.com/users/openhq/gists{/gist_id}","starred_url":"https://api.github.com/users/openhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openhq/subscriptions","organizations_url":"https://api.github.com/users/openhq/orgs","repos_url":"https://api.github.com/users/openhq/repos","events_url":"https://api.github.com/users/openhq/events{/privacy}","received_events_url":"https://api.github.com/users/openhq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openhq/openhq","description":"Open source project management app","fork":false,"url":"https://api.github.com/repos/openhq/openhq","forks_url":"https://api.github.com/repos/openhq/openhq/forks","keys_url":"https://api.github.com/repos/openhq/openhq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openhq/openhq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openhq/openhq/teams","hooks_url":"https://api.github.com/repos/openhq/openhq/hooks","issue_events_url":"https://api.github.com/repos/openhq/openhq/issues/events{/number}","events_url":"https://api.github.com/repos/openhq/openhq/events","assignees_url":"https://api.github.com/repos/openhq/openhq/assignees{/user}","branches_url":"https://api.github.com/repos/openhq/openhq/branches{/branch}","tags_url":"https://api.github.com/repos/openhq/openhq/tags","blobs_url":"https://api.github.com/repos/openhq/openhq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openhq/openhq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openhq/openhq/git/refs{/sha}","trees_url":"https://api.github.com/repos/openhq/openhq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openhq/openhq/statuses/{sha}","languages_url":"https://api.github.com/repos/openhq/openhq/languages","stargazers_url":"https://api.github.com/repos/openhq/openhq/stargazers","contributors_url":"https://api.github.com/repos/openhq/openhq/contributors","subscribers_url":"https://api.github.com/repos/openhq/openhq/subscribers","subscription_url":"https://api.github.com/repos/openhq/openhq/subscription","commits_url":"https://api.github.com/repos/openhq/openhq/commits{/sha}","git_commits_url":"https://api.github.com/repos/openhq/openhq/git/commits{/sha}","comments_url":"https://api.github.com/repos/openhq/openhq/comments{/number}","issue_comment_url":"https://api.github.com/repos/openhq/openhq/issues/comments{/number}","contents_url":"https://api.github.com/repos/openhq/openhq/contents/{+path}","compare_url":"https://api.github.com/repos/openhq/openhq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openhq/openhq/merges","archive_url":"https://api.github.com/repos/openhq/openhq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openhq/openhq/downloads","issues_url":"https://api.github.com/repos/openhq/openhq/issues{/number}","pulls_url":"https://api.github.com/repos/openhq/openhq/pulls{/number}","milestones_url":"https://api.github.com/repos/openhq/openhq/milestones{/number}","notifications_url":"https://api.github.com/repos/openhq/openhq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openhq/openhq/labels{/name}","releases_url":"https://api.github.com/repos/openhq/openhq/releases{/id}","created_at":"2015-02-06T15:05:04Z","updated_at":"2015-10-22T15:33:07Z","pushed_at":"2015-10-30T17:02:49Z","git_url":"git://github.com/openhq/openhq.git","ssh_url":"git@github.com:openhq/openhq.git","clone_url":"https://github.com/openhq/openhq.git","svn_url":"https://github.com/openhq/openhq","homepage":"https://openhq.io","size":6838,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"openhq:angular_frontend","ref":"angular_frontend","sha":"d4a03a3c67cc83522d3569dcb53e02e5b73db669","user":{"login":"openhq","id":12968000,"avatar_url":"https://avatars.githubusercontent.com/u/12968000?v=3","gravatar_id":"","url":"https://api.github.com/users/openhq","html_url":"https://github.com/openhq","followers_url":"https://api.github.com/users/openhq/followers","following_url":"https://api.github.com/users/openhq/following{/other_user}","gists_url":"https://api.github.com/users/openhq/gists{/gist_id}","starred_url":"https://api.github.com/users/openhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openhq/subscriptions","organizations_url":"https://api.github.com/users/openhq/orgs","repos_url":"https://api.github.com/users/openhq/repos","events_url":"https://api.github.com/users/openhq/events{/privacy}","received_events_url":"https://api.github.com/users/openhq/received_events","type":"Organization","site_admin":false},"repo":{"id":30417605,"name":"openhq","full_name":"openhq/openhq","owner":{"login":"openhq","id":12968000,"avatar_url":"https://avatars.githubusercontent.com/u/12968000?v=3","gravatar_id":"","url":"https://api.github.com/users/openhq","html_url":"https://github.com/openhq","followers_url":"https://api.github.com/users/openhq/followers","following_url":"https://api.github.com/users/openhq/following{/other_user}","gists_url":"https://api.github.com/users/openhq/gists{/gist_id}","starred_url":"https://api.github.com/users/openhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openhq/subscriptions","organizations_url":"https://api.github.com/users/openhq/orgs","repos_url":"https://api.github.com/users/openhq/repos","events_url":"https://api.github.com/users/openhq/events{/privacy}","received_events_url":"https://api.github.com/users/openhq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openhq/openhq","description":"Open source project management app","fork":false,"url":"https://api.github.com/repos/openhq/openhq","forks_url":"https://api.github.com/repos/openhq/openhq/forks","keys_url":"https://api.github.com/repos/openhq/openhq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openhq/openhq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openhq/openhq/teams","hooks_url":"https://api.github.com/repos/openhq/openhq/hooks","issue_events_url":"https://api.github.com/repos/openhq/openhq/issues/events{/number}","events_url":"https://api.github.com/repos/openhq/openhq/events","assignees_url":"https://api.github.com/repos/openhq/openhq/assignees{/user}","branches_url":"https://api.github.com/repos/openhq/openhq/branches{/branch}","tags_url":"https://api.github.com/repos/openhq/openhq/tags","blobs_url":"https://api.github.com/repos/openhq/openhq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openhq/openhq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openhq/openhq/git/refs{/sha}","trees_url":"https://api.github.com/repos/openhq/openhq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openhq/openhq/statuses/{sha}","languages_url":"https://api.github.com/repos/openhq/openhq/languages","stargazers_url":"https://api.github.com/repos/openhq/openhq/stargazers","contributors_url":"https://api.github.com/repos/openhq/openhq/contributors","subscribers_url":"https://api.github.com/repos/openhq/openhq/subscribers","subscription_url":"https://api.github.com/repos/openhq/openhq/subscription","commits_url":"https://api.github.com/repos/openhq/openhq/commits{/sha}","git_commits_url":"https://api.github.com/repos/openhq/openhq/git/commits{/sha}","comments_url":"https://api.github.com/repos/openhq/openhq/comments{/number}","issue_comment_url":"https://api.github.com/repos/openhq/openhq/issues/comments{/number}","contents_url":"https://api.github.com/repos/openhq/openhq/contents/{+path}","compare_url":"https://api.github.com/repos/openhq/openhq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openhq/openhq/merges","archive_url":"https://api.github.com/repos/openhq/openhq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openhq/openhq/downloads","issues_url":"https://api.github.com/repos/openhq/openhq/issues{/number}","pulls_url":"https://api.github.com/repos/openhq/openhq/pulls{/number}","milestones_url":"https://api.github.com/repos/openhq/openhq/milestones{/number}","notifications_url":"https://api.github.com/repos/openhq/openhq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openhq/openhq/labels{/name}","releases_url":"https://api.github.com/repos/openhq/openhq/releases{/id}","created_at":"2015-02-06T15:05:04Z","updated_at":"2015-10-22T15:33:07Z","pushed_at":"2015-10-30T17:02:49Z","git_url":"git://github.com/openhq/openhq.git","ssh_url":"git@github.com:openhq/openhq.git","clone_url":"https://github.com/openhq/openhq.git","svn_url":"https://github.com/openhq/openhq","homepage":"https://openhq.io","size":6838,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openhq/openhq/pulls/125"},"html":{"href":"https://github.com/openhq/openhq/pull/125"},"issue":{"href":"https://api.github.com/repos/openhq/openhq/issues/125"},"comments":{"href":"https://api.github.com/repos/openhq/openhq/issues/125/comments"},"review_comments":{"href":"https://api.github.com/repos/openhq/openhq/pulls/125/comments"},"review_comment":{"href":"https://api.github.com/repos/openhq/openhq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openhq/openhq/pulls/125/commits"},"statuses":{"href":"https://api.github.com/repos/openhq/openhq/statuses/2e278761c090d2b79a1a5d0fbbe2e3a27ea5018a"}}}}