{"action":"created","comment":{"url":"https://api.github.com/repos/atom/github/pulls/comments/117597753","pull_request_review_id":39323150,"id":117597753,"diff_hunk":"@@ -39,130 +39,6 @@ import {fsStat, normalizeGitHelperPath, writeFile} from '../lib/helpers';\n       });\n     });\n \n-    describe('getStatusesForChangedFiles', function() {\n-      it('returns objects for staged and unstaged files, including status information', async function() {\n-        const workingDirPath = await cloneRepository('three-files');\n-        const git = createTestStrategy(workingDirPath);\n-        fs.writeFileSync(path.join(workingDirPath, 'a.txt'), 'qux\\nfoo\\nbar\\n', 'utf8');\n-        fs.unlinkSync(path.join(workingDirPath, 'b.txt'));\n-        fs.renameSync(path.join(workingDirPath, 'c.txt'), path.join(workingDirPath, 'd.txt'));\n-        fs.writeFileSync(path.join(workingDirPath, 'e.txt'), 'qux', 'utf8');\n-        await git.exec(['add', 'a.txt', 'e.txt']);\n-        fs.writeFileSync(path.join(workingDirPath, 'a.txt'), 'modify after staging', 'utf8');\n-        fs.writeFileSync(path.join(workingDirPath, 'e.txt'), 'modify after staging', 'utf8');\n-        const {stagedFiles, unstagedFiles, mergeConflictFiles} = await git.getStatusesForChangedFiles();\n-        assert.deepEqual(stagedFiles, {\n-          'a.txt': 'modified',\n-          'e.txt': 'added',\n-        });\n-        assert.deepEqual(unstagedFiles, {\n-          'a.txt': 'modified',\n-          'b.txt': 'deleted',\n-          'c.txt': 'deleted',\n-          'd.txt': 'added',\n-          'e.txt': 'modified',\n-        });\n-        assert.deepEqual(mergeConflictFiles, {});\n-      });\n-\n-      it('displays renamed files as one removed file and one added file', async function() {\n-        const workingDirPath = await cloneRepository('three-files');\n-        const git = createTestStrategy(workingDirPath);\n-        fs.renameSync(path.join(workingDirPath, 'c.txt'), path.join(workingDirPath, 'd.txt'));\n-        await git.exec(['add', '.']);\n-        const {stagedFiles, unstagedFiles, mergeConflictFiles} = await git.getStatusesForChangedFiles();\n-        assert.deepEqual(stagedFiles, {\n-          'c.txt': 'deleted',\n-          'd.txt': 'added',\n-        });\n-        assert.deepEqual(unstagedFiles, {});\n-        assert.deepEqual(mergeConflictFiles, {});\n-      });\n-\n-      it('displays copied files as an added file', async function() {\n-        // This repo is carefully constructed after much experimentation\n-        // to cause git to detect `two.cc` as a copy of `one.cc`.\n-        const workingDirPath = await cloneRepository('copied-file');\n-        const git = createTestStrategy(workingDirPath);\n-        // Undo the last commit, which is where we copied one.cc to two.cc\n-        // and then emptied one.cc.\n-        await git.exec(['reset', '--soft', 'HEAD^']);\n-        const {stagedFiles, unstagedFiles, mergeConflictFiles} = await git.getStatusesForChangedFiles();\n-        assert.deepEqual(stagedFiles, {\n-          'one.cc': 'modified',\n-          'two.cc': 'added',\n-        });\n-        assert.deepEqual(unstagedFiles, {});\n-        assert.deepEqual(mergeConflictFiles, {});\n-      });\n-\n-      it('returns an object for merge conflict files, including ours/theirs/file status information', async function() {\n-        const workingDirPath = await cloneRepository('merge-conflict');\n-        const git = createTestStrategy(workingDirPath);\n-        try {\n-          await git.merge('origin/branch');\n-        } catch (e) {\n-          // expected\n-          if (!e.message.match(/CONFLICT/)) {\n-            throw new Error(`merge failed for wrong reason: ${e.message}`);\n-          }\n-        }\n-\n-        const {stagedFiles, unstagedFiles, mergeConflictFiles} = await git.getStatusesForChangedFiles();\n-        assert.deepEqual(stagedFiles, {});\n-        assert.deepEqual(unstagedFiles, {});\n-\n-        assert.deepEqual(mergeConflictFiles, {\n-          'added-to-both.txt': {\n-            ours: 'added',\n-            theirs: 'added',\n-            file: 'modified',\n-          },\n-          'modified-on-both-ours.txt': {\n-            ours: 'modified',\n-            theirs: 'modified',\n-            file: 'modified',\n-          },\n-          'modified-on-both-theirs.txt': {\n-            ours: 'modified',\n-            theirs: 'modified',\n-            file: 'modified',\n-          },\n-          'removed-on-branch.txt': {\n-            ours: 'modified',\n-            theirs: 'deleted',\n-            file: 'equivalent',\n-          },\n-          'removed-on-master.txt': {\n-            ours: 'deleted',\n-            theirs: 'modified',\n-            file: 'added',\n-          },\n-        });\n-      });\n-\n-      if (process.platform === 'win32') {\n-        it('normalizes the path separator on Windows', async function() {","path":"test/git-strategies.test.js","position":107,"original_position":107,"commit_id":"1c5e55586f987f1a6cbd9fc976f4d25c9977d555","original_commit_id":"1c5e55586f987f1a6cbd9fc976f4d25c9977d555","user":{"login":"smashwilson","id":17565,"avatar_url":"https://avatars1.githubusercontent.com/u/17565?v=3","gravatar_id":"","url":"https://api.github.com/users/smashwilson","html_url":"https://github.com/smashwilson","followers_url":"https://api.github.com/users/smashwilson/followers","following_url":"https://api.github.com/users/smashwilson/following{/other_user}","gists_url":"https://api.github.com/users/smashwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/smashwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smashwilson/subscriptions","organizations_url":"https://api.github.com/users/smashwilson/orgs","repos_url":"https://api.github.com/users/smashwilson/repos","events_url":"https://api.github.com/users/smashwilson/events{/privacy}","received_events_url":"https://api.github.com/users/smashwilson/received_events","type":"User","site_admin":true},"body":":point_up: This one is probably worth translating to test `getStatusBundle()`.","created_at":"2017-05-20T00:59:51Z","updated_at":"2017-05-20T01:02:05Z","html_url":"https://github.com/atom/github/pull/851#discussion_r117597753","pull_request_url":"https://api.github.com/repos/atom/github/pulls/851","_links":{"self":{"href":"https://api.github.com/repos/atom/github/pulls/comments/117597753"},"html":{"href":"https://github.com/atom/github/pull/851#discussion_r117597753"},"pull_request":{"href":"https://api.github.com/repos/atom/github/pulls/851"}}},"pull_request":{"url":"https://api.github.com/repos/atom/github/pulls/851","id":121538909,"html_url":"https://github.com/atom/github/pull/851","diff_url":"https://github.com/atom/github/pull/851.diff","patch_url":"https://github.com/atom/github/pull/851.patch","issue_url":"https://api.github.com/repos/atom/github/issues/851","number":851,"state":"open","locked":false,"title":"Implement status bundle to reduce shell outs","user":{"login":"kuychaco","id":7910250,"avatar_url":"https://avatars0.githubusercontent.com/u/7910250?v=3","gravatar_id":"","url":"https://api.github.com/users/kuychaco","html_url":"https://github.com/kuychaco","followers_url":"https://api.github.com/users/kuychaco/followers","following_url":"https://api.github.com/users/kuychaco/following{/other_user}","gists_url":"https://api.github.com/users/kuychaco/gists{/gist_id}","starred_url":"https://api.github.com/users/kuychaco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuychaco/subscriptions","organizations_url":"https://api.github.com/users/kuychaco/orgs","repos_url":"https://api.github.com/users/kuychaco/repos","events_url":"https://api.github.com/users/kuychaco/events{/privacy}","received_events_url":"https://api.github.com/users/kuychaco/received_events","type":"User","site_admin":true},"body":"Use `git status --porcelain=v2 --branch` to fetch changed files, current branch, and ahead/behind count","created_at":"2017-05-19T16:36:41Z","updated_at":"2017-05-20T01:02:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"96d66a95fc6329fdd3e8e0d405f9759664520322","assignee":null,"assignees":[],"requested_reviewers":[{"login":"BinaryMuse","id":189606,"avatar_url":"https://avatars3.githubusercontent.com/u/189606?v=3","gravatar_id":"","url":"https://api.github.com/users/BinaryMuse","html_url":"https://github.com/BinaryMuse","followers_url":"https://api.github.com/users/BinaryMuse/followers","following_url":"https://api.github.com/users/BinaryMuse/following{/other_user}","gists_url":"https://api.github.com/users/BinaryMuse/gists{/gist_id}","starred_url":"https://api.github.com/users/BinaryMuse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BinaryMuse/subscriptions","organizations_url":"https://api.github.com/users/BinaryMuse/orgs","repos_url":"https://api.github.com/users/BinaryMuse/repos","events_url":"https://api.github.com/users/BinaryMuse/events{/privacy}","received_events_url":"https://api.github.com/users/BinaryMuse/received_events","type":"User","site_admin":true}],"milestone":null,"commits_url":"https://api.github.com/repos/atom/github/pulls/851/commits","review_comments_url":"https://api.github.com/repos/atom/github/pulls/851/comments","review_comment_url":"https://api.github.com/repos/atom/github/pulls/comments{/number}","comments_url":"https://api.github.com/repos/atom/github/issues/851/comments","statuses_url":"https://api.github.com/repos/atom/github/statuses/1c5e55586f987f1a6cbd9fc976f4d25c9977d555","head":{"label":"atom:ku-mkt-better-status","ref":"ku-mkt-better-status","sha":"1c5e55586f987f1a6cbd9fc976f4d25c9977d555","user":{"login":"atom","id":1089146,"avatar_url":"https://avatars1.githubusercontent.com/u/1089146?v=3","gravatar_id":"","url":"https://api.github.com/users/atom","html_url":"https://github.com/atom","followers_url":"https://api.github.com/users/atom/followers","following_url":"https://api.github.com/users/atom/following{/other_user}","gists_url":"https://api.github.com/users/atom/gists{/gist_id}","starred_url":"https://api.github.com/users/atom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom/subscriptions","organizations_url":"https://api.github.com/users/atom/orgs","repos_url":"https://api.github.com/users/atom/repos","events_url":"https://api.github.com/users/atom/events{/privacy}","received_events_url":"https://api.github.com/users/atom/received_events","type":"Organization","site_admin":false},"repo":{"id":46155786,"name":"github","full_name":"atom/github","owner":{"login":"atom","id":1089146,"avatar_url":"https://avatars1.githubusercontent.com/u/1089146?v=3","gravatar_id":"","url":"https://api.github.com/users/atom","html_url":"https://github.com/atom","followers_url":"https://api.github.com/users/atom/followers","following_url":"https://api.github.com/users/atom/following{/other_user}","gists_url":"https://api.github.com/users/atom/gists{/gist_id}","starred_url":"https://api.github.com/users/atom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom/subscriptions","organizations_url":"https://api.github.com/users/atom/orgs","repos_url":"https://api.github.com/users/atom/repos","events_url":"https://api.github.com/users/atom/events{/privacy}","received_events_url":"https://api.github.com/users/atom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/atom/github","description":"Git and GitHub integration for Atom :atom: + :octocat: = :sparkling_heart:","fork":false,"url":"https://api.github.com/repos/atom/github","forks_url":"https://api.github.com/repos/atom/github/forks","keys_url":"https://api.github.com/repos/atom/github/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atom/github/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atom/github/teams","hooks_url":"https://api.github.com/repos/atom/github/hooks","issue_events_url":"https://api.github.com/repos/atom/github/issues/events{/number}","events_url":"https://api.github.com/repos/atom/github/events","assignees_url":"https://api.github.com/repos/atom/github/assignees{/user}","branches_url":"https://api.github.com/repos/atom/github/branches{/branch}","tags_url":"https://api.github.com/repos/atom/github/tags","blobs_url":"https://api.github.com/repos/atom/github/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atom/github/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atom/github/git/refs{/sha}","trees_url":"https://api.github.com/repos/atom/github/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atom/github/statuses/{sha}","languages_url":"https://api.github.com/repos/atom/github/languages","stargazers_url":"https://api.github.com/repos/atom/github/stargazers","contributors_url":"https://api.github.com/repos/atom/github/contributors","subscribers_url":"https://api.github.com/repos/atom/github/subscribers","subscription_url":"https://api.github.com/repos/atom/github/subscription","commits_url":"https://api.github.com/repos/atom/github/commits{/sha}","git_commits_url":"https://api.github.com/repos/atom/github/git/commits{/sha}","comments_url":"https://api.github.com/repos/atom/github/comments{/number}","issue_comment_url":"https://api.github.com/repos/atom/github/issues/comments{/number}","contents_url":"https://api.github.com/repos/atom/github/contents/{+path}","compare_url":"https://api.github.com/repos/atom/github/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atom/github/merges","archive_url":"https://api.github.com/repos/atom/github/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atom/github/downloads","issues_url":"https://api.github.com/repos/atom/github/issues{/number}","pulls_url":"https://api.github.com/repos/atom/github/pulls{/number}","milestones_url":"https://api.github.com/repos/atom/github/milestones{/number}","notifications_url":"https://api.github.com/repos/atom/github/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atom/github/labels{/name}","releases_url":"https://api.github.com/repos/atom/github/releases{/id}","deployments_url":"https://api.github.com/repos/atom/github/deployments","created_at":"2015-11-14T01:17:58Z","updated_at":"2017-05-19T22:37:31Z","pushed_at":"2017-05-19T20:04:20Z","git_url":"git://github.com/atom/github.git","ssh_url":"git@github.com:atom/github.git","clone_url":"https://github.com/atom/github.git","svn_url":"https://github.com/atom/github","homepage":"https://github.atom.io","size":5764,"stargazers_count":217,"watchers_count":217,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":137,"forks":8,"open_issues":137,"watchers":217,"default_branch":"master"}},"base":{"label":"atom:master","ref":"master","sha":"abcf0334e7faa6ec242cabf1738f720cc501b236","user":{"login":"atom","id":1089146,"avatar_url":"https://avatars1.githubusercontent.com/u/1089146?v=3","gravatar_id":"","url":"https://api.github.com/users/atom","html_url":"https://github.com/atom","followers_url":"https://api.github.com/users/atom/followers","following_url":"https://api.github.com/users/atom/following{/other_user}","gists_url":"https://api.github.com/users/atom/gists{/gist_id}","starred_url":"https://api.github.com/users/atom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom/subscriptions","organizations_url":"https://api.github.com/users/atom/orgs","repos_url":"https://api.github.com/users/atom/repos","events_url":"https://api.github.com/users/atom/events{/privacy}","received_events_url":"https://api.github.com/users/atom/received_events","type":"Organization","site_admin":false},"repo":{"id":46155786,"name":"github","full_name":"atom/github","owner":{"login":"atom","id":1089146,"avatar_url":"https://avatars1.githubusercontent.com/u/1089146?v=3","gravatar_id":"","url":"https://api.github.com/users/atom","html_url":"https://github.com/atom","followers_url":"https://api.github.com/users/atom/followers","following_url":"https://api.github.com/users/atom/following{/other_user}","gists_url":"https://api.github.com/users/atom/gists{/gist_id}","starred_url":"https://api.github.com/users/atom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom/subscriptions","organizations_url":"https://api.github.com/users/atom/orgs","repos_url":"https://api.github.com/users/atom/repos","events_url":"https://api.github.com/users/atom/events{/privacy}","received_events_url":"https://api.github.com/users/atom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/atom/github","description":"Git and GitHub integration for Atom :atom: + :octocat: = :sparkling_heart:","fork":false,"url":"https://api.github.com/repos/atom/github","forks_url":"https://api.github.com/repos/atom/github/forks","keys_url":"https://api.github.com/repos/atom/github/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atom/github/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atom/github/teams","hooks_url":"https://api.github.com/repos/atom/github/hooks","issue_events_url":"https://api.github.com/repos/atom/github/issues/events{/number}","events_url":"https://api.github.com/repos/atom/github/events","assignees_url":"https://api.github.com/repos/atom/github/assignees{/user}","branches_url":"https://api.github.com/repos/atom/github/branches{/branch}","tags_url":"https://api.github.com/repos/atom/github/tags","blobs_url":"https://api.github.com/repos/atom/github/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atom/github/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atom/github/git/refs{/sha}","trees_url":"https://api.github.com/repos/atom/github/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atom/github/statuses/{sha}","languages_url":"https://api.github.com/repos/atom/github/languages","stargazers_url":"https://api.github.com/repos/atom/github/stargazers","contributors_url":"https://api.github.com/repos/atom/github/contributors","subscribers_url":"https://api.github.com/repos/atom/github/subscribers","subscription_url":"https://api.github.com/repos/atom/github/subscription","commits_url":"https://api.github.com/repos/atom/github/commits{/sha}","git_commits_url":"https://api.github.com/repos/atom/github/git/commits{/sha}","comments_url":"https://api.github.com/repos/atom/github/comments{/number}","issue_comment_url":"https://api.github.com/repos/atom/github/issues/comments{/number}","contents_url":"https://api.github.com/repos/atom/github/contents/{+path}","compare_url":"https://api.github.com/repos/atom/github/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atom/github/merges","archive_url":"https://api.github.com/repos/atom/github/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atom/github/downloads","issues_url":"https://api.github.com/repos/atom/github/issues{/number}","pulls_url":"https://api.github.com/repos/atom/github/pulls{/number}","milestones_url":"https://api.github.com/repos/atom/github/milestones{/number}","notifications_url":"https://api.github.com/repos/atom/github/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atom/github/labels{/name}","releases_url":"https://api.github.com/repos/atom/github/releases{/id}","deployments_url":"https://api.github.com/repos/atom/github/deployments","created_at":"2015-11-14T01:17:58Z","updated_at":"2017-05-19T22:37:31Z","pushed_at":"2017-05-19T20:04:20Z","git_url":"git://github.com/atom/github.git","ssh_url":"git@github.com:atom/github.git","clone_url":"https://github.com/atom/github.git","svn_url":"https://github.com/atom/github","homepage":"https://github.atom.io","size":5764,"stargazers_count":217,"watchers_count":217,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":137,"forks":8,"open_issues":137,"watchers":217,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/atom/github/pulls/851"},"html":{"href":"https://github.com/atom/github/pull/851"},"issue":{"href":"https://api.github.com/repos/atom/github/issues/851"},"comments":{"href":"https://api.github.com/repos/atom/github/issues/851/comments"},"review_comments":{"href":"https://api.github.com/repos/atom/github/pulls/851/comments"},"review_comment":{"href":"https://api.github.com/repos/atom/github/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/atom/github/pulls/851/commits"},"statuses":{"href":"https://api.github.com/repos/atom/github/statuses/1c5e55586f987f1a6cbd9fc976f4d25c9977d555"}}}}
{"actor":{"display_login":"smashwilson"}}