{"action":"created","comment":{"url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/pulls/comments/226175357","pull_request_review_id":165932780,"id":226175357,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjE3NTM1Nw==","diff_hunk":"@@ -34,22 +34,20 @@ const\n      * @param {Array} element - All members of an Item or ItemGroup\n      * @param {String} [path] - Path leading to members\n      */\n-    flattenEvents = function (element, path = []) {\n+    flattenEvents = function (element = [], path = []) {\n+        if (!(element.events && element.items)) { return {}; }","path":"lib/index.js","position":38,"original_position":15,"commit_id":"317e3848b815f35b4da83283cea3f148dc133294","original_commit_id":"317e3848b815f35b4da83283cea3f148dc133294","user":{"login":"saswatds","id":8796447,"node_id":"MDQ6VXNlcjg3OTY0NDc=","avatar_url":"https://avatars2.githubusercontent.com/u/8796447?v=4","gravatar_id":"","url":"https://api.github.com/users/saswatds","html_url":"https://github.com/saswatds","followers_url":"https://api.github.com/users/saswatds/followers","following_url":"https://api.github.com/users/saswatds/following{/other_user}","gists_url":"https://api.github.com/users/saswatds/gists{/gist_id}","starred_url":"https://api.github.com/users/saswatds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saswatds/subscriptions","organizations_url":"https://api.github.com/users/saswatds/orgs","repos_url":"https://api.github.com/users/saswatds/repos","events_url":"https://api.github.com/users/saswatds/events{/privacy}","received_events_url":"https://api.github.com/users/saswatds/received_events","type":"User","site_admin":false},"body":"This logic seems odd. What if event is present but item is missing, then we would want to add the events and skip the items","created_at":"2018-10-18T05:52:00Z","updated_at":"2018-10-18T05:53:29Z","html_url":"https://github.com/postmanlabs/newman-reporter-remote/pull/1#discussion_r226175357","pull_request_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/pulls/comments/226175357"},"html":{"href":"https://github.com/postmanlabs/newman-reporter-remote/pull/1#discussion_r226175357"},"pull_request":{"href":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/pulls/1","id":223548071,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzNTQ4MDcx","html_url":"https://github.com/postmanlabs/newman-reporter-remote/pull/1","diff_url":"https://github.com/postmanlabs/newman-reporter-remote/pull/1.diff","patch_url":"https://github.com/postmanlabs/newman-reporter-remote/pull/1.patch","issue_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/issues/1","number":1,"state":"open","locked":false,"title":"Initial Setup","user":{"login":"codenirvana","id":4865836,"node_id":"MDQ6VXNlcjQ4NjU4MzY=","avatar_url":"https://avatars2.githubusercontent.com/u/4865836?v=4","gravatar_id":"","url":"https://api.github.com/users/codenirvana","html_url":"https://github.com/codenirvana","followers_url":"https://api.github.com/users/codenirvana/followers","following_url":"https://api.github.com/users/codenirvana/following{/other_user}","gists_url":"https://api.github.com/users/codenirvana/gists{/gist_id}","starred_url":"https://api.github.com/users/codenirvana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codenirvana/subscriptions","organizations_url":"https://api.github.com/users/codenirvana/orgs","repos_url":"https://api.github.com/users/codenirvana/repos","events_url":"https://api.github.com/users/codenirvana/events{/privacy}","received_events_url":"https://api.github.com/users/codenirvana/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-17T10:24:41Z","updated_at":"2018-10-18T05:53:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"816161119cf87673ceeac23913692ccffdefbdb2","assignee":{"login":"codenirvana","id":4865836,"node_id":"MDQ6VXNlcjQ4NjU4MzY=","avatar_url":"https://avatars2.githubusercontent.com/u/4865836?v=4","gravatar_id":"","url":"https://api.github.com/users/codenirvana","html_url":"https://github.com/codenirvana","followers_url":"https://api.github.com/users/codenirvana/followers","following_url":"https://api.github.com/users/codenirvana/following{/other_user}","gists_url":"https://api.github.com/users/codenirvana/gists{/gist_id}","starred_url":"https://api.github.com/users/codenirvana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codenirvana/subscriptions","organizations_url":"https://api.github.com/users/codenirvana/orgs","repos_url":"https://api.github.com/users/codenirvana/repos","events_url":"https://api.github.com/users/codenirvana/events{/privacy}","received_events_url":"https://api.github.com/users/codenirvana/received_events","type":"User","site_admin":false},"assignees":[{"login":"codenirvana","id":4865836,"node_id":"MDQ6VXNlcjQ4NjU4MzY=","avatar_url":"https://avatars2.githubusercontent.com/u/4865836?v=4","gravatar_id":"","url":"https://api.github.com/users/codenirvana","html_url":"https://github.com/codenirvana","followers_url":"https://api.github.com/users/codenirvana/followers","following_url":"https://api.github.com/users/codenirvana/following{/other_user}","gists_url":"https://api.github.com/users/codenirvana/gists{/gist_id}","starred_url":"https://api.github.com/users/codenirvana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codenirvana/subscriptions","organizations_url":"https://api.github.com/users/codenirvana/orgs","repos_url":"https://api.github.com/users/codenirvana/repos","events_url":"https://api.github.com/users/codenirvana/events{/privacy}","received_events_url":"https://api.github.com/users/codenirvana/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/pulls/1/commits","review_comments_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/pulls/1/comments","review_comment_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/pulls/comments{/number}","comments_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/issues/1/comments","statuses_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/statuses/317e3848b815f35b4da83283cea3f148dc133294","head":{"label":"postmanlabs:feature/setup","ref":"feature/setup","sha":"317e3848b815f35b4da83283cea3f148dc133294","user":{"login":"postmanlabs","id":10251060,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMjUxMDYw","avatar_url":"https://avatars2.githubusercontent.com/u/10251060?v=4","gravatar_id":"","url":"https://api.github.com/users/postmanlabs","html_url":"https://github.com/postmanlabs","followers_url":"https://api.github.com/users/postmanlabs/followers","following_url":"https://api.github.com/users/postmanlabs/following{/other_user}","gists_url":"https://api.github.com/users/postmanlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/postmanlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postmanlabs/subscriptions","organizations_url":"https://api.github.com/users/postmanlabs/orgs","repos_url":"https://api.github.com/users/postmanlabs/repos","events_url":"https://api.github.com/users/postmanlabs/events{/privacy}","received_events_url":"https://api.github.com/users/postmanlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":153400045,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM0MDAwNDU=","name":"newman-reporter-remote","full_name":"postmanlabs/newman-reporter-remote","private":false,"owner":{"login":"postmanlabs","id":10251060,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMjUxMDYw","avatar_url":"https://avatars2.githubusercontent.com/u/10251060?v=4","gravatar_id":"","url":"https://api.github.com/users/postmanlabs","html_url":"https://github.com/postmanlabs","followers_url":"https://api.github.com/users/postmanlabs/followers","following_url":"https://api.github.com/users/postmanlabs/following{/other_user}","gists_url":"https://api.github.com/users/postmanlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/postmanlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postmanlabs/subscriptions","organizations_url":"https://api.github.com/users/postmanlabs/orgs","repos_url":"https://api.github.com/users/postmanlabs/repos","events_url":"https://api.github.com/users/postmanlabs/events{/privacy}","received_events_url":"https://api.github.com/users/postmanlabs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/postmanlabs/newman-reporter-remote","description":null,"fork":false,"url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote","forks_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/forks","keys_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/keys{/key_id}","collaborators_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/teams","hooks_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/hooks","issue_events_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/issues/events{/number}","events_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/events","assignees_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/assignees{/user}","branches_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/branches{/branch}","tags_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/tags","blobs_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/git/refs{/sha}","trees_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/git/trees{/sha}","statuses_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/statuses/{sha}","languages_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/languages","stargazers_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/stargazers","contributors_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/contributors","subscribers_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/subscribers","subscription_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/subscription","commits_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/commits{/sha}","git_commits_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/git/commits{/sha}","comments_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/comments{/number}","issue_comment_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/issues/comments{/number}","contents_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/contents/{+path}","compare_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/compare/{base}...{head}","merges_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/merges","archive_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/downloads","issues_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/issues{/number}","pulls_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/pulls{/number}","milestones_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/milestones{/number}","notifications_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/labels{/name}","releases_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/releases{/id}","deployments_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/deployments","created_at":"2018-10-17T05:26:59Z","updated_at":"2018-10-17T07:32:46Z","pushed_at":"2018-10-18T05:47:22Z","git_url":"git://github.com/postmanlabs/newman-reporter-remote.git","ssh_url":"git@github.com:postmanlabs/newman-reporter-remote.git","clone_url":"https://github.com/postmanlabs/newman-reporter-remote.git","svn_url":"https://github.com/postmanlabs/newman-reporter-remote","homepage":null,"size":67,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"postmanlabs:develop","ref":"develop","sha":"81a7db582efc2fdb5af8af54a271a5bbadfef136","user":{"login":"postmanlabs","id":10251060,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMjUxMDYw","avatar_url":"https://avatars2.githubusercontent.com/u/10251060?v=4","gravatar_id":"","url":"https://api.github.com/users/postmanlabs","html_url":"https://github.com/postmanlabs","followers_url":"https://api.github.com/users/postmanlabs/followers","following_url":"https://api.github.com/users/postmanlabs/following{/other_user}","gists_url":"https://api.github.com/users/postmanlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/postmanlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postmanlabs/subscriptions","organizations_url":"https://api.github.com/users/postmanlabs/orgs","repos_url":"https://api.github.com/users/postmanlabs/repos","events_url":"https://api.github.com/users/postmanlabs/events{/privacy}","received_events_url":"https://api.github.com/users/postmanlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":153400045,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM0MDAwNDU=","name":"newman-reporter-remote","full_name":"postmanlabs/newman-reporter-remote","private":false,"owner":{"login":"postmanlabs","id":10251060,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMjUxMDYw","avatar_url":"https://avatars2.githubusercontent.com/u/10251060?v=4","gravatar_id":"","url":"https://api.github.com/users/postmanlabs","html_url":"https://github.com/postmanlabs","followers_url":"https://api.github.com/users/postmanlabs/followers","following_url":"https://api.github.com/users/postmanlabs/following{/other_user}","gists_url":"https://api.github.com/users/postmanlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/postmanlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postmanlabs/subscriptions","organizations_url":"https://api.github.com/users/postmanlabs/orgs","repos_url":"https://api.github.com/users/postmanlabs/repos","events_url":"https://api.github.com/users/postmanlabs/events{/privacy}","received_events_url":"https://api.github.com/users/postmanlabs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/postmanlabs/newman-reporter-remote","description":null,"fork":false,"url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote","forks_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/forks","keys_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/keys{/key_id}","collaborators_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/teams","hooks_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/hooks","issue_events_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/issues/events{/number}","events_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/events","assignees_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/assignees{/user}","branches_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/branches{/branch}","tags_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/tags","blobs_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/git/refs{/sha}","trees_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/git/trees{/sha}","statuses_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/statuses/{sha}","languages_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/languages","stargazers_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/stargazers","contributors_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/contributors","subscribers_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/subscribers","subscription_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/subscription","commits_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/commits{/sha}","git_commits_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/git/commits{/sha}","comments_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/comments{/number}","issue_comment_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/issues/comments{/number}","contents_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/contents/{+path}","compare_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/compare/{base}...{head}","merges_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/merges","archive_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/downloads","issues_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/issues{/number}","pulls_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/pulls{/number}","milestones_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/milestones{/number}","notifications_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/labels{/name}","releases_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/releases{/id}","deployments_url":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/deployments","created_at":"2018-10-17T05:26:59Z","updated_at":"2018-10-17T07:32:46Z","pushed_at":"2018-10-18T05:47:22Z","git_url":"git://github.com/postmanlabs/newman-reporter-remote.git","ssh_url":"git@github.com:postmanlabs/newman-reporter-remote.git","clone_url":"https://github.com/postmanlabs/newman-reporter-remote.git","svn_url":"https://github.com/postmanlabs/newman-reporter-remote","homepage":null,"size":67,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/pulls/1"},"html":{"href":"https://github.com/postmanlabs/newman-reporter-remote/pull/1"},"issue":{"href":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/issues/1"},"comments":{"href":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/postmanlabs/newman-reporter-remote/statuses/317e3848b815f35b4da83283cea3f148dc133294"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"saswatds"}}