{"action":"created","comment":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/comments/216034397","pull_request_review_id":153437632,"id":216034397,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNjAzNDM5Nw==","diff_hunk":"@@ -216,12 +216,14 @@ type InferInputOptions = {\n \n const recursiveOmitBy = (value, fn) => {\n   if (_.isObject(value)) {\n+    let newValue = {}","path":"packages/gatsby/src/schema/infer-graphql-input-fields.js","position":4,"original_position":4,"commit_id":"3299b925147d9aed6401b56d38c787de9d60a6c5","original_commit_id":"3299b925147d9aed6401b56d38c787de9d60a6c5","user":{"login":"pieh","id":419821,"node_id":"MDQ6VXNlcjQxOTgyMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/419821?v=4","gravatar_id":"","url":"https://api.github.com/users/pieh","html_url":"https://github.com/pieh","followers_url":"https://api.github.com/users/pieh/followers","following_url":"https://api.github.com/users/pieh/following{/other_user}","gists_url":"https://api.github.com/users/pieh/gists{/gist_id}","starred_url":"https://api.github.com/users/pieh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pieh/subscriptions","organizations_url":"https://api.github.com/users/pieh/orgs","repos_url":"https://api.github.com/users/pieh/repos","events_url":"https://api.github.com/users/pieh/events{/privacy}","received_events_url":"https://api.github.com/users/pieh/received_events","type":"User","site_admin":false},"body":"`value` can be array (`_.isObject([])` is `true` - gotta love JS :D) - need to create same structure here","created_at":"2018-09-07T17:37:40Z","updated_at":"2018-09-07T17:37:40Z","html_url":"https://github.com/gatsbyjs/gatsby/pull/7971#discussion_r216034397","pull_request_url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/7971","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/comments/216034397"},"html":{"href":"https://github.com/gatsbyjs/gatsby/pull/7971#discussion_r216034397"},"pull_request":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/7971"}}},"pull_request":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/7971","id":213988716,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEzOTg4NzE2","html_url":"https://github.com/gatsbyjs/gatsby/pull/7971","diff_url":"https://github.com/gatsbyjs/gatsby/pull/7971.diff","patch_url":"https://github.com/gatsbyjs/gatsby/pull/7971.patch","issue_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/7971","number":7971,"state":"open","locked":false,"title":"[v2] fix recursiveOmitBy modifying originalValue","user":{"login":"ardeois","id":1867939,"node_id":"MDQ6VXNlcjE4Njc5Mzk=","avatar_url":"https://avatars0.githubusercontent.com/u/1867939?v=4","gravatar_id":"","url":"https://api.github.com/users/ardeois","html_url":"https://github.com/ardeois","followers_url":"https://api.github.com/users/ardeois/followers","following_url":"https://api.github.com/users/ardeois/following{/other_user}","gists_url":"https://api.github.com/users/ardeois/gists{/gist_id}","starred_url":"https://api.github.com/users/ardeois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ardeois/subscriptions","organizations_url":"https://api.github.com/users/ardeois/orgs","repos_url":"https://api.github.com/users/ardeois/repos","events_url":"https://api.github.com/users/ardeois/events{/privacy}","received_events_url":"https://api.github.com/users/ardeois/received_events","type":"User","site_admin":false},"body":"<!--\r\n  Q. Which branch should I use for my pull request?\r\n  A. Use `master` branch (probably).\r\n\r\n  Q. Which branch if my change is an update to Gatsby v2?\r\n  A. Definitely use `master` branch :)\r\n\r\n  Q. Which branch if my change is an update to documentation or gatsbyjs.org?\r\n  A. Use `master` branch. A Gatsby maintainer will copy your changes over to the `v1` branch for you\r\n\r\n  Q. Which branch if my change is a bug fix for Gatsby v1?\r\n  A. In this case, you should use the `v1` branch\r\n\r\n  Q. Which branch if I'm still not sure?\r\n  A. Use `master` branch. Ask in the PR if you're not sure and a Gatsby maintainer will be happy to help :)\r\n\r\n  Note: We will only accept bug fixes for Gatsby v1. New features should be added to Gatsby v2.\r\n\r\n  Learn more about contributing: https://www.gatsbyjs.org/docs/how-to-contribute/\r\n-->\r\nWhen calling `recursiveOmitBy(value, ...)`, if `value` was an array\r\nthis method was actually modifying the original array instead of returning\r\na new one\r\n\r\n*Note*: I tried to add a unit test in `infer-graphql-input-type-test.js` but I didn't find a way to create a type containing an array of type.\r\n\r\nfixes #7970\r\n\r\n","created_at":"2018-09-07T17:09:29Z","updated_at":"2018-09-07T17:37:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"78674b2a4f8dfbebc1e3fc526c775565e3706782","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/7971/commits","review_comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/7971/comments","review_comment_url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/7971/comments","statuses_url":"https://api.github.com/repos/gatsbyjs/gatsby/statuses/3299b925147d9aed6401b56d38c787de9d60a6c5","head":{"label":"ardeois:master","ref":"master","sha":"3299b925147d9aed6401b56d38c787de9d60a6c5","user":{"login":"ardeois","id":1867939,"node_id":"MDQ6VXNlcjE4Njc5Mzk=","avatar_url":"https://avatars0.githubusercontent.com/u/1867939?v=4","gravatar_id":"","url":"https://api.github.com/users/ardeois","html_url":"https://github.com/ardeois","followers_url":"https://api.github.com/users/ardeois/followers","following_url":"https://api.github.com/users/ardeois/following{/other_user}","gists_url":"https://api.github.com/users/ardeois/gists{/gist_id}","starred_url":"https://api.github.com/users/ardeois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ardeois/subscriptions","organizations_url":"https://api.github.com/users/ardeois/orgs","repos_url":"https://api.github.com/users/ardeois/repos","events_url":"https://api.github.com/users/ardeois/events{/privacy}","received_events_url":"https://api.github.com/users/ardeois/received_events","type":"User","site_admin":false},"repo":{"id":147841133,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc4NDExMzM=","name":"gatsby","full_name":"ardeois/gatsby","owner":{"login":"ardeois","id":1867939,"node_id":"MDQ6VXNlcjE4Njc5Mzk=","avatar_url":"https://avatars0.githubusercontent.com/u/1867939?v=4","gravatar_id":"","url":"https://api.github.com/users/ardeois","html_url":"https://github.com/ardeois","followers_url":"https://api.github.com/users/ardeois/followers","following_url":"https://api.github.com/users/ardeois/following{/other_user}","gists_url":"https://api.github.com/users/ardeois/gists{/gist_id}","starred_url":"https://api.github.com/users/ardeois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ardeois/subscriptions","organizations_url":"https://api.github.com/users/ardeois/orgs","repos_url":"https://api.github.com/users/ardeois/repos","events_url":"https://api.github.com/users/ardeois/events{/privacy}","received_events_url":"https://api.github.com/users/ardeois/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ardeois/gatsby","description":"⚛️📄🚀 Blazing fast site generator for React","fork":true,"url":"https://api.github.com/repos/ardeois/gatsby","forks_url":"https://api.github.com/repos/ardeois/gatsby/forks","keys_url":"https://api.github.com/repos/ardeois/gatsby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ardeois/gatsby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ardeois/gatsby/teams","hooks_url":"https://api.github.com/repos/ardeois/gatsby/hooks","issue_events_url":"https://api.github.com/repos/ardeois/gatsby/issues/events{/number}","events_url":"https://api.github.com/repos/ardeois/gatsby/events","assignees_url":"https://api.github.com/repos/ardeois/gatsby/assignees{/user}","branches_url":"https://api.github.com/repos/ardeois/gatsby/branches{/branch}","tags_url":"https://api.github.com/repos/ardeois/gatsby/tags","blobs_url":"https://api.github.com/repos/ardeois/gatsby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ardeois/gatsby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ardeois/gatsby/git/refs{/sha}","trees_url":"https://api.github.com/repos/ardeois/gatsby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ardeois/gatsby/statuses/{sha}","languages_url":"https://api.github.com/repos/ardeois/gatsby/languages","stargazers_url":"https://api.github.com/repos/ardeois/gatsby/stargazers","contributors_url":"https://api.github.com/repos/ardeois/gatsby/contributors","subscribers_url":"https://api.github.com/repos/ardeois/gatsby/subscribers","subscription_url":"https://api.github.com/repos/ardeois/gatsby/subscription","commits_url":"https://api.github.com/repos/ardeois/gatsby/commits{/sha}","git_commits_url":"https://api.github.com/repos/ardeois/gatsby/git/commits{/sha}","comments_url":"https://api.github.com/repos/ardeois/gatsby/comments{/number}","issue_comment_url":"https://api.github.com/repos/ardeois/gatsby/issues/comments{/number}","contents_url":"https://api.github.com/repos/ardeois/gatsby/contents/{+path}","compare_url":"https://api.github.com/repos/ardeois/gatsby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ardeois/gatsby/merges","archive_url":"https://api.github.com/repos/ardeois/gatsby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ardeois/gatsby/downloads","issues_url":"https://api.github.com/repos/ardeois/gatsby/issues{/number}","pulls_url":"https://api.github.com/repos/ardeois/gatsby/pulls{/number}","milestones_url":"https://api.github.com/repos/ardeois/gatsby/milestones{/number}","notifications_url":"https://api.github.com/repos/ardeois/gatsby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ardeois/gatsby/labels{/name}","releases_url":"https://api.github.com/repos/ardeois/gatsby/releases{/id}","deployments_url":"https://api.github.com/repos/ardeois/gatsby/deployments","created_at":"2018-09-07T15:21:51Z","updated_at":"2018-09-07T17:07:33Z","pushed_at":"2018-09-07T17:07:31Z","git_url":"git://github.com/ardeois/gatsby.git","ssh_url":"git@github.com:ardeois/gatsby.git","clone_url":"https://github.com/ardeois/gatsby.git","svn_url":"https://github.com/ardeois/gatsby","homepage":"https://www.gatsbyjs.org","size":420943,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gatsbyjs:master","ref":"master","sha":"8652f7b9bae42735c8a33401662fab13f5e193fe","user":{"login":"gatsbyjs","id":12551863,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNTUxODYz","avatar_url":"https://avatars1.githubusercontent.com/u/12551863?v=4","gravatar_id":"","url":"https://api.github.com/users/gatsbyjs","html_url":"https://github.com/gatsbyjs","followers_url":"https://api.github.com/users/gatsbyjs/followers","following_url":"https://api.github.com/users/gatsbyjs/following{/other_user}","gists_url":"https://api.github.com/users/gatsbyjs/gists{/gist_id}","starred_url":"https://api.github.com/users/gatsbyjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gatsbyjs/subscriptions","organizations_url":"https://api.github.com/users/gatsbyjs/orgs","repos_url":"https://api.github.com/users/gatsbyjs/repos","events_url":"https://api.github.com/users/gatsbyjs/events{/privacy}","received_events_url":"https://api.github.com/users/gatsbyjs/received_events","type":"Organization","site_admin":false},"repo":{"id":36040894,"node_id":"MDEwOlJlcG9zaXRvcnkzNjA0MDg5NA==","name":"gatsby","full_name":"gatsbyjs/gatsby","owner":{"login":"gatsbyjs","id":12551863,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNTUxODYz","avatar_url":"https://avatars1.githubusercontent.com/u/12551863?v=4","gravatar_id":"","url":"https://api.github.com/users/gatsbyjs","html_url":"https://github.com/gatsbyjs","followers_url":"https://api.github.com/users/gatsbyjs/followers","following_url":"https://api.github.com/users/gatsbyjs/following{/other_user}","gists_url":"https://api.github.com/users/gatsbyjs/gists{/gist_id}","starred_url":"https://api.github.com/users/gatsbyjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gatsbyjs/subscriptions","organizations_url":"https://api.github.com/users/gatsbyjs/orgs","repos_url":"https://api.github.com/users/gatsbyjs/repos","events_url":"https://api.github.com/users/gatsbyjs/events{/privacy}","received_events_url":"https://api.github.com/users/gatsbyjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gatsbyjs/gatsby","description":"⚛️📄🚀 Blazing fast site generator for React","fork":false,"url":"https://api.github.com/repos/gatsbyjs/gatsby","forks_url":"https://api.github.com/repos/gatsbyjs/gatsby/forks","keys_url":"https://api.github.com/repos/gatsbyjs/gatsby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gatsbyjs/gatsby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gatsbyjs/gatsby/teams","hooks_url":"https://api.github.com/repos/gatsbyjs/gatsby/hooks","issue_events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/events{/number}","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/events","assignees_url":"https://api.github.com/repos/gatsbyjs/gatsby/assignees{/user}","branches_url":"https://api.github.com/repos/gatsbyjs/gatsby/branches{/branch}","tags_url":"https://api.github.com/repos/gatsbyjs/gatsby/tags","blobs_url":"https://api.github.com/repos/gatsbyjs/gatsby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gatsbyjs/gatsby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gatsbyjs/gatsby/git/refs{/sha}","trees_url":"https://api.github.com/repos/gatsbyjs/gatsby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gatsbyjs/gatsby/statuses/{sha}","languages_url":"https://api.github.com/repos/gatsbyjs/gatsby/languages","stargazers_url":"https://api.github.com/repos/gatsbyjs/gatsby/stargazers","contributors_url":"https://api.github.com/repos/gatsbyjs/gatsby/contributors","subscribers_url":"https://api.github.com/repos/gatsbyjs/gatsby/subscribers","subscription_url":"https://api.github.com/repos/gatsbyjs/gatsby/subscription","commits_url":"https://api.github.com/repos/gatsbyjs/gatsby/commits{/sha}","git_commits_url":"https://api.github.com/repos/gatsbyjs/gatsby/git/commits{/sha}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/comments{/number}","issue_comment_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/comments{/number}","contents_url":"https://api.github.com/repos/gatsbyjs/gatsby/contents/{+path}","compare_url":"https://api.github.com/repos/gatsbyjs/gatsby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gatsbyjs/gatsby/merges","archive_url":"https://api.github.com/repos/gatsbyjs/gatsby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gatsbyjs/gatsby/downloads","issues_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues{/number}","pulls_url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls{/number}","milestones_url":"https://api.github.com/repos/gatsbyjs/gatsby/milestones{/number}","notifications_url":"https://api.github.com/repos/gatsbyjs/gatsby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/labels{/name}","releases_url":"https://api.github.com/repos/gatsbyjs/gatsby/releases{/id}","deployments_url":"https://api.github.com/repos/gatsbyjs/gatsby/deployments","created_at":"2015-05-21T22:43:05Z","updated_at":"2018-09-07T17:32:19Z","pushed_at":"2018-09-07T17:09:29Z","git_url":"git://github.com/gatsbyjs/gatsby.git","ssh_url":"git@github.com:gatsbyjs/gatsby.git","clone_url":"https://github.com/gatsbyjs/gatsby.git","svn_url":"https://github.com/gatsbyjs/gatsby","homepage":"https://www.gatsbyjs.org","size":420214,"stargazers_count":25323,"watchers_count":25323,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2812,"mirror_url":null,"archived":false,"open_issues_count":1065,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2812,"open_issues":1065,"watchers":25323,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/7971"},"html":{"href":"https://github.com/gatsbyjs/gatsby/pull/7971"},"issue":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/issues/7971"},"comments":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/issues/7971/comments"},"review_comments":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/7971/comments"},"review_comment":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/7971/commits"},"statuses":{"href":"https://api.github.com/repos/gatsbyjs/gatsby/statuses/3299b925147d9aed6401b56d38c787de9d60a6c5"}},"author_association":"NONE"}}
{"actor":{"display_login":"pieh"}}