{"action":"created","comment":{"url":"https://api.github.com/repos/j-f1/eslint-docs/pulls/comments/242751504","pull_request_review_id":186338600,"id":242751504,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0Mjc1MTUwNA==","diff_hunk":"@@ -74,4 +74,45 @@ describe('readRule()', () => {\n       runReadRule(undefined, docs.replace('\\n', '\\r\\n')).newDocs\n     ).toMatchSnapshot()\n   })\n+\n+  it('mixed windows and unix newlines', () => {\n+    const docs = `# ${description} (${name})\\nSome random test:\\r\\n\\r\\n`\n+\n+    expect(runReadRule(undefined, docs).newDocs).toBe(docs)\n+  })\n+\n+  it('whitespaces before heading', () => {\n+    const docs = `\\n\\n\\n\\n\\r\\n# ${description} (${name})\\n`\n+    const outputDocs = `# ${description} (${name})\\n`\n+\n+    expect(runReadRule(undefined, docs).newDocs).toBe(outputDocs)\n+  })\n+\n+  it('non string text before heading', () => {\n+    const docs = `\\nTest\\n`\n+    const outputDocs = `# ${description} (${name})\\n\\nTest\\n`\n+\n+    expect(runReadRule(undefined, docs).newDocs).toBe(outputDocs)\n+  })\n+\n+  it('non string text before heading without new line', () => {\n+    const docs = `Test\\n`\n+    const outputDocs = `# ${description} (${name})\\nTest\\n`\n+\n+    expect(runReadRule(undefined, docs).newDocs).toBe(outputDocs)\n+  })\n+\n+  it('single line heading', () => {\n+    const docs = `# Test`\n+    const outputDocs = `# ${description} (${name})`\n+\n+    expect(runReadRule(undefined, docs).newDocs).toBe(outputDocs)\n+  })\n+\n+  it('empty file', () => {","path":"src/actions/__tests__/read-rule.test.js","position":39,"original_position":39,"commit_id":"2cb2886956d49bc63bee0aed69b699386cbcdcb7","original_commit_id":"2cb2886956d49bc63bee0aed69b699386cbcdcb7","user":{"login":"j-f1","id":25517624,"node_id":"MDQ6VXNlcjI1NTE3NjI0","avatar_url":"https://avatars2.githubusercontent.com/u/25517624?v=4","gravatar_id":"","url":"https://api.github.com/users/j-f1","html_url":"https://github.com/j-f1","followers_url":"https://api.github.com/users/j-f1/followers","following_url":"https://api.github.com/users/j-f1/following{/other_user}","gists_url":"https://api.github.com/users/j-f1/gists{/gist_id}","starred_url":"https://api.github.com/users/j-f1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j-f1/subscriptions","organizations_url":"https://api.github.com/users/j-f1/orgs","repos_url":"https://api.github.com/users/j-f1/repos","events_url":"https://api.github.com/users/j-f1/events{/privacy}","received_events_url":"https://api.github.com/users/j-f1/received_events","type":"User","site_admin":false},"body":"Can you rephrase these so they form complete sentences?\r\n\r\n```suggestion\r\n  it('handles an empty file properly', () => {\r\n```\r\n\r\n(If you need assistance, please don’t hesitate to ask for help)","created_at":"2018-12-19T00:05:53Z","updated_at":"2018-12-19T00:08:53Z","html_url":"https://github.com/j-f1/eslint-docs/pull/37#discussion_r242751504","pull_request_url":"https://api.github.com/repos/j-f1/eslint-docs/pulls/37","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/j-f1/eslint-docs/pulls/comments/242751504"},"html":{"href":"https://github.com/j-f1/eslint-docs/pull/37#discussion_r242751504"},"pull_request":{"href":"https://api.github.com/repos/j-f1/eslint-docs/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/j-f1/eslint-docs/pulls/37","id":239666765,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM5NjY2NzY1","html_url":"https://github.com/j-f1/eslint-docs/pull/37","diff_url":"https://github.com/j-f1/eslint-docs/pull/37.diff","patch_url":"https://github.com/j-f1/eslint-docs/pull/37.patch","issue_url":"https://api.github.com/repos/j-f1/eslint-docs/issues/37","number":37,"state":"open","locked":false,"title":"fix: issue with preserving new line characters in read-rule","user":{"login":"armano2","id":625469,"node_id":"MDQ6VXNlcjYyNTQ2OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/625469?v=4","gravatar_id":"","url":"https://api.github.com/users/armano2","html_url":"https://github.com/armano2","followers_url":"https://api.github.com/users/armano2/followers","following_url":"https://api.github.com/users/armano2/following{/other_user}","gists_url":"https://api.github.com/users/armano2/gists{/gist_id}","starred_url":"https://api.github.com/users/armano2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/armano2/subscriptions","organizations_url":"https://api.github.com/users/armano2/orgs","repos_url":"https://api.github.com/users/armano2/repos","events_url":"https://api.github.com/users/armano2/events{/privacy}","received_events_url":"https://api.github.com/users/armano2/received_events","type":"User","site_admin":false},"body":"\r\nfixes: https://github.com/bradzacher/eslint-plugin-typescript/issues/249\r\n","created_at":"2018-12-18T23:33:46Z","updated_at":"2018-12-19T00:08:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2251f1e655caedb60fde79c92612660589685344","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/j-f1/eslint-docs/pulls/37/commits","review_comments_url":"https://api.github.com/repos/j-f1/eslint-docs/pulls/37/comments","review_comment_url":"https://api.github.com/repos/j-f1/eslint-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/j-f1/eslint-docs/issues/37/comments","statuses_url":"https://api.github.com/repos/j-f1/eslint-docs/statuses/2cb2886956d49bc63bee0aed69b699386cbcdcb7","head":{"label":"j-f1:preserve-eol","ref":"preserve-eol","sha":"2cb2886956d49bc63bee0aed69b699386cbcdcb7","user":{"login":"j-f1","id":25517624,"node_id":"MDQ6VXNlcjI1NTE3NjI0","avatar_url":"https://avatars2.githubusercontent.com/u/25517624?v=4","gravatar_id":"","url":"https://api.github.com/users/j-f1","html_url":"https://github.com/j-f1","followers_url":"https://api.github.com/users/j-f1/followers","following_url":"https://api.github.com/users/j-f1/following{/other_user}","gists_url":"https://api.github.com/users/j-f1/gists{/gist_id}","starred_url":"https://api.github.com/users/j-f1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j-f1/subscriptions","organizations_url":"https://api.github.com/users/j-f1/orgs","repos_url":"https://api.github.com/users/j-f1/repos","events_url":"https://api.github.com/users/j-f1/events{/privacy}","received_events_url":"https://api.github.com/users/j-f1/received_events","type":"User","site_admin":false},"repo":{"id":100884355,"node_id":"MDEwOlJlcG9zaXRvcnkxMDA4ODQzNTU=","name":"eslint-docs","full_name":"j-f1/eslint-docs","private":false,"owner":{"login":"j-f1","id":25517624,"node_id":"MDQ6VXNlcjI1NTE3NjI0","avatar_url":"https://avatars2.githubusercontent.com/u/25517624?v=4","gravatar_id":"","url":"https://api.github.com/users/j-f1","html_url":"https://github.com/j-f1","followers_url":"https://api.github.com/users/j-f1/followers","following_url":"https://api.github.com/users/j-f1/following{/other_user}","gists_url":"https://api.github.com/users/j-f1/gists{/gist_id}","starred_url":"https://api.github.com/users/j-f1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j-f1/subscriptions","organizations_url":"https://api.github.com/users/j-f1/orgs","repos_url":"https://api.github.com/users/j-f1/repos","events_url":"https://api.github.com/users/j-f1/events{/privacy}","received_events_url":"https://api.github.com/users/j-f1/received_events","type":"User","site_admin":false},"html_url":"https://github.com/j-f1/eslint-docs","description":"Keep your rule names and descriptions up-to-date across your repo","fork":false,"url":"https://api.github.com/repos/j-f1/eslint-docs","forks_url":"https://api.github.com/repos/j-f1/eslint-docs/forks","keys_url":"https://api.github.com/repos/j-f1/eslint-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/j-f1/eslint-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/j-f1/eslint-docs/teams","hooks_url":"https://api.github.com/repos/j-f1/eslint-docs/hooks","issue_events_url":"https://api.github.com/repos/j-f1/eslint-docs/issues/events{/number}","events_url":"https://api.github.com/repos/j-f1/eslint-docs/events","assignees_url":"https://api.github.com/repos/j-f1/eslint-docs/assignees{/user}","branches_url":"https://api.github.com/repos/j-f1/eslint-docs/branches{/branch}","tags_url":"https://api.github.com/repos/j-f1/eslint-docs/tags","blobs_url":"https://api.github.com/repos/j-f1/eslint-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/j-f1/eslint-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/j-f1/eslint-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/j-f1/eslint-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/j-f1/eslint-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/j-f1/eslint-docs/languages","stargazers_url":"https://api.github.com/repos/j-f1/eslint-docs/stargazers","contributors_url":"https://api.github.com/repos/j-f1/eslint-docs/contributors","subscribers_url":"https://api.github.com/repos/j-f1/eslint-docs/subscribers","subscription_url":"https://api.github.com/repos/j-f1/eslint-docs/subscription","commits_url":"https://api.github.com/repos/j-f1/eslint-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/j-f1/eslint-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/j-f1/eslint-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/j-f1/eslint-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/j-f1/eslint-docs/contents/{+path}","compare_url":"https://api.github.com/repos/j-f1/eslint-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/j-f1/eslint-docs/merges","archive_url":"https://api.github.com/repos/j-f1/eslint-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/j-f1/eslint-docs/downloads","issues_url":"https://api.github.com/repos/j-f1/eslint-docs/issues{/number}","pulls_url":"https://api.github.com/repos/j-f1/eslint-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/j-f1/eslint-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/j-f1/eslint-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/j-f1/eslint-docs/labels{/name}","releases_url":"https://api.github.com/repos/j-f1/eslint-docs/releases{/id}","deployments_url":"https://api.github.com/repos/j-f1/eslint-docs/deployments","created_at":"2017-08-20T19:37:31Z","updated_at":"2018-12-16T22:45:05Z","pushed_at":"2018-12-18T23:33:46Z","git_url":"git://github.com/j-f1/eslint-docs.git","ssh_url":"git@github.com:j-f1/eslint-docs.git","clone_url":"https://github.com/j-f1/eslint-docs.git","svn_url":"https://github.com/j-f1/eslint-docs","homepage":"https://j-f1.github.io/eslint-docs","size":420,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"isc","name":"ISC License","spdx_id":"ISC","url":"https://api.github.com/licenses/isc","node_id":"MDc6TGljZW5zZTEw"},"forks":2,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"j-f1:master","ref":"master","sha":"5f0fdb50e46fe75d8ae42baa58cd720669fe95e5","user":{"login":"j-f1","id":25517624,"node_id":"MDQ6VXNlcjI1NTE3NjI0","avatar_url":"https://avatars2.githubusercontent.com/u/25517624?v=4","gravatar_id":"","url":"https://api.github.com/users/j-f1","html_url":"https://github.com/j-f1","followers_url":"https://api.github.com/users/j-f1/followers","following_url":"https://api.github.com/users/j-f1/following{/other_user}","gists_url":"https://api.github.com/users/j-f1/gists{/gist_id}","starred_url":"https://api.github.com/users/j-f1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j-f1/subscriptions","organizations_url":"https://api.github.com/users/j-f1/orgs","repos_url":"https://api.github.com/users/j-f1/repos","events_url":"https://api.github.com/users/j-f1/events{/privacy}","received_events_url":"https://api.github.com/users/j-f1/received_events","type":"User","site_admin":false},"repo":{"id":100884355,"node_id":"MDEwOlJlcG9zaXRvcnkxMDA4ODQzNTU=","name":"eslint-docs","full_name":"j-f1/eslint-docs","private":false,"owner":{"login":"j-f1","id":25517624,"node_id":"MDQ6VXNlcjI1NTE3NjI0","avatar_url":"https://avatars2.githubusercontent.com/u/25517624?v=4","gravatar_id":"","url":"https://api.github.com/users/j-f1","html_url":"https://github.com/j-f1","followers_url":"https://api.github.com/users/j-f1/followers","following_url":"https://api.github.com/users/j-f1/following{/other_user}","gists_url":"https://api.github.com/users/j-f1/gists{/gist_id}","starred_url":"https://api.github.com/users/j-f1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j-f1/subscriptions","organizations_url":"https://api.github.com/users/j-f1/orgs","repos_url":"https://api.github.com/users/j-f1/repos","events_url":"https://api.github.com/users/j-f1/events{/privacy}","received_events_url":"https://api.github.com/users/j-f1/received_events","type":"User","site_admin":false},"html_url":"https://github.com/j-f1/eslint-docs","description":"Keep your rule names and descriptions up-to-date across your repo","fork":false,"url":"https://api.github.com/repos/j-f1/eslint-docs","forks_url":"https://api.github.com/repos/j-f1/eslint-docs/forks","keys_url":"https://api.github.com/repos/j-f1/eslint-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/j-f1/eslint-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/j-f1/eslint-docs/teams","hooks_url":"https://api.github.com/repos/j-f1/eslint-docs/hooks","issue_events_url":"https://api.github.com/repos/j-f1/eslint-docs/issues/events{/number}","events_url":"https://api.github.com/repos/j-f1/eslint-docs/events","assignees_url":"https://api.github.com/repos/j-f1/eslint-docs/assignees{/user}","branches_url":"https://api.github.com/repos/j-f1/eslint-docs/branches{/branch}","tags_url":"https://api.github.com/repos/j-f1/eslint-docs/tags","blobs_url":"https://api.github.com/repos/j-f1/eslint-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/j-f1/eslint-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/j-f1/eslint-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/j-f1/eslint-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/j-f1/eslint-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/j-f1/eslint-docs/languages","stargazers_url":"https://api.github.com/repos/j-f1/eslint-docs/stargazers","contributors_url":"https://api.github.com/repos/j-f1/eslint-docs/contributors","subscribers_url":"https://api.github.com/repos/j-f1/eslint-docs/subscribers","subscription_url":"https://api.github.com/repos/j-f1/eslint-docs/subscription","commits_url":"https://api.github.com/repos/j-f1/eslint-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/j-f1/eslint-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/j-f1/eslint-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/j-f1/eslint-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/j-f1/eslint-docs/contents/{+path}","compare_url":"https://api.github.com/repos/j-f1/eslint-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/j-f1/eslint-docs/merges","archive_url":"https://api.github.com/repos/j-f1/eslint-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/j-f1/eslint-docs/downloads","issues_url":"https://api.github.com/repos/j-f1/eslint-docs/issues{/number}","pulls_url":"https://api.github.com/repos/j-f1/eslint-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/j-f1/eslint-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/j-f1/eslint-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/j-f1/eslint-docs/labels{/name}","releases_url":"https://api.github.com/repos/j-f1/eslint-docs/releases{/id}","deployments_url":"https://api.github.com/repos/j-f1/eslint-docs/deployments","created_at":"2017-08-20T19:37:31Z","updated_at":"2018-12-16T22:45:05Z","pushed_at":"2018-12-18T23:33:46Z","git_url":"git://github.com/j-f1/eslint-docs.git","ssh_url":"git@github.com:j-f1/eslint-docs.git","clone_url":"https://github.com/j-f1/eslint-docs.git","svn_url":"https://github.com/j-f1/eslint-docs","homepage":"https://j-f1.github.io/eslint-docs","size":420,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"isc","name":"ISC License","spdx_id":"ISC","url":"https://api.github.com/licenses/isc","node_id":"MDc6TGljZW5zZTEw"},"forks":2,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/j-f1/eslint-docs/pulls/37"},"html":{"href":"https://github.com/j-f1/eslint-docs/pull/37"},"issue":{"href":"https://api.github.com/repos/j-f1/eslint-docs/issues/37"},"comments":{"href":"https://api.github.com/repos/j-f1/eslint-docs/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/j-f1/eslint-docs/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/j-f1/eslint-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/j-f1/eslint-docs/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/j-f1/eslint-docs/statuses/2cb2886956d49bc63bee0aed69b699386cbcdcb7"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"j-f1"}}