{"action":"closed","number":1879,"pull_request":{"url":"https://api.github.com/repos/facebook/jest/pulls/1879","id":88202775,"html_url":"https://github.com/facebook/jest/pull/1879","diff_url":"https://github.com/facebook/jest/pull/1879.diff","patch_url":"https://github.com/facebook/jest/pull/1879.patch","issue_url":"https://api.github.com/repos/facebook/jest/issues/1879","number":1879,"state":"closed","locked":false,"title":"Normalize newlines across different OS.","user":{"login":"marvinhagemeister","id":1062408,"avatar_url":"https://avatars.githubusercontent.com/u/1062408?v=3","gravatar_id":"","url":"https://api.github.com/users/marvinhagemeister","html_url":"https://github.com/marvinhagemeister","followers_url":"https://api.github.com/users/marvinhagemeister/followers","following_url":"https://api.github.com/users/marvinhagemeister/following{/other_user}","gists_url":"https://api.github.com/users/marvinhagemeister/gists{/gist_id}","starred_url":"https://api.github.com/users/marvinhagemeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marvinhagemeister/subscriptions","organizations_url":"https://api.github.com/users/marvinhagemeister/orgs","repos_url":"https://api.github.com/users/marvinhagemeister/repos","events_url":"https://api.github.com/users/marvinhagemeister/events{/privacy}","received_events_url":"https://api.github.com/users/marvinhagemeister/received_events","type":"User","site_admin":false},"body":"<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. The two fields below are mandatory. -->\r\n\r\n**Summary**\r\n\r\nWindows uses `\\r\\n` for newlines. This PR normalizes this when saving snapshots to `\\n`.\r\n\r\n<!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? -->\r\n\r\nFixes #1878\r\n\r\n**Test plan**\r\n\r\n<!-- Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes UI. -->\r\n\r\nA simple test case is included in the PR.","created_at":"2016-10-06T05:56:51Z","updated_at":"2016-10-07T02:12:52Z","closed_at":"2016-10-07T02:12:52Z","merged_at":"2016-10-07T02:12:52Z","merge_commit_sha":"c279d31b3533c03d6a4fd1e8f0b541ade5593141","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/facebook/jest/pulls/1879/commits","review_comments_url":"https://api.github.com/repos/facebook/jest/pulls/1879/comments","review_comment_url":"https://api.github.com/repos/facebook/jest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facebook/jest/issues/1879/comments","statuses_url":"https://api.github.com/repos/facebook/jest/statuses/337dde9f02fb51699eaabb22d1ac93eee14f9077","head":{"label":"marvinhagemeister:normalize_newlines","ref":"normalize_newlines","sha":"337dde9f02fb51699eaabb22d1ac93eee14f9077","user":{"login":"marvinhagemeister","id":1062408,"avatar_url":"https://avatars.githubusercontent.com/u/1062408?v=3","gravatar_id":"","url":"https://api.github.com/users/marvinhagemeister","html_url":"https://github.com/marvinhagemeister","followers_url":"https://api.github.com/users/marvinhagemeister/followers","following_url":"https://api.github.com/users/marvinhagemeister/following{/other_user}","gists_url":"https://api.github.com/users/marvinhagemeister/gists{/gist_id}","starred_url":"https://api.github.com/users/marvinhagemeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marvinhagemeister/subscriptions","organizations_url":"https://api.github.com/users/marvinhagemeister/orgs","repos_url":"https://api.github.com/users/marvinhagemeister/repos","events_url":"https://api.github.com/users/marvinhagemeister/events{/privacy}","received_events_url":"https://api.github.com/users/marvinhagemeister/received_events","type":"User","site_admin":false},"repo":{"id":70125090,"name":"jest","full_name":"marvinhagemeister/jest","owner":{"login":"marvinhagemeister","id":1062408,"avatar_url":"https://avatars.githubusercontent.com/u/1062408?v=3","gravatar_id":"","url":"https://api.github.com/users/marvinhagemeister","html_url":"https://github.com/marvinhagemeister","followers_url":"https://api.github.com/users/marvinhagemeister/followers","following_url":"https://api.github.com/users/marvinhagemeister/following{/other_user}","gists_url":"https://api.github.com/users/marvinhagemeister/gists{/gist_id}","starred_url":"https://api.github.com/users/marvinhagemeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marvinhagemeister/subscriptions","organizations_url":"https://api.github.com/users/marvinhagemeister/orgs","repos_url":"https://api.github.com/users/marvinhagemeister/repos","events_url":"https://api.github.com/users/marvinhagemeister/events{/privacy}","received_events_url":"https://api.github.com/users/marvinhagemeister/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marvinhagemeister/jest","description":"🃏 Painless JavaScript Testing.","fork":true,"url":"https://api.github.com/repos/marvinhagemeister/jest","forks_url":"https://api.github.com/repos/marvinhagemeister/jest/forks","keys_url":"https://api.github.com/repos/marvinhagemeister/jest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marvinhagemeister/jest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marvinhagemeister/jest/teams","hooks_url":"https://api.github.com/repos/marvinhagemeister/jest/hooks","issue_events_url":"https://api.github.com/repos/marvinhagemeister/jest/issues/events{/number}","events_url":"https://api.github.com/repos/marvinhagemeister/jest/events","assignees_url":"https://api.github.com/repos/marvinhagemeister/jest/assignees{/user}","branches_url":"https://api.github.com/repos/marvinhagemeister/jest/branches{/branch}","tags_url":"https://api.github.com/repos/marvinhagemeister/jest/tags","blobs_url":"https://api.github.com/repos/marvinhagemeister/jest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marvinhagemeister/jest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marvinhagemeister/jest/git/refs{/sha}","trees_url":"https://api.github.com/repos/marvinhagemeister/jest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marvinhagemeister/jest/statuses/{sha}","languages_url":"https://api.github.com/repos/marvinhagemeister/jest/languages","stargazers_url":"https://api.github.com/repos/marvinhagemeister/jest/stargazers","contributors_url":"https://api.github.com/repos/marvinhagemeister/jest/contributors","subscribers_url":"https://api.github.com/repos/marvinhagemeister/jest/subscribers","subscription_url":"https://api.github.com/repos/marvinhagemeister/jest/subscription","commits_url":"https://api.github.com/repos/marvinhagemeister/jest/commits{/sha}","git_commits_url":"https://api.github.com/repos/marvinhagemeister/jest/git/commits{/sha}","comments_url":"https://api.github.com/repos/marvinhagemeister/jest/comments{/number}","issue_comment_url":"https://api.github.com/repos/marvinhagemeister/jest/issues/comments{/number}","contents_url":"https://api.github.com/repos/marvinhagemeister/jest/contents/{+path}","compare_url":"https://api.github.com/repos/marvinhagemeister/jest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marvinhagemeister/jest/merges","archive_url":"https://api.github.com/repos/marvinhagemeister/jest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marvinhagemeister/jest/downloads","issues_url":"https://api.github.com/repos/marvinhagemeister/jest/issues{/number}","pulls_url":"https://api.github.com/repos/marvinhagemeister/jest/pulls{/number}","milestones_url":"https://api.github.com/repos/marvinhagemeister/jest/milestones{/number}","notifications_url":"https://api.github.com/repos/marvinhagemeister/jest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marvinhagemeister/jest/labels{/name}","releases_url":"https://api.github.com/repos/marvinhagemeister/jest/releases{/id}","deployments_url":"https://api.github.com/repos/marvinhagemeister/jest/deployments","created_at":"2016-10-06T05:20:36Z","updated_at":"2016-10-06T05:20:38Z","pushed_at":"2016-10-06T06:44:24Z","git_url":"git://github.com/marvinhagemeister/jest.git","ssh_url":"git@github.com:marvinhagemeister/jest.git","clone_url":"https://github.com/marvinhagemeister/jest.git","svn_url":"https://github.com/marvinhagemeister/jest","homepage":"http://facebook.github.io/jest/","size":8230,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"facebook:master","ref":"master","sha":"832873e08b2bb2c21d3bdc960a6a248d0a9f9ac2","user":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"repo":{"id":15062869,"name":"jest","full_name":"facebook/jest","owner":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/facebook/jest","description":"🃏 Painless JavaScript Testing.","fork":false,"url":"https://api.github.com/repos/facebook/jest","forks_url":"https://api.github.com/repos/facebook/jest/forks","keys_url":"https://api.github.com/repos/facebook/jest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebook/jest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebook/jest/teams","hooks_url":"https://api.github.com/repos/facebook/jest/hooks","issue_events_url":"https://api.github.com/repos/facebook/jest/issues/events{/number}","events_url":"https://api.github.com/repos/facebook/jest/events","assignees_url":"https://api.github.com/repos/facebook/jest/assignees{/user}","branches_url":"https://api.github.com/repos/facebook/jest/branches{/branch}","tags_url":"https://api.github.com/repos/facebook/jest/tags","blobs_url":"https://api.github.com/repos/facebook/jest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebook/jest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebook/jest/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebook/jest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebook/jest/statuses/{sha}","languages_url":"https://api.github.com/repos/facebook/jest/languages","stargazers_url":"https://api.github.com/repos/facebook/jest/stargazers","contributors_url":"https://api.github.com/repos/facebook/jest/contributors","subscribers_url":"https://api.github.com/repos/facebook/jest/subscribers","subscription_url":"https://api.github.com/repos/facebook/jest/subscription","commits_url":"https://api.github.com/repos/facebook/jest/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebook/jest/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebook/jest/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebook/jest/issues/comments{/number}","contents_url":"https://api.github.com/repos/facebook/jest/contents/{+path}","compare_url":"https://api.github.com/repos/facebook/jest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebook/jest/merges","archive_url":"https://api.github.com/repos/facebook/jest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebook/jest/downloads","issues_url":"https://api.github.com/repos/facebook/jest/issues{/number}","pulls_url":"https://api.github.com/repos/facebook/jest/pulls{/number}","milestones_url":"https://api.github.com/repos/facebook/jest/milestones{/number}","notifications_url":"https://api.github.com/repos/facebook/jest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebook/jest/labels{/name}","releases_url":"https://api.github.com/repos/facebook/jest/releases{/id}","deployments_url":"https://api.github.com/repos/facebook/jest/deployments","created_at":"2013-12-10T00:18:04Z","updated_at":"2016-10-07T00:14:15Z","pushed_at":"2016-10-07T02:12:52Z","git_url":"git://github.com/facebook/jest.git","ssh_url":"git@github.com:facebook/jest.git","clone_url":"https://github.com/facebook/jest.git","svn_url":"https://github.com/facebook/jest","homepage":"http://facebook.github.io/jest/","size":10481,"stargazers_count":5674,"watchers_count":5674,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":695,"mirror_url":null,"open_issues_count":55,"forks":695,"open_issues":55,"watchers":5674,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/jest/pulls/1879"},"html":{"href":"https://github.com/facebook/jest/pull/1879"},"issue":{"href":"https://api.github.com/repos/facebook/jest/issues/1879"},"comments":{"href":"https://api.github.com/repos/facebook/jest/issues/1879/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/jest/pulls/1879/comments"},"review_comment":{"href":"https://api.github.com/repos/facebook/jest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facebook/jest/pulls/1879/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/jest/statuses/337dde9f02fb51699eaabb22d1ac93eee14f9077"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"cpojer","id":13352,"avatar_url":"https://avatars.githubusercontent.com/u/13352?v=3","gravatar_id":"","url":"https://api.github.com/users/cpojer","html_url":"https://github.com/cpojer","followers_url":"https://api.github.com/users/cpojer/followers","following_url":"https://api.github.com/users/cpojer/following{/other_user}","gists_url":"https://api.github.com/users/cpojer/gists{/gist_id}","starred_url":"https://api.github.com/users/cpojer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpojer/subscriptions","organizations_url":"https://api.github.com/users/cpojer/orgs","repos_url":"https://api.github.com/users/cpojer/repos","events_url":"https://api.github.com/users/cpojer/events{/privacy}","received_events_url":"https://api.github.com/users/cpojer/received_events","type":"User","site_admin":false},"comments":6,"review_comments":7,"commits":1,"additions":26,"deletions":2,"changed_files":2}}
{"actor":{"display_login":"cpojer"}}