{"action":"opened","number":166,"pull_request":{"url":"https://api.github.com/repos/aantron/bisect_ppx/pulls/166","id":159982706,"html_url":"https://github.com/aantron/bisect_ppx/pull/166","diff_url":"https://github.com/aantron/bisect_ppx/pull/166.diff","patch_url":"https://github.com/aantron/bisect_ppx/pull/166.patch","issue_url":"https://api.github.com/repos/aantron/bisect_ppx/issues/166","number":166,"state":"open","locked":false,"title":"Add a JSON report","user":{"login":"brendanlong","id":1447206,"avatar_url":"https://avatars1.githubusercontent.com/u/1447206?v=4","gravatar_id":"","url":"https://api.github.com/users/brendanlong","html_url":"https://github.com/brendanlong","followers_url":"https://api.github.com/users/brendanlong/followers","following_url":"https://api.github.com/users/brendanlong/following{/other_user}","gists_url":"https://api.github.com/users/brendanlong/gists{/gist_id}","starred_url":"https://api.github.com/users/brendanlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendanlong/subscriptions","organizations_url":"https://api.github.com/users/brendanlong/orgs","repos_url":"https://api.github.com/users/brendanlong/repos","events_url":"https://api.github.com/users/brendanlong/events{/privacy}","received_events_url":"https://api.github.com/users/brendanlong/received_events","type":"User","site_admin":false},"body":"This outputs something like:\r\n\r\n```\r\n{\r\n  \"file.ml\": {\r\n    \"points\": [{\r\n      \"offset\": 0,\r\n      \"identifier: 5\r\n    }, {\r\n      \"offset\": 10,\r\n      \"identifier\": 0\r\n    }]\r\n  },\r\n  \"file2.ml\": {\r\n    ..\r\n  },\r\n  ...\r\n}\r\n```\r\n\r\nThis is basically the same as the `dump` format, but\r\nmuch easier to parse.\r\n\r\nThe per-file report is an object containing the `\"points\"`\r\nkey rather than just the points themselves, since this\r\nwill allow us to add other keys in the future without\r\nbreaking backwards compatibility (for example, to add per-line\r\noutput).\r\n\r\nDownsides:\r\n\r\n - This brings in a dependency on atdgen and yojson\r\n - Atdgen's generated .ml files have compile warnings,\r\n   so we can't build with `--dev`. I'm not sure how to\r\n   work around this yet.","created_at":"2017-12-23T23:09:16Z","updated_at":"2017-12-23T23:09:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/aantron/bisect_ppx/pulls/166/commits","review_comments_url":"https://api.github.com/repos/aantron/bisect_ppx/pulls/166/comments","review_comment_url":"https://api.github.com/repos/aantron/bisect_ppx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aantron/bisect_ppx/issues/166/comments","statuses_url":"https://api.github.com/repos/aantron/bisect_ppx/statuses/5f67f1a3c3cd7713828e0b0c409a9778c9a5eb59","head":{"label":"arenadotio:json-report","ref":"json-report","sha":"5f67f1a3c3cd7713828e0b0c409a9778c9a5eb59","user":{"login":"arenadotio","id":12241307,"avatar_url":"https://avatars0.githubusercontent.com/u/12241307?v=4","gravatar_id":"","url":"https://api.github.com/users/arenadotio","html_url":"https://github.com/arenadotio","followers_url":"https://api.github.com/users/arenadotio/followers","following_url":"https://api.github.com/users/arenadotio/following{/other_user}","gists_url":"https://api.github.com/users/arenadotio/gists{/gist_id}","starred_url":"https://api.github.com/users/arenadotio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arenadotio/subscriptions","organizations_url":"https://api.github.com/users/arenadotio/orgs","repos_url":"https://api.github.com/users/arenadotio/repos","events_url":"https://api.github.com/users/arenadotio/events{/privacy}","received_events_url":"https://api.github.com/users/arenadotio/received_events","type":"Organization","site_admin":false},"repo":{"id":54996732,"name":"bisect_ppx","full_name":"arenadotio/bisect_ppx","owner":{"login":"arenadotio","id":12241307,"avatar_url":"https://avatars0.githubusercontent.com/u/12241307?v=4","gravatar_id":"","url":"https://api.github.com/users/arenadotio","html_url":"https://github.com/arenadotio","followers_url":"https://api.github.com/users/arenadotio/followers","following_url":"https://api.github.com/users/arenadotio/following{/other_user}","gists_url":"https://api.github.com/users/arenadotio/gists{/gist_id}","starred_url":"https://api.github.com/users/arenadotio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arenadotio/subscriptions","organizations_url":"https://api.github.com/users/arenadotio/orgs","repos_url":"https://api.github.com/users/arenadotio/repos","events_url":"https://api.github.com/users/arenadotio/events{/privacy}","received_events_url":"https://api.github.com/users/arenadotio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/arenadotio/bisect_ppx","description":"Code coverage for OCaml.","fork":true,"url":"https://api.github.com/repos/arenadotio/bisect_ppx","forks_url":"https://api.github.com/repos/arenadotio/bisect_ppx/forks","keys_url":"https://api.github.com/repos/arenadotio/bisect_ppx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arenadotio/bisect_ppx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arenadotio/bisect_ppx/teams","hooks_url":"https://api.github.com/repos/arenadotio/bisect_ppx/hooks","issue_events_url":"https://api.github.com/repos/arenadotio/bisect_ppx/issues/events{/number}","events_url":"https://api.github.com/repos/arenadotio/bisect_ppx/events","assignees_url":"https://api.github.com/repos/arenadotio/bisect_ppx/assignees{/user}","branches_url":"https://api.github.com/repos/arenadotio/bisect_ppx/branches{/branch}","tags_url":"https://api.github.com/repos/arenadotio/bisect_ppx/tags","blobs_url":"https://api.github.com/repos/arenadotio/bisect_ppx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arenadotio/bisect_ppx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arenadotio/bisect_ppx/git/refs{/sha}","trees_url":"https://api.github.com/repos/arenadotio/bisect_ppx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arenadotio/bisect_ppx/statuses/{sha}","languages_url":"https://api.github.com/repos/arenadotio/bisect_ppx/languages","stargazers_url":"https://api.github.com/repos/arenadotio/bisect_ppx/stargazers","contributors_url":"https://api.github.com/repos/arenadotio/bisect_ppx/contributors","subscribers_url":"https://api.github.com/repos/arenadotio/bisect_ppx/subscribers","subscription_url":"https://api.github.com/repos/arenadotio/bisect_ppx/subscription","commits_url":"https://api.github.com/repos/arenadotio/bisect_ppx/commits{/sha}","git_commits_url":"https://api.github.com/repos/arenadotio/bisect_ppx/git/commits{/sha}","comments_url":"https://api.github.com/repos/arenadotio/bisect_ppx/comments{/number}","issue_comment_url":"https://api.github.com/repos/arenadotio/bisect_ppx/issues/comments{/number}","contents_url":"https://api.github.com/repos/arenadotio/bisect_ppx/contents/{+path}","compare_url":"https://api.github.com/repos/arenadotio/bisect_ppx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arenadotio/bisect_ppx/merges","archive_url":"https://api.github.com/repos/arenadotio/bisect_ppx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arenadotio/bisect_ppx/downloads","issues_url":"https://api.github.com/repos/arenadotio/bisect_ppx/issues{/number}","pulls_url":"https://api.github.com/repos/arenadotio/bisect_ppx/pulls{/number}","milestones_url":"https://api.github.com/repos/arenadotio/bisect_ppx/milestones{/number}","notifications_url":"https://api.github.com/repos/arenadotio/bisect_ppx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arenadotio/bisect_ppx/labels{/name}","releases_url":"https://api.github.com/repos/arenadotio/bisect_ppx/releases{/id}","deployments_url":"https://api.github.com/repos/arenadotio/bisect_ppx/deployments","created_at":"2016-03-29T17:35:07Z","updated_at":"2016-03-29T17:35:08Z","pushed_at":"2017-12-23T23:08:39Z","git_url":"git://github.com/arenadotio/bisect_ppx.git","ssh_url":"git@github.com:arenadotio/bisect_ppx.git","clone_url":"https://github.com/arenadotio/bisect_ppx.git","svn_url":"https://github.com/arenadotio/bisect_ppx","homepage":"http://rleonid.github.io/bisect_ppx/coverage/","size":3480,"stargazers_count":0,"watchers_count":0,"language":"OCaml","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":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"aantron:master","ref":"master","sha":"5442ad0151361f11923638baf80df4fd74f4ec80","user":{"login":"aantron","id":12073668,"avatar_url":"https://avatars2.githubusercontent.com/u/12073668?v=4","gravatar_id":"","url":"https://api.github.com/users/aantron","html_url":"https://github.com/aantron","followers_url":"https://api.github.com/users/aantron/followers","following_url":"https://api.github.com/users/aantron/following{/other_user}","gists_url":"https://api.github.com/users/aantron/gists{/gist_id}","starred_url":"https://api.github.com/users/aantron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aantron/subscriptions","organizations_url":"https://api.github.com/users/aantron/orgs","repos_url":"https://api.github.com/users/aantron/repos","events_url":"https://api.github.com/users/aantron/events{/privacy}","received_events_url":"https://api.github.com/users/aantron/received_events","type":"User","site_admin":false},"repo":{"id":34832664,"name":"bisect_ppx","full_name":"aantron/bisect_ppx","owner":{"login":"aantron","id":12073668,"avatar_url":"https://avatars2.githubusercontent.com/u/12073668?v=4","gravatar_id":"","url":"https://api.github.com/users/aantron","html_url":"https://github.com/aantron","followers_url":"https://api.github.com/users/aantron/followers","following_url":"https://api.github.com/users/aantron/following{/other_user}","gists_url":"https://api.github.com/users/aantron/gists{/gist_id}","starred_url":"https://api.github.com/users/aantron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aantron/subscriptions","organizations_url":"https://api.github.com/users/aantron/orgs","repos_url":"https://api.github.com/users/aantron/repos","events_url":"https://api.github.com/users/aantron/events{/privacy}","received_events_url":"https://api.github.com/users/aantron/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aantron/bisect_ppx","description":"Code coverage for OCaml.","fork":false,"url":"https://api.github.com/repos/aantron/bisect_ppx","forks_url":"https://api.github.com/repos/aantron/bisect_ppx/forks","keys_url":"https://api.github.com/repos/aantron/bisect_ppx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aantron/bisect_ppx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aantron/bisect_ppx/teams","hooks_url":"https://api.github.com/repos/aantron/bisect_ppx/hooks","issue_events_url":"https://api.github.com/repos/aantron/bisect_ppx/issues/events{/number}","events_url":"https://api.github.com/repos/aantron/bisect_ppx/events","assignees_url":"https://api.github.com/repos/aantron/bisect_ppx/assignees{/user}","branches_url":"https://api.github.com/repos/aantron/bisect_ppx/branches{/branch}","tags_url":"https://api.github.com/repos/aantron/bisect_ppx/tags","blobs_url":"https://api.github.com/repos/aantron/bisect_ppx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aantron/bisect_ppx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aantron/bisect_ppx/git/refs{/sha}","trees_url":"https://api.github.com/repos/aantron/bisect_ppx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aantron/bisect_ppx/statuses/{sha}","languages_url":"https://api.github.com/repos/aantron/bisect_ppx/languages","stargazers_url":"https://api.github.com/repos/aantron/bisect_ppx/stargazers","contributors_url":"https://api.github.com/repos/aantron/bisect_ppx/contributors","subscribers_url":"https://api.github.com/repos/aantron/bisect_ppx/subscribers","subscription_url":"https://api.github.com/repos/aantron/bisect_ppx/subscription","commits_url":"https://api.github.com/repos/aantron/bisect_ppx/commits{/sha}","git_commits_url":"https://api.github.com/repos/aantron/bisect_ppx/git/commits{/sha}","comments_url":"https://api.github.com/repos/aantron/bisect_ppx/comments{/number}","issue_comment_url":"https://api.github.com/repos/aantron/bisect_ppx/issues/comments{/number}","contents_url":"https://api.github.com/repos/aantron/bisect_ppx/contents/{+path}","compare_url":"https://api.github.com/repos/aantron/bisect_ppx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aantron/bisect_ppx/merges","archive_url":"https://api.github.com/repos/aantron/bisect_ppx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aantron/bisect_ppx/downloads","issues_url":"https://api.github.com/repos/aantron/bisect_ppx/issues{/number}","pulls_url":"https://api.github.com/repos/aantron/bisect_ppx/pulls{/number}","milestones_url":"https://api.github.com/repos/aantron/bisect_ppx/milestones{/number}","notifications_url":"https://api.github.com/repos/aantron/bisect_ppx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aantron/bisect_ppx/labels{/name}","releases_url":"https://api.github.com/repos/aantron/bisect_ppx/releases{/id}","deployments_url":"https://api.github.com/repos/aantron/bisect_ppx/deployments","created_at":"2015-04-30T03:42:09Z","updated_at":"2017-12-13T02:06:28Z","pushed_at":"2017-12-23T17:13:53Z","git_url":"git://github.com/aantron/bisect_ppx.git","ssh_url":"git@github.com:aantron/bisect_ppx.git","clone_url":"https://github.com/aantron/bisect_ppx.git","svn_url":"https://github.com/aantron/bisect_ppx","homepage":"http://aantron.github.io/bisect_ppx/coverage/","size":3470,"stargazers_count":86,"watchers_count":86,"language":"OCaml","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":18,"mirror_url":null,"archived":false,"open_issues_count":27,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":18,"open_issues":27,"watchers":86,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aantron/bisect_ppx/pulls/166"},"html":{"href":"https://github.com/aantron/bisect_ppx/pull/166"},"issue":{"href":"https://api.github.com/repos/aantron/bisect_ppx/issues/166"},"comments":{"href":"https://api.github.com/repos/aantron/bisect_ppx/issues/166/comments"},"review_comments":{"href":"https://api.github.com/repos/aantron/bisect_ppx/pulls/166/comments"},"review_comment":{"href":"https://api.github.com/repos/aantron/bisect_ppx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aantron/bisect_ppx/pulls/166/commits"},"statuses":{"href":"https://api.github.com/repos/aantron/bisect_ppx/statuses/5f67f1a3c3cd7713828e0b0c409a9778c9a5eb59"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":68,"deletions":1,"changed_files":7}}
{"actor":{"display_login":"brendanlong"}}