{"action":"created","comment":{"url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/pulls/comments/86146462","pull_request_review_id":6815038,"id":86146462,"diff_hunk":"@@ -65,8 +68,15 @@ getBreadcrumb = function () {\n         \n         var data = serialiseForm(frm);\n \n+        <% \n+            var requestType = \"POST\";\n+            if (typeof comment != \"undefined\") { ","path":"views/pages/addComment.ejs","position":21,"original_position":21,"commit_id":"b536b106908b6de236af7fcfd116963ab95636b3","original_commit_id":"b536b106908b6de236af7fcfd116963ab95636b3","user":{"login":"xjedam","id":1146446,"avatar_url":"https://avatars.githubusercontent.com/u/1146446?v=3","gravatar_id":"","url":"https://api.github.com/users/xjedam","html_url":"https://github.com/xjedam","followers_url":"https://api.github.com/users/xjedam/followers","following_url":"https://api.github.com/users/xjedam/following{/other_user}","gists_url":"https://api.github.com/users/xjedam/gists{/gist_id}","starred_url":"https://api.github.com/users/xjedam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xjedam/subscriptions","organizations_url":"https://api.github.com/users/xjedam/orgs","repos_url":"https://api.github.com/users/xjedam/repos","events_url":"https://api.github.com/users/xjedam/events{/privacy}","received_events_url":"https://api.github.com/users/xjedam/received_events","type":"User","site_admin":false},"body":"Handling creates and updates with the same template creates a lot of convoluted logic here. If you do that you need to generate javascript and add some if-ology (note that google analytics event is also set to add right now). Think it would be best to create a separate template even though it will be similar - it would be easier to maintain in the future (setting different page titles for add and update, doing different styles etc.) ","created_at":"2016-11-02T14:00:14Z","updated_at":"2016-11-02T14:03:53Z","html_url":"https://github.com/KainosSoftwareLtd/TechRadar/pull/48#discussion_r86146462","pull_request_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/pulls/comments/86146462"},"html":{"href":"https://github.com/KainosSoftwareLtd/TechRadar/pull/48#discussion_r86146462"},"pull_request":{"href":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/pulls/48","id":90001609,"html_url":"https://github.com/KainosSoftwareLtd/TechRadar/pull/48","diff_url":"https://github.com/KainosSoftwareLtd/TechRadar/pull/48.diff","patch_url":"https://github.com/KainosSoftwareLtd/TechRadar/pull/48.patch","issue_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/issues/48","number":48,"state":"open","locked":false,"title":"Add the ability to edit comments","user":{"login":"adrianz-kainos","id":20107321,"avatar_url":"https://avatars.githubusercontent.com/u/20107321?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianz-kainos","html_url":"https://github.com/adrianz-kainos","followers_url":"https://api.github.com/users/adrianz-kainos/followers","following_url":"https://api.github.com/users/adrianz-kainos/following{/other_user}","gists_url":"https://api.github.com/users/adrianz-kainos/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianz-kainos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianz-kainos/subscriptions","organizations_url":"https://api.github.com/users/adrianz-kainos/orgs","repos_url":"https://api.github.com/users/adrianz-kainos/repos","events_url":"https://api.github.com/users/adrianz-kainos/events{/privacy}","received_events_url":"https://api.github.com/users/adrianz-kainos/received_events","type":"User","site_admin":false},"body":"Resolves #29 \n","created_at":"2016-10-19T12:44:27Z","updated_at":"2016-11-02T14:03:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"53b67144e8a12923c966a638db99bde428bcc31a","assignee":{"login":"gpimblott","id":2563249,"avatar_url":"https://avatars.githubusercontent.com/u/2563249?v=3","gravatar_id":"","url":"https://api.github.com/users/gpimblott","html_url":"https://github.com/gpimblott","followers_url":"https://api.github.com/users/gpimblott/followers","following_url":"https://api.github.com/users/gpimblott/following{/other_user}","gists_url":"https://api.github.com/users/gpimblott/gists{/gist_id}","starred_url":"https://api.github.com/users/gpimblott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpimblott/subscriptions","organizations_url":"https://api.github.com/users/gpimblott/orgs","repos_url":"https://api.github.com/users/gpimblott/repos","events_url":"https://api.github.com/users/gpimblott/events{/privacy}","received_events_url":"https://api.github.com/users/gpimblott/received_events","type":"User","site_admin":false},"assignees":[{"login":"gpimblott","id":2563249,"avatar_url":"https://avatars.githubusercontent.com/u/2563249?v=3","gravatar_id":"","url":"https://api.github.com/users/gpimblott","html_url":"https://github.com/gpimblott","followers_url":"https://api.github.com/users/gpimblott/followers","following_url":"https://api.github.com/users/gpimblott/following{/other_user}","gists_url":"https://api.github.com/users/gpimblott/gists{/gist_id}","starred_url":"https://api.github.com/users/gpimblott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpimblott/subscriptions","organizations_url":"https://api.github.com/users/gpimblott/orgs","repos_url":"https://api.github.com/users/gpimblott/repos","events_url":"https://api.github.com/users/gpimblott/events{/privacy}","received_events_url":"https://api.github.com/users/gpimblott/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/pulls/48/commits","review_comments_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/pulls/48/comments","review_comment_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/issues/48/comments","statuses_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/statuses/b536b106908b6de236af7fcfd116963ab95636b3","head":{"label":"KainosSoftwareLtd:feature/edit-comments","ref":"feature/edit-comments","sha":"b536b106908b6de236af7fcfd116963ab95636b3","user":{"login":"KainosSoftwareLtd","id":1921909,"avatar_url":"https://avatars.githubusercontent.com/u/1921909?v=3","gravatar_id":"","url":"https://api.github.com/users/KainosSoftwareLtd","html_url":"https://github.com/KainosSoftwareLtd","followers_url":"https://api.github.com/users/KainosSoftwareLtd/followers","following_url":"https://api.github.com/users/KainosSoftwareLtd/following{/other_user}","gists_url":"https://api.github.com/users/KainosSoftwareLtd/gists{/gist_id}","starred_url":"https://api.github.com/users/KainosSoftwareLtd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KainosSoftwareLtd/subscriptions","organizations_url":"https://api.github.com/users/KainosSoftwareLtd/orgs","repos_url":"https://api.github.com/users/KainosSoftwareLtd/repos","events_url":"https://api.github.com/users/KainosSoftwareLtd/events{/privacy}","received_events_url":"https://api.github.com/users/KainosSoftwareLtd/received_events","type":"Organization","site_admin":false},"repo":{"id":68013778,"name":"TechRadar","full_name":"KainosSoftwareLtd/TechRadar","owner":{"login":"KainosSoftwareLtd","id":1921909,"avatar_url":"https://avatars.githubusercontent.com/u/1921909?v=3","gravatar_id":"","url":"https://api.github.com/users/KainosSoftwareLtd","html_url":"https://github.com/KainosSoftwareLtd","followers_url":"https://api.github.com/users/KainosSoftwareLtd/followers","following_url":"https://api.github.com/users/KainosSoftwareLtd/following{/other_user}","gists_url":"https://api.github.com/users/KainosSoftwareLtd/gists{/gist_id}","starred_url":"https://api.github.com/users/KainosSoftwareLtd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KainosSoftwareLtd/subscriptions","organizations_url":"https://api.github.com/users/KainosSoftwareLtd/orgs","repos_url":"https://api.github.com/users/KainosSoftwareLtd/repos","events_url":"https://api.github.com/users/KainosSoftwareLtd/events{/privacy}","received_events_url":"https://api.github.com/users/KainosSoftwareLtd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/KainosSoftwareLtd/TechRadar","description":"Community technology management and decision making tool","fork":true,"url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar","forks_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/forks","keys_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/teams","hooks_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/hooks","issue_events_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/issues/events{/number}","events_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/events","assignees_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/assignees{/user}","branches_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/branches{/branch}","tags_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/tags","blobs_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/git/refs{/sha}","trees_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/statuses/{sha}","languages_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/languages","stargazers_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/stargazers","contributors_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/contributors","subscribers_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/subscribers","subscription_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/subscription","commits_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/commits{/sha}","git_commits_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/git/commits{/sha}","comments_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/comments{/number}","issue_comment_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/issues/comments{/number}","contents_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/contents/{+path}","compare_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/merges","archive_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/downloads","issues_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/issues{/number}","pulls_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/pulls{/number}","milestones_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/milestones{/number}","notifications_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/labels{/name}","releases_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/releases{/id}","deployments_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/deployments","created_at":"2016-09-12T13:57:53Z","updated_at":"2016-09-20T15:08:37Z","pushed_at":"2016-10-31T16:00:34Z","git_url":"git://github.com/KainosSoftwareLtd/TechRadar.git","ssh_url":"git@github.com:KainosSoftwareLtd/TechRadar.git","clone_url":"https://github.com/KainosSoftwareLtd/TechRadar.git","svn_url":"https://github.com/KainosSoftwareLtd/TechRadar","homepage":"","size":2359,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":22,"forks":0,"open_issues":22,"watchers":1,"default_branch":"master"}},"base":{"label":"KainosSoftwareLtd:master","ref":"master","sha":"39df2a94a6f965f24719e5658855b947e3cfbe5f","user":{"login":"KainosSoftwareLtd","id":1921909,"avatar_url":"https://avatars.githubusercontent.com/u/1921909?v=3","gravatar_id":"","url":"https://api.github.com/users/KainosSoftwareLtd","html_url":"https://github.com/KainosSoftwareLtd","followers_url":"https://api.github.com/users/KainosSoftwareLtd/followers","following_url":"https://api.github.com/users/KainosSoftwareLtd/following{/other_user}","gists_url":"https://api.github.com/users/KainosSoftwareLtd/gists{/gist_id}","starred_url":"https://api.github.com/users/KainosSoftwareLtd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KainosSoftwareLtd/subscriptions","organizations_url":"https://api.github.com/users/KainosSoftwareLtd/orgs","repos_url":"https://api.github.com/users/KainosSoftwareLtd/repos","events_url":"https://api.github.com/users/KainosSoftwareLtd/events{/privacy}","received_events_url":"https://api.github.com/users/KainosSoftwareLtd/received_events","type":"Organization","site_admin":false},"repo":{"id":68013778,"name":"TechRadar","full_name":"KainosSoftwareLtd/TechRadar","owner":{"login":"KainosSoftwareLtd","id":1921909,"avatar_url":"https://avatars.githubusercontent.com/u/1921909?v=3","gravatar_id":"","url":"https://api.github.com/users/KainosSoftwareLtd","html_url":"https://github.com/KainosSoftwareLtd","followers_url":"https://api.github.com/users/KainosSoftwareLtd/followers","following_url":"https://api.github.com/users/KainosSoftwareLtd/following{/other_user}","gists_url":"https://api.github.com/users/KainosSoftwareLtd/gists{/gist_id}","starred_url":"https://api.github.com/users/KainosSoftwareLtd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KainosSoftwareLtd/subscriptions","organizations_url":"https://api.github.com/users/KainosSoftwareLtd/orgs","repos_url":"https://api.github.com/users/KainosSoftwareLtd/repos","events_url":"https://api.github.com/users/KainosSoftwareLtd/events{/privacy}","received_events_url":"https://api.github.com/users/KainosSoftwareLtd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/KainosSoftwareLtd/TechRadar","description":"Community technology management and decision making tool","fork":true,"url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar","forks_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/forks","keys_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/teams","hooks_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/hooks","issue_events_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/issues/events{/number}","events_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/events","assignees_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/assignees{/user}","branches_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/branches{/branch}","tags_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/tags","blobs_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/git/refs{/sha}","trees_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/statuses/{sha}","languages_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/languages","stargazers_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/stargazers","contributors_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/contributors","subscribers_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/subscribers","subscription_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/subscription","commits_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/commits{/sha}","git_commits_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/git/commits{/sha}","comments_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/comments{/number}","issue_comment_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/issues/comments{/number}","contents_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/contents/{+path}","compare_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/merges","archive_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/downloads","issues_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/issues{/number}","pulls_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/pulls{/number}","milestones_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/milestones{/number}","notifications_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/labels{/name}","releases_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/releases{/id}","deployments_url":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/deployments","created_at":"2016-09-12T13:57:53Z","updated_at":"2016-09-20T15:08:37Z","pushed_at":"2016-10-31T16:00:34Z","git_url":"git://github.com/KainosSoftwareLtd/TechRadar.git","ssh_url":"git@github.com:KainosSoftwareLtd/TechRadar.git","clone_url":"https://github.com/KainosSoftwareLtd/TechRadar.git","svn_url":"https://github.com/KainosSoftwareLtd/TechRadar","homepage":"","size":2359,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":22,"forks":0,"open_issues":22,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/pulls/48"},"html":{"href":"https://github.com/KainosSoftwareLtd/TechRadar/pull/48"},"issue":{"href":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/issues/48"},"comments":{"href":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/KainosSoftwareLtd/TechRadar/statuses/b536b106908b6de236af7fcfd116963ab95636b3"}}}}
{"actor":{"display_login":"xjedam"}}