{"action":"created","comment":{"url":"https://api.github.com/repos/rnystrom/GitHawk/pulls/comments/143998098","pull_request_review_id":68589434,"id":143998098,"diff_hunk":"@@ -183,4 +184,16 @@ extension GithubClient {\n         }))\n     }\n     \n+    func deleteComment(owner: String, repo: String, commentID: Int, completion: @escaping (Result<Bool>) -> ()) {\n+        request(Request(path: \"repos/\\(owner)/\\(repo)/issues/comments/\\(commentID)\", method: .delete, completion: { (response, _) in\n+            // As per documentation this endpoint returns no content, so all we can validate is that\n+            // the status code is \"204 No Content\".\n+            if response.response?.statusCode == 204 {\n+                completion(.success(true))\n+            } else {\n+                completion(.error(nil))","path":"Classes/Issues/GithubClient+Issues.swift","position":21,"original_position":21,"commit_id":"dabf2d0ef9b7697025a3eb7feb0bccc9931dcf65","original_commit_id":"dabf2d0ef9b7697025a3eb7feb0bccc9931dcf65","user":{"login":"BasThomas","id":4190298,"avatar_url":"https://avatars0.githubusercontent.com/u/4190298?v=4","gravatar_id":"","url":"https://api.github.com/users/BasThomas","html_url":"https://github.com/BasThomas","followers_url":"https://api.github.com/users/BasThomas/followers","following_url":"https://api.github.com/users/BasThomas/following{/other_user}","gists_url":"https://api.github.com/users/BasThomas/gists{/gist_id}","starred_url":"https://api.github.com/users/BasThomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BasThomas/subscriptions","organizations_url":"https://api.github.com/users/BasThomas/orgs","repos_url":"https://api.github.com/users/BasThomas/repos","events_url":"https://api.github.com/users/BasThomas/events{/privacy}","received_events_url":"https://api.github.com/users/BasThomas/received_events","type":"User","site_admin":false},"body":"I think we should propagate the error here.","created_at":"2017-10-11T12:41:53Z","updated_at":"2017-10-11T12:50:16Z","html_url":"https://github.com/rnystrom/GitHawk/pull/530#discussion_r143998098","pull_request_url":"https://api.github.com/repos/rnystrom/GitHawk/pulls/530","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/rnystrom/GitHawk/pulls/comments/143998098"},"html":{"href":"https://github.com/rnystrom/GitHawk/pull/530#discussion_r143998098"},"pull_request":{"href":"https://api.github.com/repos/rnystrom/GitHawk/pulls/530"}}},"pull_request":{"url":"https://api.github.com/repos/rnystrom/GitHawk/pulls/530","id":145930234,"html_url":"https://github.com/rnystrom/GitHawk/pull/530","diff_url":"https://github.com/rnystrom/GitHawk/pull/530.diff","patch_url":"https://github.com/rnystrom/GitHawk/pull/530.patch","issue_url":"https://api.github.com/repos/rnystrom/GitHawk/issues/530","number":530,"state":"open","locked":false,"title":"Add ability to delete comments","user":{"login":"Sherlouk","id":15193942,"avatar_url":"https://avatars2.githubusercontent.com/u/15193942?v=4","gravatar_id":"","url":"https://api.github.com/users/Sherlouk","html_url":"https://github.com/Sherlouk","followers_url":"https://api.github.com/users/Sherlouk/followers","following_url":"https://api.github.com/users/Sherlouk/following{/other_user}","gists_url":"https://api.github.com/users/Sherlouk/gists{/gist_id}","starred_url":"https://api.github.com/users/Sherlouk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sherlouk/subscriptions","organizations_url":"https://api.github.com/users/Sherlouk/orgs","repos_url":"https://api.github.com/users/Sherlouk/repos","events_url":"https://api.github.com/users/Sherlouk/events{/privacy}","received_events_url":"https://api.github.com/users/Sherlouk/received_events","type":"User","site_admin":false},"body":"Closes #144 ","created_at":"2017-10-11T12:05:12Z","updated_at":"2017-10-11T12:50:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"710f793fab9015a5566213af16924bfffd086969","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/rnystrom/GitHawk/pulls/530/commits","review_comments_url":"https://api.github.com/repos/rnystrom/GitHawk/pulls/530/comments","review_comment_url":"https://api.github.com/repos/rnystrom/GitHawk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rnystrom/GitHawk/issues/530/comments","statuses_url":"https://api.github.com/repos/rnystrom/GitHawk/statuses/dabf2d0ef9b7697025a3eb7feb0bccc9931dcf65","head":{"label":"rnystrom:deleteComment","ref":"deleteComment","sha":"dabf2d0ef9b7697025a3eb7feb0bccc9931dcf65","user":{"login":"rnystrom","id":739696,"avatar_url":"https://avatars2.githubusercontent.com/u/739696?v=4","gravatar_id":"","url":"https://api.github.com/users/rnystrom","html_url":"https://github.com/rnystrom","followers_url":"https://api.github.com/users/rnystrom/followers","following_url":"https://api.github.com/users/rnystrom/following{/other_user}","gists_url":"https://api.github.com/users/rnystrom/gists{/gist_id}","starred_url":"https://api.github.com/users/rnystrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnystrom/subscriptions","organizations_url":"https://api.github.com/users/rnystrom/orgs","repos_url":"https://api.github.com/users/rnystrom/repos","events_url":"https://api.github.com/users/rnystrom/events{/privacy}","received_events_url":"https://api.github.com/users/rnystrom/received_events","type":"User","site_admin":false},"repo":{"id":89921801,"name":"GitHawk","full_name":"rnystrom/GitHawk","owner":{"login":"rnystrom","id":739696,"avatar_url":"https://avatars2.githubusercontent.com/u/739696?v=4","gravatar_id":"","url":"https://api.github.com/users/rnystrom","html_url":"https://github.com/rnystrom","followers_url":"https://api.github.com/users/rnystrom/followers","following_url":"https://api.github.com/users/rnystrom/following{/other_user}","gists_url":"https://api.github.com/users/rnystrom/gists{/gist_id}","starred_url":"https://api.github.com/users/rnystrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnystrom/subscriptions","organizations_url":"https://api.github.com/users/rnystrom/orgs","repos_url":"https://api.github.com/users/rnystrom/repos","events_url":"https://api.github.com/users/rnystrom/events{/privacy}","received_events_url":"https://api.github.com/users/rnystrom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rnystrom/GitHawk","description":"A GitHub project manager app for iOS.","fork":false,"url":"https://api.github.com/repos/rnystrom/GitHawk","forks_url":"https://api.github.com/repos/rnystrom/GitHawk/forks","keys_url":"https://api.github.com/repos/rnystrom/GitHawk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rnystrom/GitHawk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rnystrom/GitHawk/teams","hooks_url":"https://api.github.com/repos/rnystrom/GitHawk/hooks","issue_events_url":"https://api.github.com/repos/rnystrom/GitHawk/issues/events{/number}","events_url":"https://api.github.com/repos/rnystrom/GitHawk/events","assignees_url":"https://api.github.com/repos/rnystrom/GitHawk/assignees{/user}","branches_url":"https://api.github.com/repos/rnystrom/GitHawk/branches{/branch}","tags_url":"https://api.github.com/repos/rnystrom/GitHawk/tags","blobs_url":"https://api.github.com/repos/rnystrom/GitHawk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rnystrom/GitHawk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rnystrom/GitHawk/git/refs{/sha}","trees_url":"https://api.github.com/repos/rnystrom/GitHawk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rnystrom/GitHawk/statuses/{sha}","languages_url":"https://api.github.com/repos/rnystrom/GitHawk/languages","stargazers_url":"https://api.github.com/repos/rnystrom/GitHawk/stargazers","contributors_url":"https://api.github.com/repos/rnystrom/GitHawk/contributors","subscribers_url":"https://api.github.com/repos/rnystrom/GitHawk/subscribers","subscription_url":"https://api.github.com/repos/rnystrom/GitHawk/subscription","commits_url":"https://api.github.com/repos/rnystrom/GitHawk/commits{/sha}","git_commits_url":"https://api.github.com/repos/rnystrom/GitHawk/git/commits{/sha}","comments_url":"https://api.github.com/repos/rnystrom/GitHawk/comments{/number}","issue_comment_url":"https://api.github.com/repos/rnystrom/GitHawk/issues/comments{/number}","contents_url":"https://api.github.com/repos/rnystrom/GitHawk/contents/{+path}","compare_url":"https://api.github.com/repos/rnystrom/GitHawk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rnystrom/GitHawk/merges","archive_url":"https://api.github.com/repos/rnystrom/GitHawk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rnystrom/GitHawk/downloads","issues_url":"https://api.github.com/repos/rnystrom/GitHawk/issues{/number}","pulls_url":"https://api.github.com/repos/rnystrom/GitHawk/pulls{/number}","milestones_url":"https://api.github.com/repos/rnystrom/GitHawk/milestones{/number}","notifications_url":"https://api.github.com/repos/rnystrom/GitHawk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rnystrom/GitHawk/labels{/name}","releases_url":"https://api.github.com/repos/rnystrom/GitHawk/releases{/id}","deployments_url":"https://api.github.com/repos/rnystrom/GitHawk/deployments","created_at":"2017-05-01T12:21:48Z","updated_at":"2017-10-10T20:33:37Z","pushed_at":"2017-10-11T12:05:13Z","git_url":"git://github.com/rnystrom/GitHawk.git","ssh_url":"git@github.com:rnystrom/GitHawk.git","clone_url":"https://github.com/rnystrom/GitHawk.git","svn_url":"https://github.com/rnystrom/GitHawk","homepage":"http://githawk.com","size":66931,"stargazers_count":344,"watchers_count":344,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":44,"mirror_url":null,"open_issues_count":175,"forks":44,"open_issues":175,"watchers":344,"default_branch":"master"}},"base":{"label":"rnystrom:master","ref":"master","sha":"dc80ac4d2aed48686f050b6e8aa6c42b96523192","user":{"login":"rnystrom","id":739696,"avatar_url":"https://avatars2.githubusercontent.com/u/739696?v=4","gravatar_id":"","url":"https://api.github.com/users/rnystrom","html_url":"https://github.com/rnystrom","followers_url":"https://api.github.com/users/rnystrom/followers","following_url":"https://api.github.com/users/rnystrom/following{/other_user}","gists_url":"https://api.github.com/users/rnystrom/gists{/gist_id}","starred_url":"https://api.github.com/users/rnystrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnystrom/subscriptions","organizations_url":"https://api.github.com/users/rnystrom/orgs","repos_url":"https://api.github.com/users/rnystrom/repos","events_url":"https://api.github.com/users/rnystrom/events{/privacy}","received_events_url":"https://api.github.com/users/rnystrom/received_events","type":"User","site_admin":false},"repo":{"id":89921801,"name":"GitHawk","full_name":"rnystrom/GitHawk","owner":{"login":"rnystrom","id":739696,"avatar_url":"https://avatars2.githubusercontent.com/u/739696?v=4","gravatar_id":"","url":"https://api.github.com/users/rnystrom","html_url":"https://github.com/rnystrom","followers_url":"https://api.github.com/users/rnystrom/followers","following_url":"https://api.github.com/users/rnystrom/following{/other_user}","gists_url":"https://api.github.com/users/rnystrom/gists{/gist_id}","starred_url":"https://api.github.com/users/rnystrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnystrom/subscriptions","organizations_url":"https://api.github.com/users/rnystrom/orgs","repos_url":"https://api.github.com/users/rnystrom/repos","events_url":"https://api.github.com/users/rnystrom/events{/privacy}","received_events_url":"https://api.github.com/users/rnystrom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rnystrom/GitHawk","description":"A GitHub project manager app for iOS.","fork":false,"url":"https://api.github.com/repos/rnystrom/GitHawk","forks_url":"https://api.github.com/repos/rnystrom/GitHawk/forks","keys_url":"https://api.github.com/repos/rnystrom/GitHawk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rnystrom/GitHawk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rnystrom/GitHawk/teams","hooks_url":"https://api.github.com/repos/rnystrom/GitHawk/hooks","issue_events_url":"https://api.github.com/repos/rnystrom/GitHawk/issues/events{/number}","events_url":"https://api.github.com/repos/rnystrom/GitHawk/events","assignees_url":"https://api.github.com/repos/rnystrom/GitHawk/assignees{/user}","branches_url":"https://api.github.com/repos/rnystrom/GitHawk/branches{/branch}","tags_url":"https://api.github.com/repos/rnystrom/GitHawk/tags","blobs_url":"https://api.github.com/repos/rnystrom/GitHawk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rnystrom/GitHawk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rnystrom/GitHawk/git/refs{/sha}","trees_url":"https://api.github.com/repos/rnystrom/GitHawk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rnystrom/GitHawk/statuses/{sha}","languages_url":"https://api.github.com/repos/rnystrom/GitHawk/languages","stargazers_url":"https://api.github.com/repos/rnystrom/GitHawk/stargazers","contributors_url":"https://api.github.com/repos/rnystrom/GitHawk/contributors","subscribers_url":"https://api.github.com/repos/rnystrom/GitHawk/subscribers","subscription_url":"https://api.github.com/repos/rnystrom/GitHawk/subscription","commits_url":"https://api.github.com/repos/rnystrom/GitHawk/commits{/sha}","git_commits_url":"https://api.github.com/repos/rnystrom/GitHawk/git/commits{/sha}","comments_url":"https://api.github.com/repos/rnystrom/GitHawk/comments{/number}","issue_comment_url":"https://api.github.com/repos/rnystrom/GitHawk/issues/comments{/number}","contents_url":"https://api.github.com/repos/rnystrom/GitHawk/contents/{+path}","compare_url":"https://api.github.com/repos/rnystrom/GitHawk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rnystrom/GitHawk/merges","archive_url":"https://api.github.com/repos/rnystrom/GitHawk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rnystrom/GitHawk/downloads","issues_url":"https://api.github.com/repos/rnystrom/GitHawk/issues{/number}","pulls_url":"https://api.github.com/repos/rnystrom/GitHawk/pulls{/number}","milestones_url":"https://api.github.com/repos/rnystrom/GitHawk/milestones{/number}","notifications_url":"https://api.github.com/repos/rnystrom/GitHawk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rnystrom/GitHawk/labels{/name}","releases_url":"https://api.github.com/repos/rnystrom/GitHawk/releases{/id}","deployments_url":"https://api.github.com/repos/rnystrom/GitHawk/deployments","created_at":"2017-05-01T12:21:48Z","updated_at":"2017-10-10T20:33:37Z","pushed_at":"2017-10-11T12:05:13Z","git_url":"git://github.com/rnystrom/GitHawk.git","ssh_url":"git@github.com:rnystrom/GitHawk.git","clone_url":"https://github.com/rnystrom/GitHawk.git","svn_url":"https://github.com/rnystrom/GitHawk","homepage":"http://githawk.com","size":66931,"stargazers_count":344,"watchers_count":344,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":44,"mirror_url":null,"open_issues_count":175,"forks":44,"open_issues":175,"watchers":344,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rnystrom/GitHawk/pulls/530"},"html":{"href":"https://github.com/rnystrom/GitHawk/pull/530"},"issue":{"href":"https://api.github.com/repos/rnystrom/GitHawk/issues/530"},"comments":{"href":"https://api.github.com/repos/rnystrom/GitHawk/issues/530/comments"},"review_comments":{"href":"https://api.github.com/repos/rnystrom/GitHawk/pulls/530/comments"},"review_comment":{"href":"https://api.github.com/repos/rnystrom/GitHawk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rnystrom/GitHawk/pulls/530/commits"},"statuses":{"href":"https://api.github.com/repos/rnystrom/GitHawk/statuses/dabf2d0ef9b7697025a3eb7feb0bccc9931dcf65"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"BasThomas"}}