{"action":"created","comment":{"url":"https://api.github.com/repos/beme/abide/pulls/comments/173938319","pull_request_review_id":103208319,"id":173938319,"diff_hunk":"@@ -0,0 +1,31 @@\n+package abide\n+\n+import \"testing\"\n+\n+var contentTypeTestCases = []struct {\n+\tinput  string\n+\toutput bool\n+}{\n+\t{\"application/json\", true},\n+\t{\"application/json; charset=utf-8\", true},\n+\t{\"application/vnd.foo.bar.v2+json\", true},\n+\t{\"application/application/json\", false},\n+\t{\"application/json/json\", false},\n+\t{\"application/jsoner; charset=utf-8\", false},\n+\t{\"application/jsoner\", false},\n+\t{\"application/vnd.foo.bar.v2+jsoner\", false},\n+\t{\"application/xml\", false},\n+\t{\"text/html\", false},\n+\t{\"\", false},\n+}\n+\n+func TestContentTypeIsJSON(test *testing.T) {\n+\tfor _, testCase := range contentTypeTestCases {\n+","path":"assert_test.go","position":24,"original_position":24,"commit_id":"0bfefd61174b33537b6f45e929186f205827b842","original_commit_id":"0bfefd61174b33537b6f45e929186f205827b842","user":{"login":"sjkaliski","id":602845,"avatar_url":"https://avatars0.githubusercontent.com/u/602845?v=4","gravatar_id":"","url":"https://api.github.com/users/sjkaliski","html_url":"https://github.com/sjkaliski","followers_url":"https://api.github.com/users/sjkaliski/followers","following_url":"https://api.github.com/users/sjkaliski/following{/other_user}","gists_url":"https://api.github.com/users/sjkaliski/gists{/gist_id}","starred_url":"https://api.github.com/users/sjkaliski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjkaliski/subscriptions","organizations_url":"https://api.github.com/users/sjkaliski/orgs","repos_url":"https://api.github.com/users/sjkaliski/repos","events_url":"https://api.github.com/users/sjkaliski/events{/privacy}","received_events_url":"https://api.github.com/users/sjkaliski/received_events","type":"User","site_admin":false},"body":"Remove newline please","created_at":"2018-03-12T20:37:12Z","updated_at":"2018-03-12T20:37:41Z","html_url":"https://github.com/beme/abide/pull/32#discussion_r173938319","pull_request_url":"https://api.github.com/repos/beme/abide/pulls/32","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/beme/abide/pulls/comments/173938319"},"html":{"href":"https://github.com/beme/abide/pull/32#discussion_r173938319"},"pull_request":{"href":"https://api.github.com/repos/beme/abide/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/beme/abide/pulls/32","id":173562023,"html_url":"https://github.com/beme/abide/pull/32","diff_url":"https://github.com/beme/abide/pull/32.diff","patch_url":"https://github.com/beme/abide/pull/32.patch","issue_url":"https://api.github.com/repos/beme/abide/issues/32","number":32,"state":"open","locked":false,"title":"Better snapshot output and JSON content-type verification","user":{"login":"meydjer","id":584186,"avatar_url":"https://avatars0.githubusercontent.com/u/584186?v=4","gravatar_id":"","url":"https://api.github.com/users/meydjer","html_url":"https://github.com/meydjer","followers_url":"https://api.github.com/users/meydjer/followers","following_url":"https://api.github.com/users/meydjer/following{/other_user}","gists_url":"https://api.github.com/users/meydjer/gists{/gist_id}","starred_url":"https://api.github.com/users/meydjer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meydjer/subscriptions","organizations_url":"https://api.github.com/users/meydjer/orgs","repos_url":"https://api.github.com/users/meydjer/repos","events_url":"https://api.github.com/users/meydjer/events{/privacy}","received_events_url":"https://api.github.com/users/meydjer/received_events","type":"User","site_admin":false},"body":"When you have a lot of snapshots with similar outputs is a little bit hard to differentiate them.\r\n\r\nThis commit improves readability by adding the snapshot ID to the output.","created_at":"2018-03-07T20:16:38Z","updated_at":"2018-03-12T20:37:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a364ba19ad02c34cd571e5c85b43fe25f3ab437","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/beme/abide/pulls/32/commits","review_comments_url":"https://api.github.com/repos/beme/abide/pulls/32/comments","review_comment_url":"https://api.github.com/repos/beme/abide/pulls/comments{/number}","comments_url":"https://api.github.com/repos/beme/abide/issues/32/comments","statuses_url":"https://api.github.com/repos/beme/abide/statuses/0bfefd61174b33537b6f45e929186f205827b842","head":{"label":"meydjer:master","ref":"master","sha":"0bfefd61174b33537b6f45e929186f205827b842","user":{"login":"meydjer","id":584186,"avatar_url":"https://avatars0.githubusercontent.com/u/584186?v=4","gravatar_id":"","url":"https://api.github.com/users/meydjer","html_url":"https://github.com/meydjer","followers_url":"https://api.github.com/users/meydjer/followers","following_url":"https://api.github.com/users/meydjer/following{/other_user}","gists_url":"https://api.github.com/users/meydjer/gists{/gist_id}","starred_url":"https://api.github.com/users/meydjer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meydjer/subscriptions","organizations_url":"https://api.github.com/users/meydjer/orgs","repos_url":"https://api.github.com/users/meydjer/repos","events_url":"https://api.github.com/users/meydjer/events{/privacy}","received_events_url":"https://api.github.com/users/meydjer/received_events","type":"User","site_admin":false},"repo":{"id":124288521,"name":"abide","full_name":"meydjer/abide","owner":{"login":"meydjer","id":584186,"avatar_url":"https://avatars0.githubusercontent.com/u/584186?v=4","gravatar_id":"","url":"https://api.github.com/users/meydjer","html_url":"https://github.com/meydjer","followers_url":"https://api.github.com/users/meydjer/followers","following_url":"https://api.github.com/users/meydjer/following{/other_user}","gists_url":"https://api.github.com/users/meydjer/gists{/gist_id}","starred_url":"https://api.github.com/users/meydjer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meydjer/subscriptions","organizations_url":"https://api.github.com/users/meydjer/orgs","repos_url":"https://api.github.com/users/meydjer/repos","events_url":"https://api.github.com/users/meydjer/events{/privacy}","received_events_url":"https://api.github.com/users/meydjer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meydjer/abide","description":"📸 A Go testing utility for http response snapshots.","fork":true,"url":"https://api.github.com/repos/meydjer/abide","forks_url":"https://api.github.com/repos/meydjer/abide/forks","keys_url":"https://api.github.com/repos/meydjer/abide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meydjer/abide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meydjer/abide/teams","hooks_url":"https://api.github.com/repos/meydjer/abide/hooks","issue_events_url":"https://api.github.com/repos/meydjer/abide/issues/events{/number}","events_url":"https://api.github.com/repos/meydjer/abide/events","assignees_url":"https://api.github.com/repos/meydjer/abide/assignees{/user}","branches_url":"https://api.github.com/repos/meydjer/abide/branches{/branch}","tags_url":"https://api.github.com/repos/meydjer/abide/tags","blobs_url":"https://api.github.com/repos/meydjer/abide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meydjer/abide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meydjer/abide/git/refs{/sha}","trees_url":"https://api.github.com/repos/meydjer/abide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meydjer/abide/statuses/{sha}","languages_url":"https://api.github.com/repos/meydjer/abide/languages","stargazers_url":"https://api.github.com/repos/meydjer/abide/stargazers","contributors_url":"https://api.github.com/repos/meydjer/abide/contributors","subscribers_url":"https://api.github.com/repos/meydjer/abide/subscribers","subscription_url":"https://api.github.com/repos/meydjer/abide/subscription","commits_url":"https://api.github.com/repos/meydjer/abide/commits{/sha}","git_commits_url":"https://api.github.com/repos/meydjer/abide/git/commits{/sha}","comments_url":"https://api.github.com/repos/meydjer/abide/comments{/number}","issue_comment_url":"https://api.github.com/repos/meydjer/abide/issues/comments{/number}","contents_url":"https://api.github.com/repos/meydjer/abide/contents/{+path}","compare_url":"https://api.github.com/repos/meydjer/abide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meydjer/abide/merges","archive_url":"https://api.github.com/repos/meydjer/abide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meydjer/abide/downloads","issues_url":"https://api.github.com/repos/meydjer/abide/issues{/number}","pulls_url":"https://api.github.com/repos/meydjer/abide/pulls{/number}","milestones_url":"https://api.github.com/repos/meydjer/abide/milestones{/number}","notifications_url":"https://api.github.com/repos/meydjer/abide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meydjer/abide/labels{/name}","releases_url":"https://api.github.com/repos/meydjer/abide/releases{/id}","deployments_url":"https://api.github.com/repos/meydjer/abide/deployments","created_at":"2018-03-07T20:08:23Z","updated_at":"2018-03-07T20:08:24Z","pushed_at":"2018-03-08T17:30:08Z","git_url":"git://github.com/meydjer/abide.git","ssh_url":"git@github.com:meydjer/abide.git","clone_url":"https://github.com/meydjer/abide.git","svn_url":"https://github.com/meydjer/abide","homepage":"","size":79,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"beme:master","ref":"master","sha":"39d5cd3a35673eb4e99bf353fb0aad8968baf2fb","user":{"login":"beme","id":9560208,"avatar_url":"https://avatars0.githubusercontent.com/u/9560208?v=4","gravatar_id":"","url":"https://api.github.com/users/beme","html_url":"https://github.com/beme","followers_url":"https://api.github.com/users/beme/followers","following_url":"https://api.github.com/users/beme/following{/other_user}","gists_url":"https://api.github.com/users/beme/gists{/gist_id}","starred_url":"https://api.github.com/users/beme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beme/subscriptions","organizations_url":"https://api.github.com/users/beme/orgs","repos_url":"https://api.github.com/users/beme/repos","events_url":"https://api.github.com/users/beme/events{/privacy}","received_events_url":"https://api.github.com/users/beme/received_events","type":"Organization","site_admin":false},"repo":{"id":82706611,"name":"abide","full_name":"beme/abide","owner":{"login":"beme","id":9560208,"avatar_url":"https://avatars0.githubusercontent.com/u/9560208?v=4","gravatar_id":"","url":"https://api.github.com/users/beme","html_url":"https://github.com/beme","followers_url":"https://api.github.com/users/beme/followers","following_url":"https://api.github.com/users/beme/following{/other_user}","gists_url":"https://api.github.com/users/beme/gists{/gist_id}","starred_url":"https://api.github.com/users/beme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beme/subscriptions","organizations_url":"https://api.github.com/users/beme/orgs","repos_url":"https://api.github.com/users/beme/repos","events_url":"https://api.github.com/users/beme/events{/privacy}","received_events_url":"https://api.github.com/users/beme/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/beme/abide","description":"📸 A Go testing utility for http response snapshots.","fork":false,"url":"https://api.github.com/repos/beme/abide","forks_url":"https://api.github.com/repos/beme/abide/forks","keys_url":"https://api.github.com/repos/beme/abide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/beme/abide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/beme/abide/teams","hooks_url":"https://api.github.com/repos/beme/abide/hooks","issue_events_url":"https://api.github.com/repos/beme/abide/issues/events{/number}","events_url":"https://api.github.com/repos/beme/abide/events","assignees_url":"https://api.github.com/repos/beme/abide/assignees{/user}","branches_url":"https://api.github.com/repos/beme/abide/branches{/branch}","tags_url":"https://api.github.com/repos/beme/abide/tags","blobs_url":"https://api.github.com/repos/beme/abide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/beme/abide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/beme/abide/git/refs{/sha}","trees_url":"https://api.github.com/repos/beme/abide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/beme/abide/statuses/{sha}","languages_url":"https://api.github.com/repos/beme/abide/languages","stargazers_url":"https://api.github.com/repos/beme/abide/stargazers","contributors_url":"https://api.github.com/repos/beme/abide/contributors","subscribers_url":"https://api.github.com/repos/beme/abide/subscribers","subscription_url":"https://api.github.com/repos/beme/abide/subscription","commits_url":"https://api.github.com/repos/beme/abide/commits{/sha}","git_commits_url":"https://api.github.com/repos/beme/abide/git/commits{/sha}","comments_url":"https://api.github.com/repos/beme/abide/comments{/number}","issue_comment_url":"https://api.github.com/repos/beme/abide/issues/comments{/number}","contents_url":"https://api.github.com/repos/beme/abide/contents/{+path}","compare_url":"https://api.github.com/repos/beme/abide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/beme/abide/merges","archive_url":"https://api.github.com/repos/beme/abide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/beme/abide/downloads","issues_url":"https://api.github.com/repos/beme/abide/issues{/number}","pulls_url":"https://api.github.com/repos/beme/abide/pulls{/number}","milestones_url":"https://api.github.com/repos/beme/abide/milestones{/number}","notifications_url":"https://api.github.com/repos/beme/abide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/beme/abide/labels{/name}","releases_url":"https://api.github.com/repos/beme/abide/releases{/id}","deployments_url":"https://api.github.com/repos/beme/abide/deployments","created_at":"2017-02-21T17:15:32Z","updated_at":"2018-03-12T20:32:19Z","pushed_at":"2018-03-08T17:30:09Z","git_url":"git://github.com/beme/abide.git","ssh_url":"git@github.com:beme/abide.git","clone_url":"https://github.com/beme/abide.git","svn_url":"https://github.com/beme/abide","homepage":"","size":74,"stargazers_count":40,"watchers_count":40,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":2,"open_issues":1,"watchers":40,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/beme/abide/pulls/32"},"html":{"href":"https://github.com/beme/abide/pull/32"},"issue":{"href":"https://api.github.com/repos/beme/abide/issues/32"},"comments":{"href":"https://api.github.com/repos/beme/abide/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/beme/abide/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/beme/abide/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/beme/abide/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/beme/abide/statuses/0bfefd61174b33537b6f45e929186f205827b842"}},"author_association":"NONE"}}
{"actor":{"display_login":"sjkaliski"}}