{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/ow/issues/102","repository_url":"https://api.github.com/repos/sindresorhus/ow","labels_url":"https://api.github.com/repos/sindresorhus/ow/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/ow/issues/102/comments","events_url":"https://api.github.com/repos/sindresorhus/ow/issues/102/events","html_url":"https://github.com/sindresorhus/ow/pull/102","id":337379851,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4NTc5NjEz","number":102,"title":"Infer label automatically - fixes #98","user":{"login":"SamVerschueren","id":1913805,"node_id":"MDQ6VXNlcjE5MTM4MDU=","avatar_url":"https://avatars2.githubusercontent.com/u/1913805?v=4","gravatar_id":"","url":"https://api.github.com/users/SamVerschueren","html_url":"https://github.com/SamVerschueren","followers_url":"https://api.github.com/users/SamVerschueren/followers","following_url":"https://api.github.com/users/SamVerschueren/following{/other_user}","gists_url":"https://api.github.com/users/SamVerschueren/gists{/gist_id}","starred_url":"https://api.github.com/users/SamVerschueren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamVerschueren/subscriptions","organizations_url":"https://api.github.com/users/SamVerschueren/orgs","repos_url":"https://api.github.com/users/SamVerschueren/repos","events_url":"https://api.github.com/users/SamVerschueren/events{/privacy}","received_events_url":"https://api.github.com/users/SamVerschueren/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-07-02T06:00:58Z","updated_at":"2018-12-14T06:33:10Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/sindresorhus/ow/pulls/102","html_url":"https://github.com/sindresorhus/ow/pull/102","diff_url":"https://github.com/sindresorhus/ow/pull/102.diff","patch_url":"https://github.com/sindresorhus/ow/pull/102.patch"},"body":"This is a start for solving #98. Still some work to do but I wanted to create a PR because I have issues getting this to work in AVA. It feels like it has something to do with AVA itself.\r\n\r\nI created a dummy test file which you can run with\r\n\r\n```\r\n$ npm run pretest && node dist/test/test-modified.js\r\n```\r\n\r\nIt doesn't use AVA to run the tests but a mocked out version, just enough to get it working.\r\n\r\nNow you can run `test.js` with AVA (easiest way is just running the `auto detect label` test).\r\n\r\n```\r\n$ npm run pretest && npx ava dist/test/test.js -m 'auto detect label'\r\n```\r\n\r\nYou will see that it fails. I'm using [`callsites`](https://github.com/sindresorhus/callsites) under the hood, but when running it through AVA I get totally different line numbers then I get with running it directly."},"comment":{"url":"https://api.github.com/repos/sindresorhus/ow/issues/comments/447229481","html_url":"https://github.com/sindresorhus/ow/pull/102#issuecomment-447229481","issue_url":"https://api.github.com/repos/sindresorhus/ow/issues/102","id":447229481,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzIyOTQ4MQ==","user":{"login":"SamVerschueren","id":1913805,"node_id":"MDQ6VXNlcjE5MTM4MDU=","avatar_url":"https://avatars2.githubusercontent.com/u/1913805?v=4","gravatar_id":"","url":"https://api.github.com/users/SamVerschueren","html_url":"https://github.com/SamVerschueren","followers_url":"https://api.github.com/users/SamVerschueren/followers","following_url":"https://api.github.com/users/SamVerschueren/following{/other_user}","gists_url":"https://api.github.com/users/SamVerschueren/gists{/gist_id}","starred_url":"https://api.github.com/users/SamVerschueren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamVerschueren/subscriptions","organizations_url":"https://api.github.com/users/SamVerschueren/orgs","repos_url":"https://api.github.com/users/SamVerschueren/repos","events_url":"https://api.github.com/users/SamVerschueren/events{/privacy}","received_events_url":"https://api.github.com/users/SamVerschueren/received_events","type":"User","site_admin":false},"created_at":"2018-12-14T06:33:10Z","updated_at":"2018-12-14T06:33:10Z","author_association":"COLLABORATOR","body":"I think this PR is good for review. Would be nice to finally ship this feature, this is something I want for a very long time 🎉 😄 \t"}}
{"actor":{"display_login":"SamVerschueren"}}