GitHub PullRequestEvent at 2014-08-12 09:59:38
Repository: integration-tester
Actor: yields
Payload: {"action":"closed","number":20,"pull_request":{"url":"https://api.github.com/repos/segmentio/integration-tester/pulls/20","id":19652308,"html_url":"https://github.com/segmentio/integration-tester/pull/20","diff_url":"https://github.com/segmentio/integration-tester/pull/20.diff","patch_url":"https://github.com/segmentio/integration-tester/pull/20.patch","issue_url":"https://api.github.com/repos/segmentio/integration-tester/issues/20","number":20,"state":"closed","title":"Query","user":{"login":"yields","id":1661587,"avatar_url":"https://avatars.githubusercontent.com/u/1661587?v=2","gravatar_id":"c935f24138800756f49e9422a15105c4","url":"https://api.github.com/users/yields","html_url":"https://github.com/yields","followers_url":"https://api.github.com/users/yields/followers","following_url":"https://api.github.com/users/yields/following{/other_user}","gists_url":"https://api.github.com/users/yields/gists{/gist_id}","starred_url":"https://api.github.com/users/yields/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yields/subscriptions","organizations_url":"https://api.github.com/users/yields/orgs","repos_url":"https://api.github.com/users/yields/repos","events_url":"https://api.github.com/users/yields/events{/privacy}","received_events_url":"https://api.github.com/users/yields/received_events","type":"User","site_admin":false},"body":"this allows you to pass `parse` function for each key, to allow less verbose testing.\r\n\r\nso this:\r\n```js\r\n    it('should map screen calls correctly', function(done){\r\n      var screen = {\r\n        name: 'name',\r\n        timestamp: new Date()\r\n      };\r\n      var event = JSON.stringify({\r\n        time: screen.timestamp.getTime(),\r\n        user_properties: {},\r\n        event_type: 'Viewed name Screen',\r\n        event_properties: {\r\n          name: 'name'\r\n        }\r\n      });\r\n\r\n      test\r\n        .set(settings)\r\n        .screen(screen)\r\n        .query({\r\n          api_key: settings.apiKey,\r\n          event: event\r\n        })\r\n        .expects(200, done);\r\n    });\r\n```\r\n\r\nbecomes (note the `JSON.parse`.)\r\n\r\n```js\r\n    it('should map screen calls correctly', function(done){\r\n      var json = test.fixture('screen-basic');\r\n      test\r\n        .set(settings)\r\n        .screen(json.input)\r\n        .query('api_key', settings.apiKey)\r\n        .query('event', json.output, JSON.parse)\r\n        .expects(200, done);\r\n    });\r\n```","created_at":"2014-08-12T09:59:33Z","updated_at":"2014-08-12T09:59:38Z","closed_at":"2014-08-12T09:59:38Z","merged_at":"2014-08-12T09:59:38Z","merge_commit_sha":"67801b7a10111ff48d038407587169b31b728b43","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/segmentio/integration-tester/pulls/20/commits","review_comments_url":"https://api.github.com/repos/segmentio/integration-tester/pulls/20/comments","review_comment_url":"https://api.github.com/repos/segmentio/integration-tester/pulls/comments/{number}","comments_url":"https://api.github.com/repos/segmentio/integration-tester/issues/20/comments","statuses_url":"https://api.github.com/repos/segmentio/integration-tester/statuses/54f004c889973b4cdc4bb6223ba681e0d509f36f","head":{"label":"segmentio:query","ref":"query","sha":"54f004c889973b4cdc4bb6223ba681e0d509f36f","user":{"login":"segmentio","id":819518,"avatar_url":"https://avatars.githubusercontent.com/u/819518?v=2","gravatar_id":"420370b79b6adb3a513c24935907539f","url":"https://api.github.com/users/segmentio","html_url":"https://github.com/segmentio","followers_url":"https://api.github.com/users/segmentio/followers","following_url":"https://api.github.com/users/segmentio/following{/other_user}","gists_url":"https://api.github.com/users/segmentio/gists{/gist_id}","starred_url":"https://api.github.com/users/segmentio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segmentio/subscriptions","organizations_url":"https://api.github.com/users/segmentio/orgs","repos_url":"https://api.github.com/users/segmentio/repos","events_url":"https://api.github.com/users/segmentio/events{/privacy}","received_events_url":"https://api.github.com/users/segmentio/received_events","type":"Organization","site_admin":false},"repo":{"id":17726685,"name":"integration-tester","full_name":"segmentio/integration-tester","owner":{"login":"segmentio","id":819518,"avatar_url":"https://avatars.githubusercontent.com/u/819518?v=2","gravatar_id":"420370b79b6adb3a513c24935907539f","url":"https://api.github.com/users/segmentio","html_url":"https://github.com/segmentio","followers_url":"https://api.github.com/users/segmentio/followers","following_url":"https://api.github.com/users/segmentio/following{/other_user}","gists_url":"https://api.github.com/users/segmentio/gists{/gist_id}","starred_url":"https://api.github.com/users/segmentio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segmentio/subscriptions","organizations_url":"https://api.github.com/users/segmentio/orgs","repos_url":"https://api.github.com/users/segmentio/repos","events_url":"https://api.github.com/users/segmentio/events{/privacy}","received_events_url":"https://api.github.com/users/segmentio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/segmentio/integration-tester","description":"integration tester","fork":false,"url":"https://api.github.com/repos/segmentio/integration-tester","forks_url":"https://api.github.com/repos/segmentio/integration-tester/forks","keys_url":"https://api.github.com/repos/segmentio/integration-tester/keys{/key_id}","collaborators_url":"https://api.github.com/repos/segmentio/integration-tester/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/segmentio/integration-tester/teams","hooks_url":"https://api.github.com/repos/segmentio/integration-tester/hooks","issue_events_url":"https://api.github.com/repos/segmentio/integration-tester/issues/events{/number}","events_url":"https://api.github.com/repos/segmentio/integration-tester/events","assignees_url":"https://api.github.com/repos/segmentio/integration-tester/assignees{/user}","branches_url":"https://api.github.com/repos/segmentio/integration-tester/branches{/branch}","tags_url":"https://api.github.com/repos/segmentio/integration-tester/tags","blobs_url":"https://api.github.com/repos/segmentio/integration-tester/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/segmentio/integration-tester/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/segmentio/integration-tester/git/refs{/sha}","trees_url":"https://api.github.com/repos/segmentio/integration-tester/git/trees{/sha}","statuses_url":"https://api.github.com/repos/segmentio/integration-tester/statuses/{sha}","languages_url":"https://api.github.com/repos/segmentio/integration-tester/languages","stargazers_url":"https://api.github.com/repos/segmentio/integration-tester/stargazers","contributors_url":"https://api.github.com/repos/segmentio/integration-tester/contributors","subscribers_url":"https://api.github.com/repos/segmentio/integration-tester/subscribers","subscription_url":"https://api.github.com/repos/segmentio/integration-tester/subscription","commits_url":"https://api.github.com/repos/segmentio/integration-tester/commits{/sha}","git_commits_url":"https://api.github.com/repos/segmentio/integration-tester/git/commits{/sha}","comments_url":"https://api.github.com/repos/segmentio/integration-tester/comments{/number}","issue_comment_url":"https://api.github.com/repos/segmentio/integration-tester/issues/comments/{number}","contents_url":"https://api.github.com/repos/segmentio/integration-tester/contents/{+path}","compare_url":"https://api.github.com/repos/segmentio/integration-tester/compare/{base}...{head}","merges_url":"https://api.github.com/repos/segmentio/integration-tester/merges","archive_url":"https://api.github.com/repos/segmentio/integration-tester/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/segmentio/integration-tester/downloads","issues_url":"https://api.github.com/repos/segmentio/integration-tester/issues{/number}","pulls_url":"https://api.github.com/repos/segmentio/integration-tester/pulls{/number}","milestones_url":"https://api.github.com/repos/segmentio/integration-tester/milestones{/number}","notifications_url":"https://api.github.com/repos/segmentio/integration-tester/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/segmentio/integration-tester/labels{/name}","releases_url":"https://api.github.com/repos/segmentio/integration-tester/releases{/id}","created_at":"2014-03-13T21:28:17Z","updated_at":"2014-07-31T08:44:30Z","pushed_at":"2014-08-12T09:59:38Z","git_url":"git://github.com/segmentio/integration-tester.git","ssh_url":"git@github.com:segmentio/integration-tester.git","clone_url":"https://github.com/segmentio/integration-tester.git","svn_url":"https://github.com/segmentio/integration-tester","homepage":null,"size":619,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"segmentio:master","ref":"master","sha":"a55f6007b010f4e99ccd9b2a08154939b28fa1f9","user":{"login":"segmentio","id":819518,"avatar_url":"https://avatars.githubusercontent.com/u/819518?v=2","gravatar_id":"420370b79b6adb3a513c24935907539f","url":"https://api.github.com/users/segmentio","html_url":"https://github.com/segmentio","followers_url":"https://api.github.com/users/segmentio/followers","following_url":"https://api.github.com/users/segmentio/following{/other_user}","gists_url":"https://api.github.com/users/segmentio/gists{/gist_id}","starred_url":"https://api.github.com/users/segmentio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segmentio/subscriptions","organizations_url":"https://api.github.com/users/segmentio/orgs","repos_url":"https://api.github.com/users/segmentio/repos","events_url":"https://api.github.com/users/segmentio/events{/privacy}","received_events_url":"https://api.github.com/users/segmentio/received_events","type":"Organization","site_admin":false},"repo":{"id":17726685,"name":"integration-tester","full_name":"segmentio/integration-tester","owner":{"login":"segmentio","id":819518,"avatar_url":"https://avatars.githubusercontent.com/u/819518?v=2","gravatar_id":"420370b79b6adb3a513c24935907539f","url":"https://api.github.com/users/segmentio","html_url":"https://github.com/segmentio","followers_url":"https://api.github.com/users/segmentio/followers","following_url":"https://api.github.com/users/segmentio/following{/other_user}","gists_url":"https://api.github.com/users/segmentio/gists{/gist_id}","starred_url":"https://api.github.com/users/segmentio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segmentio/subscriptions","organizations_url":"https://api.github.com/users/segmentio/orgs","repos_url":"https://api.github.com/users/segmentio/repos","events_url":"https://api.github.com/users/segmentio/events{/privacy}","received_events_url":"https://api.github.com/users/segmentio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/segmentio/integration-tester","description":"integration tester","fork":false,"url":"https://api.github.com/repos/segmentio/integration-tester","forks_url":"https://api.github.com/repos/segmentio/integration-tester/forks","keys_url":"https://api.github.com/repos/segmentio/integration-tester/keys{/key_id}","collaborators_url":"https://api.github.com/repos/segmentio/integration-tester/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/segmentio/integration-tester/teams","hooks_url":"https://api.github.com/repos/segmentio/integration-tester/hooks","issue_events_url":"https://api.github.com/repos/segmentio/integration-tester/issues/events{/number}","events_url":"https://api.github.com/repos/segmentio/integration-tester/events","assignees_url":"https://api.github.com/repos/segmentio/integration-tester/assignees{/user}","branches_url":"https://api.github.com/repos/segmentio/integration-tester/branches{/branch}","tags_url":"https://api.github.com/repos/segmentio/integration-tester/tags","blobs_url":"https://api.github.com/repos/segmentio/integration-tester/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/segmentio/integration-tester/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/segmentio/integration-tester/git/refs{/sha}","trees_url":"https://api.github.com/repos/segmentio/integration-tester/git/trees{/sha}","statuses_url":"https://api.github.com/repos/segmentio/integration-tester/statuses/{sha}","languages_url":"https://api.github.com/repos/segmentio/integration-tester/languages","stargazers_url":"https://api.github.com/repos/segmentio/integration-tester/stargazers","contributors_url":"https://api.github.com/repos/segmentio/integration-tester/contributors","subscribers_url":"https://api.github.com/repos/segmentio/integration-tester/subscribers","subscription_url":"https://api.github.com/repos/segmentio/integration-tester/subscription","commits_url":"https://api.github.com/repos/segmentio/integration-tester/commits{/sha}","git_commits_url":"https://api.github.com/repos/segmentio/integration-tester/git/commits{/sha}","comments_url":"https://api.github.com/repos/segmentio/integration-tester/comments{/number}","issue_comment_url":"https://api.github.com/repos/segmentio/integration-tester/issues/comments/{number}","contents_url":"https://api.github.com/repos/segmentio/integration-tester/contents/{+path}","compare_url":"https://api.github.com/repos/segmentio/integration-tester/compare/{base}...{head}","merges_url":"https://api.github.com/repos/segmentio/integration-tester/merges","archive_url":"https://api.github.com/repos/segmentio/integration-tester/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/segmentio/integration-tester/downloads","issues_url":"https://api.github.com/repos/segmentio/integration-tester/issues{/number}","pulls_url":"https://api.github.com/repos/segmentio/integration-tester/pulls{/number}","milestones_url":"https://api.github.com/repos/segmentio/integration-tester/milestones{/number}","notifications_url":"https://api.github.com/repos/segmentio/integration-tester/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/segmentio/integration-tester/labels{/name}","releases_url":"https://api.github.com/repos/segmentio/integration-tester/releases{/id}","created_at":"2014-03-13T21:28:17Z","updated_at":"2014-07-31T08:44:30Z","pushed_at":"2014-08-12T09:59:38Z","git_url":"git://github.com/segmentio/integration-tester.git","ssh_url":"git@github.com:segmentio/integration-tester.git","clone_url":"https://github.com/segmentio/integration-tester.git","svn_url":"https://github.com/segmentio/integration-tester","homepage":null,"size":619,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/segmentio/integration-tester/pulls/20"},"html":{"href":"https://github.com/segmentio/integration-tester/pull/20"},"issue":{"href":"https://api.github.com/repos/segmentio/integration-tester/issues/20"},"comments":{"href":"https://api.github.com/repos/segmentio/integration-tester/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/segmentio/integration-tester/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/segmentio/integration-tester/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/segmentio/integration-tester/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/segmentio/integration-tester/statuses/54f004c889973b4cdc4bb6223ba681e0d509f36f"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"yields","id":1661587,"avatar_url":"https://avatars.githubusercontent.com/u/1661587?v=2","gravatar_id":"c935f24138800756f49e9422a15105c4","url":"https://api.github.com/users/yields","html_url":"https://github.com/yields","followers_url":"https://api.github.com/users/yields/followers","following_url":"https://api.github.com/users/yields/following{/other_user}","gists_url":"https://api.github.com/users/yields/gists{/gist_id}","starred_url":"https://api.github.com/users/yields/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yields/subscriptions","organizations_url":"https://api.github.com/users/yields/orgs","repos_url":"https://api.github.com/users/yields/repos","events_url":"https://api.github.com/users/yields/events{/privacy}","received_events_url":"https://api.github.com/users/yields/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":4,"additions":76,"deletions":4,"changed_files":2}}