{"action":"created","comment":{"url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/pulls/comments/176062230","pull_request_review_id":105697157,"id":176062230,"diff_hunk":"@@ -74,16 +81,39 @@ export const addCreationDate = async (prNode, prData) => {\n     prNumberAndTimestamp.appendChild(creationDateNode);\n };\n \n+export const addUsernameWithLatestUpdate = async (prNode, prActivity) => {\n+    // pull requests by default have the initial commit info as an activity\n+    const mostRecentAction = prActivity.values[0];\n+    let author = '';\n+\n+    // merges, commit updates\n+    if (mostRecentAction.update) {\n+        author = mostRecentAction.update.author.display_name;\n+    } else if (mostRecentAction.approval) {\n+        // approvals\n+        author = mostRecentAction.approval.user.display_name;\n+    } else if (mostRecentAction.comment) {\n+        // comments\n+        author = mostRecentAction.comment.user.display_name;\n+    }\n+\n+    const prUpdateTime = prNode.querySelector('.pr-number-and-timestamp')\n+        .firstElementChild;\n+    prUpdateTime.append(` by ${author}`);\n+};\n+\n export default async function augmentPrEntry(prNode) {","path":"src/augment-pr-entry/augment-pr-entry.js","position":47,"original_position":47,"commit_id":"c153153eb554f3afd7cd31c12160103955043ce5","original_commit_id":"c153153eb554f3afd7cd31c12160103955043ce5","user":{"login":"drexler","id":1205434,"avatar_url":"https://avatars3.githubusercontent.com/u/1205434?v=4","gravatar_id":"","url":"https://api.github.com/users/drexler","html_url":"https://github.com/drexler","followers_url":"https://api.github.com/users/drexler/followers","following_url":"https://api.github.com/users/drexler/following{/other_user}","gists_url":"https://api.github.com/users/drexler/gists{/gist_id}","starred_url":"https://api.github.com/users/drexler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drexler/subscriptions","organizations_url":"https://api.github.com/users/drexler/orgs","repos_url":"https://api.github.com/users/drexler/repos","events_url":"https://api.github.com/users/drexler/events{/privacy}","received_events_url":"https://api.github.com/users/drexler/received_events","type":"User","site_admin":false},"body":"Sweet. so true! 😄 ","created_at":"2018-03-21T12:20:25Z","updated_at":"2018-03-21T12:20:25Z","html_url":"https://github.com/refined-bitbucket/refined-bitbucket/pull/187#discussion_r176062230","pull_request_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/pulls/187","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/pulls/comments/176062230"},"html":{"href":"https://github.com/refined-bitbucket/refined-bitbucket/pull/187#discussion_r176062230"},"pull_request":{"href":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/pulls/187"}},"in_reply_to_id":175974448},"pull_request":{"url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/pulls/187","id":175711180,"html_url":"https://github.com/refined-bitbucket/refined-bitbucket/pull/187","diff_url":"https://github.com/refined-bitbucket/refined-bitbucket/pull/187.diff","patch_url":"https://github.com/refined-bitbucket/refined-bitbucket/pull/187.patch","issue_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/issues/187","number":187,"state":"open","locked":false,"title":"Display author of the lastest activity on a pull request","user":{"login":"drexler","id":1205434,"avatar_url":"https://avatars3.githubusercontent.com/u/1205434?v=4","gravatar_id":"","url":"https://api.github.com/users/drexler","html_url":"https://github.com/drexler","followers_url":"https://api.github.com/users/drexler/followers","following_url":"https://api.github.com/users/drexler/following{/other_user}","gists_url":"https://api.github.com/users/drexler/gists{/gist_id}","starred_url":"https://api.github.com/users/drexler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drexler/subscriptions","organizations_url":"https://api.github.com/users/drexler/orgs","repos_url":"https://api.github.com/users/drexler/repos","events_url":"https://api.github.com/users/drexler/events{/privacy}","received_events_url":"https://api.github.com/users/drexler/received_events","type":"User","site_admin":false},"body":"<!--\r\n    Check those that apply, and delete the ones that don't\r\n-->\r\n\r\n* [x] I tested the changes in this pull request myself\r\n\r\n---\r\n![pr-augmentation](https://user-images.githubusercontent.com/1205434/37558123-795f498a-29e5-11e8-826b-527d751cbeb5.PNG)\r\n\r\n","created_at":"2018-03-17T17:24:01Z","updated_at":"2018-03-21T12:20:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"743e4079328e5bd5467b153dc628c51953a64d88","assignee":{"login":"drexler","id":1205434,"avatar_url":"https://avatars3.githubusercontent.com/u/1205434?v=4","gravatar_id":"","url":"https://api.github.com/users/drexler","html_url":"https://github.com/drexler","followers_url":"https://api.github.com/users/drexler/followers","following_url":"https://api.github.com/users/drexler/following{/other_user}","gists_url":"https://api.github.com/users/drexler/gists{/gist_id}","starred_url":"https://api.github.com/users/drexler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drexler/subscriptions","organizations_url":"https://api.github.com/users/drexler/orgs","repos_url":"https://api.github.com/users/drexler/repos","events_url":"https://api.github.com/users/drexler/events{/privacy}","received_events_url":"https://api.github.com/users/drexler/received_events","type":"User","site_admin":false},"assignees":[{"login":"drexler","id":1205434,"avatar_url":"https://avatars3.githubusercontent.com/u/1205434?v=4","gravatar_id":"","url":"https://api.github.com/users/drexler","html_url":"https://github.com/drexler","followers_url":"https://api.github.com/users/drexler/followers","following_url":"https://api.github.com/users/drexler/following{/other_user}","gists_url":"https://api.github.com/users/drexler/gists{/gist_id}","starred_url":"https://api.github.com/users/drexler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drexler/subscriptions","organizations_url":"https://api.github.com/users/drexler/orgs","repos_url":"https://api.github.com/users/drexler/repos","events_url":"https://api.github.com/users/drexler/events{/privacy}","received_events_url":"https://api.github.com/users/drexler/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":727066666,"url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/labels/feature","name":"feature","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/pulls/187/commits","review_comments_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/pulls/187/comments","review_comment_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/pulls/comments{/number}","comments_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/issues/187/comments","statuses_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/statuses/c153153eb554f3afd7cd31c12160103955043ce5","head":{"label":"drexler:pullrequest-update-info","ref":"pullrequest-update-info","sha":"c153153eb554f3afd7cd31c12160103955043ce5","user":{"login":"drexler","id":1205434,"avatar_url":"https://avatars3.githubusercontent.com/u/1205434?v=4","gravatar_id":"","url":"https://api.github.com/users/drexler","html_url":"https://github.com/drexler","followers_url":"https://api.github.com/users/drexler/followers","following_url":"https://api.github.com/users/drexler/following{/other_user}","gists_url":"https://api.github.com/users/drexler/gists{/gist_id}","starred_url":"https://api.github.com/users/drexler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drexler/subscriptions","organizations_url":"https://api.github.com/users/drexler/orgs","repos_url":"https://api.github.com/users/drexler/repos","events_url":"https://api.github.com/users/drexler/events{/privacy}","received_events_url":"https://api.github.com/users/drexler/received_events","type":"User","site_admin":false},"repo":{"id":123693844,"name":"refined-bitbucket","full_name":"drexler/refined-bitbucket","owner":{"login":"drexler","id":1205434,"avatar_url":"https://avatars3.githubusercontent.com/u/1205434?v=4","gravatar_id":"","url":"https://api.github.com/users/drexler","html_url":"https://github.com/drexler","followers_url":"https://api.github.com/users/drexler/followers","following_url":"https://api.github.com/users/drexler/following{/other_user}","gists_url":"https://api.github.com/users/drexler/gists{/gist_id}","starred_url":"https://api.github.com/users/drexler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drexler/subscriptions","organizations_url":"https://api.github.com/users/drexler/orgs","repos_url":"https://api.github.com/users/drexler/repos","events_url":"https://api.github.com/users/drexler/events{/privacy}","received_events_url":"https://api.github.com/users/drexler/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/drexler/refined-bitbucket","description":"Chrome and Firefox extension that improves Bitbucket's user experience","fork":true,"url":"https://api.github.com/repos/drexler/refined-bitbucket","forks_url":"https://api.github.com/repos/drexler/refined-bitbucket/forks","keys_url":"https://api.github.com/repos/drexler/refined-bitbucket/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drexler/refined-bitbucket/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drexler/refined-bitbucket/teams","hooks_url":"https://api.github.com/repos/drexler/refined-bitbucket/hooks","issue_events_url":"https://api.github.com/repos/drexler/refined-bitbucket/issues/events{/number}","events_url":"https://api.github.com/repos/drexler/refined-bitbucket/events","assignees_url":"https://api.github.com/repos/drexler/refined-bitbucket/assignees{/user}","branches_url":"https://api.github.com/repos/drexler/refined-bitbucket/branches{/branch}","tags_url":"https://api.github.com/repos/drexler/refined-bitbucket/tags","blobs_url":"https://api.github.com/repos/drexler/refined-bitbucket/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drexler/refined-bitbucket/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drexler/refined-bitbucket/git/refs{/sha}","trees_url":"https://api.github.com/repos/drexler/refined-bitbucket/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drexler/refined-bitbucket/statuses/{sha}","languages_url":"https://api.github.com/repos/drexler/refined-bitbucket/languages","stargazers_url":"https://api.github.com/repos/drexler/refined-bitbucket/stargazers","contributors_url":"https://api.github.com/repos/drexler/refined-bitbucket/contributors","subscribers_url":"https://api.github.com/repos/drexler/refined-bitbucket/subscribers","subscription_url":"https://api.github.com/repos/drexler/refined-bitbucket/subscription","commits_url":"https://api.github.com/repos/drexler/refined-bitbucket/commits{/sha}","git_commits_url":"https://api.github.com/repos/drexler/refined-bitbucket/git/commits{/sha}","comments_url":"https://api.github.com/repos/drexler/refined-bitbucket/comments{/number}","issue_comment_url":"https://api.github.com/repos/drexler/refined-bitbucket/issues/comments{/number}","contents_url":"https://api.github.com/repos/drexler/refined-bitbucket/contents/{+path}","compare_url":"https://api.github.com/repos/drexler/refined-bitbucket/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drexler/refined-bitbucket/merges","archive_url":"https://api.github.com/repos/drexler/refined-bitbucket/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drexler/refined-bitbucket/downloads","issues_url":"https://api.github.com/repos/drexler/refined-bitbucket/issues{/number}","pulls_url":"https://api.github.com/repos/drexler/refined-bitbucket/pulls{/number}","milestones_url":"https://api.github.com/repos/drexler/refined-bitbucket/milestones{/number}","notifications_url":"https://api.github.com/repos/drexler/refined-bitbucket/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drexler/refined-bitbucket/labels{/name}","releases_url":"https://api.github.com/repos/drexler/refined-bitbucket/releases{/id}","deployments_url":"https://api.github.com/repos/drexler/refined-bitbucket/deployments","created_at":"2018-03-03T13:21:09Z","updated_at":"2018-03-14T16:50:01Z","pushed_at":"2018-03-17T17:47:45Z","git_url":"git://github.com/drexler/refined-bitbucket.git","ssh_url":"git@github.com:drexler/refined-bitbucket.git","clone_url":"https://github.com/drexler/refined-bitbucket.git","svn_url":"https://github.com/drexler/refined-bitbucket","homepage":"https://chrome.google.com/webstore/detail/refined-bitbucket/afppminkfnfngihdocacbgeajbbdklkf?utm_source=chrome-ntp-icon","size":1058,"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"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"refined-bitbucket:dev","ref":"dev","sha":"ffd868f762ca3b871a2170176b82012ca7ea3b28","user":{"login":"refined-bitbucket","id":31742142,"avatar_url":"https://avatars2.githubusercontent.com/u/31742142?v=4","gravatar_id":"","url":"https://api.github.com/users/refined-bitbucket","html_url":"https://github.com/refined-bitbucket","followers_url":"https://api.github.com/users/refined-bitbucket/followers","following_url":"https://api.github.com/users/refined-bitbucket/following{/other_user}","gists_url":"https://api.github.com/users/refined-bitbucket/gists{/gist_id}","starred_url":"https://api.github.com/users/refined-bitbucket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/refined-bitbucket/subscriptions","organizations_url":"https://api.github.com/users/refined-bitbucket/orgs","repos_url":"https://api.github.com/users/refined-bitbucket/repos","events_url":"https://api.github.com/users/refined-bitbucket/events{/privacy}","received_events_url":"https://api.github.com/users/refined-bitbucket/received_events","type":"Organization","site_admin":false},"repo":{"id":55722227,"name":"refined-bitbucket","full_name":"refined-bitbucket/refined-bitbucket","owner":{"login":"refined-bitbucket","id":31742142,"avatar_url":"https://avatars2.githubusercontent.com/u/31742142?v=4","gravatar_id":"","url":"https://api.github.com/users/refined-bitbucket","html_url":"https://github.com/refined-bitbucket","followers_url":"https://api.github.com/users/refined-bitbucket/followers","following_url":"https://api.github.com/users/refined-bitbucket/following{/other_user}","gists_url":"https://api.github.com/users/refined-bitbucket/gists{/gist_id}","starred_url":"https://api.github.com/users/refined-bitbucket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/refined-bitbucket/subscriptions","organizations_url":"https://api.github.com/users/refined-bitbucket/orgs","repos_url":"https://api.github.com/users/refined-bitbucket/repos","events_url":"https://api.github.com/users/refined-bitbucket/events{/privacy}","received_events_url":"https://api.github.com/users/refined-bitbucket/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/refined-bitbucket/refined-bitbucket","description":"Chrome and Firefox extension that improves Bitbucket's user experience","fork":false,"url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket","forks_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/forks","keys_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/keys{/key_id}","collaborators_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/teams","hooks_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/hooks","issue_events_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/issues/events{/number}","events_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/events","assignees_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/assignees{/user}","branches_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/branches{/branch}","tags_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/tags","blobs_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/git/refs{/sha}","trees_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/git/trees{/sha}","statuses_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/statuses/{sha}","languages_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/languages","stargazers_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/stargazers","contributors_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/contributors","subscribers_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/subscribers","subscription_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/subscription","commits_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/commits{/sha}","git_commits_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/git/commits{/sha}","comments_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/comments{/number}","issue_comment_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/issues/comments{/number}","contents_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/contents/{+path}","compare_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/compare/{base}...{head}","merges_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/merges","archive_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/downloads","issues_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/issues{/number}","pulls_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/pulls{/number}","milestones_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/milestones{/number}","notifications_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/labels{/name}","releases_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/releases{/id}","deployments_url":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/deployments","created_at":"2016-04-07T19:30:09Z","updated_at":"2018-03-20T20:28:21Z","pushed_at":"2018-03-17T17:47:46Z","git_url":"git://github.com/refined-bitbucket/refined-bitbucket.git","ssh_url":"git@github.com:refined-bitbucket/refined-bitbucket.git","clone_url":"https://github.com/refined-bitbucket/refined-bitbucket.git","svn_url":"https://github.com/refined-bitbucket/refined-bitbucket","homepage":"https://chrome.google.com/webstore/detail/refined-bitbucket/afppminkfnfngihdocacbgeajbbdklkf?utm_source=chrome-ntp-icon","size":969,"stargazers_count":133,"watchers_count":133,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":40,"mirror_url":null,"archived":false,"open_issues_count":19,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":40,"open_issues":19,"watchers":133,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/pulls/187"},"html":{"href":"https://github.com/refined-bitbucket/refined-bitbucket/pull/187"},"issue":{"href":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/issues/187"},"comments":{"href":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/issues/187/comments"},"review_comments":{"href":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/pulls/187/comments"},"review_comment":{"href":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/pulls/187/commits"},"statuses":{"href":"https://api.github.com/repos/refined-bitbucket/refined-bitbucket/statuses/c153153eb554f3afd7cd31c12160103955043ce5"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"drexler"}}