{"action":"created","comment":{"url":"https://api.github.com/repos/generictechcompany/time-of-day/pulls/comments/85971571","pull_request_review_id":6654358,"id":85971571,"diff_hunk":"@@ -35,6 +35,19 @@ export function addMinutes(time: TimeOfDay, minutes: number): TimeOfDay {\n   return copy;\n }\n \n+export function subtractMinutes(time: TimeOfDay, minutes: number): TimeOfDay {","path":"src/utils/time.js","position":4,"original_position":4,"commit_id":"b21c885ffde55fd8215240150013cf1c7ac161c3","original_commit_id":"b21c885ffde55fd8215240150013cf1c7ac161c3","user":{"login":"prodobot","id":21058645,"avatar_url":"https://avatars.githubusercontent.com/u/21058645?v=3","gravatar_id":"","url":"https://api.github.com/users/prodobot","html_url":"https://github.com/prodobot","followers_url":"https://api.github.com/users/prodobot/followers","following_url":"https://api.github.com/users/prodobot/following{/other_user}","gists_url":"https://api.github.com/users/prodobot/gists{/gist_id}","starred_url":"https://api.github.com/users/prodobot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prodobot/subscriptions","organizations_url":"https://api.github.com/users/prodobot/orgs","repos_url":"https://api.github.com/users/prodobot/repos","events_url":"https://api.github.com/users/prodobot/events{/privacy}","received_events_url":"https://api.github.com/users/prodobot/received_events","type":"User","site_admin":false},"body":"This function contains code that is very similar to `addMinutes(time: TimeOfDay, minutes: number): TimeOfDay` defined on line 25 of this file.\n\nDuplicate code is usually a mistake, since it is harder to maintain and affects readability. If you'd like, I can extract the duplication to a separate function. Would you like me to do this?","created_at":"2016-11-01T16:56:49Z","updated_at":"2016-11-01T16:56:49Z","html_url":"https://github.com/generictechcompany/time-of-day/pull/29#discussion_r85971571","pull_request_url":"https://api.github.com/repos/generictechcompany/time-of-day/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/generictechcompany/time-of-day/pulls/comments/85971571"},"html":{"href":"https://github.com/generictechcompany/time-of-day/pull/29#discussion_r85971571"},"pull_request":{"href":"https://api.github.com/repos/generictechcompany/time-of-day/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/generictechcompany/time-of-day/pulls/29","id":91821031,"html_url":"https://github.com/generictechcompany/time-of-day/pull/29","diff_url":"https://github.com/generictechcompany/time-of-day/pull/29.diff","patch_url":"https://github.com/generictechcompany/time-of-day/pull/29.patch","issue_url":"https://api.github.com/repos/generictechcompany/time-of-day/issues/29","number":29,"state":"open","locked":false,"title":"F/subtract minutes","user":{"login":"tdawes","id":5788205,"avatar_url":"https://avatars.githubusercontent.com/u/5788205?v=3","gravatar_id":"","url":"https://api.github.com/users/tdawes","html_url":"https://github.com/tdawes","followers_url":"https://api.github.com/users/tdawes/followers","following_url":"https://api.github.com/users/tdawes/following{/other_user}","gists_url":"https://api.github.com/users/tdawes/gists{/gist_id}","starred_url":"https://api.github.com/users/tdawes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdawes/subscriptions","organizations_url":"https://api.github.com/users/tdawes/orgs","repos_url":"https://api.github.com/users/tdawes/repos","events_url":"https://api.github.com/users/tdawes/events{/privacy}","received_events_url":"https://api.github.com/users/tdawes/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-01T16:56:38Z","updated_at":"2016-11-01T16:56:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d9b4f4cdab10edf0d12e4d70af9d87de8710b4b8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/generictechcompany/time-of-day/pulls/29/commits","review_comments_url":"https://api.github.com/repos/generictechcompany/time-of-day/pulls/29/comments","review_comment_url":"https://api.github.com/repos/generictechcompany/time-of-day/pulls/comments{/number}","comments_url":"https://api.github.com/repos/generictechcompany/time-of-day/issues/29/comments","statuses_url":"https://api.github.com/repos/generictechcompany/time-of-day/statuses/b21c885ffde55fd8215240150013cf1c7ac161c3","head":{"label":"generictechcompany:f/subtract-minutes","ref":"f/subtract-minutes","sha":"b21c885ffde55fd8215240150013cf1c7ac161c3","user":{"login":"generictechcompany","id":23076631,"avatar_url":"https://avatars.githubusercontent.com/u/23076631?v=3","gravatar_id":"","url":"https://api.github.com/users/generictechcompany","html_url":"https://github.com/generictechcompany","followers_url":"https://api.github.com/users/generictechcompany/followers","following_url":"https://api.github.com/users/generictechcompany/following{/other_user}","gists_url":"https://api.github.com/users/generictechcompany/gists{/gist_id}","starred_url":"https://api.github.com/users/generictechcompany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/generictechcompany/subscriptions","organizations_url":"https://api.github.com/users/generictechcompany/orgs","repos_url":"https://api.github.com/users/generictechcompany/repos","events_url":"https://api.github.com/users/generictechcompany/events{/privacy}","received_events_url":"https://api.github.com/users/generictechcompany/received_events","type":"Organization","site_admin":false},"repo":{"id":72220049,"name":"time-of-day","full_name":"generictechcompany/time-of-day","owner":{"login":"generictechcompany","id":23076631,"avatar_url":"https://avatars.githubusercontent.com/u/23076631?v=3","gravatar_id":"","url":"https://api.github.com/users/generictechcompany","html_url":"https://github.com/generictechcompany","followers_url":"https://api.github.com/users/generictechcompany/followers","following_url":"https://api.github.com/users/generictechcompany/following{/other_user}","gists_url":"https://api.github.com/users/generictechcompany/gists{/gist_id}","starred_url":"https://api.github.com/users/generictechcompany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/generictechcompany/subscriptions","organizations_url":"https://api.github.com/users/generictechcompany/orgs","repos_url":"https://api.github.com/users/generictechcompany/repos","events_url":"https://api.github.com/users/generictechcompany/events{/privacy}","received_events_url":"https://api.github.com/users/generictechcompany/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/generictechcompany/time-of-day","description":"GenTech's secure, robust time-of-day management solution.","fork":false,"url":"https://api.github.com/repos/generictechcompany/time-of-day","forks_url":"https://api.github.com/repos/generictechcompany/time-of-day/forks","keys_url":"https://api.github.com/repos/generictechcompany/time-of-day/keys{/key_id}","collaborators_url":"https://api.github.com/repos/generictechcompany/time-of-day/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/generictechcompany/time-of-day/teams","hooks_url":"https://api.github.com/repos/generictechcompany/time-of-day/hooks","issue_events_url":"https://api.github.com/repos/generictechcompany/time-of-day/issues/events{/number}","events_url":"https://api.github.com/repos/generictechcompany/time-of-day/events","assignees_url":"https://api.github.com/repos/generictechcompany/time-of-day/assignees{/user}","branches_url":"https://api.github.com/repos/generictechcompany/time-of-day/branches{/branch}","tags_url":"https://api.github.com/repos/generictechcompany/time-of-day/tags","blobs_url":"https://api.github.com/repos/generictechcompany/time-of-day/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/generictechcompany/time-of-day/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/generictechcompany/time-of-day/git/refs{/sha}","trees_url":"https://api.github.com/repos/generictechcompany/time-of-day/git/trees{/sha}","statuses_url":"https://api.github.com/repos/generictechcompany/time-of-day/statuses/{sha}","languages_url":"https://api.github.com/repos/generictechcompany/time-of-day/languages","stargazers_url":"https://api.github.com/repos/generictechcompany/time-of-day/stargazers","contributors_url":"https://api.github.com/repos/generictechcompany/time-of-day/contributors","subscribers_url":"https://api.github.com/repos/generictechcompany/time-of-day/subscribers","subscription_url":"https://api.github.com/repos/generictechcompany/time-of-day/subscription","commits_url":"https://api.github.com/repos/generictechcompany/time-of-day/commits{/sha}","git_commits_url":"https://api.github.com/repos/generictechcompany/time-of-day/git/commits{/sha}","comments_url":"https://api.github.com/repos/generictechcompany/time-of-day/comments{/number}","issue_comment_url":"https://api.github.com/repos/generictechcompany/time-of-day/issues/comments{/number}","contents_url":"https://api.github.com/repos/generictechcompany/time-of-day/contents/{+path}","compare_url":"https://api.github.com/repos/generictechcompany/time-of-day/compare/{base}...{head}","merges_url":"https://api.github.com/repos/generictechcompany/time-of-day/merges","archive_url":"https://api.github.com/repos/generictechcompany/time-of-day/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/generictechcompany/time-of-day/downloads","issues_url":"https://api.github.com/repos/generictechcompany/time-of-day/issues{/number}","pulls_url":"https://api.github.com/repos/generictechcompany/time-of-day/pulls{/number}","milestones_url":"https://api.github.com/repos/generictechcompany/time-of-day/milestones{/number}","notifications_url":"https://api.github.com/repos/generictechcompany/time-of-day/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/generictechcompany/time-of-day/labels{/name}","releases_url":"https://api.github.com/repos/generictechcompany/time-of-day/releases{/id}","deployments_url":"https://api.github.com/repos/generictechcompany/time-of-day/deployments","created_at":"2016-10-28T15:37:10Z","updated_at":"2016-10-28T15:38:24Z","pushed_at":"2016-11-01T16:56:45Z","git_url":"git://github.com/generictechcompany/time-of-day.git","ssh_url":"git@github.com:generictechcompany/time-of-day.git","clone_url":"https://github.com/generictechcompany/time-of-day.git","svn_url":"https://github.com/generictechcompany/time-of-day","homepage":"","size":6,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"generictechcompany:master","ref":"master","sha":"84c50aa31438cb0da70393d4bdbc7f99aa85a3db","user":{"login":"generictechcompany","id":23076631,"avatar_url":"https://avatars.githubusercontent.com/u/23076631?v=3","gravatar_id":"","url":"https://api.github.com/users/generictechcompany","html_url":"https://github.com/generictechcompany","followers_url":"https://api.github.com/users/generictechcompany/followers","following_url":"https://api.github.com/users/generictechcompany/following{/other_user}","gists_url":"https://api.github.com/users/generictechcompany/gists{/gist_id}","starred_url":"https://api.github.com/users/generictechcompany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/generictechcompany/subscriptions","organizations_url":"https://api.github.com/users/generictechcompany/orgs","repos_url":"https://api.github.com/users/generictechcompany/repos","events_url":"https://api.github.com/users/generictechcompany/events{/privacy}","received_events_url":"https://api.github.com/users/generictechcompany/received_events","type":"Organization","site_admin":false},"repo":{"id":72220049,"name":"time-of-day","full_name":"generictechcompany/time-of-day","owner":{"login":"generictechcompany","id":23076631,"avatar_url":"https://avatars.githubusercontent.com/u/23076631?v=3","gravatar_id":"","url":"https://api.github.com/users/generictechcompany","html_url":"https://github.com/generictechcompany","followers_url":"https://api.github.com/users/generictechcompany/followers","following_url":"https://api.github.com/users/generictechcompany/following{/other_user}","gists_url":"https://api.github.com/users/generictechcompany/gists{/gist_id}","starred_url":"https://api.github.com/users/generictechcompany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/generictechcompany/subscriptions","organizations_url":"https://api.github.com/users/generictechcompany/orgs","repos_url":"https://api.github.com/users/generictechcompany/repos","events_url":"https://api.github.com/users/generictechcompany/events{/privacy}","received_events_url":"https://api.github.com/users/generictechcompany/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/generictechcompany/time-of-day","description":"GenTech's secure, robust time-of-day management solution.","fork":false,"url":"https://api.github.com/repos/generictechcompany/time-of-day","forks_url":"https://api.github.com/repos/generictechcompany/time-of-day/forks","keys_url":"https://api.github.com/repos/generictechcompany/time-of-day/keys{/key_id}","collaborators_url":"https://api.github.com/repos/generictechcompany/time-of-day/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/generictechcompany/time-of-day/teams","hooks_url":"https://api.github.com/repos/generictechcompany/time-of-day/hooks","issue_events_url":"https://api.github.com/repos/generictechcompany/time-of-day/issues/events{/number}","events_url":"https://api.github.com/repos/generictechcompany/time-of-day/events","assignees_url":"https://api.github.com/repos/generictechcompany/time-of-day/assignees{/user}","branches_url":"https://api.github.com/repos/generictechcompany/time-of-day/branches{/branch}","tags_url":"https://api.github.com/repos/generictechcompany/time-of-day/tags","blobs_url":"https://api.github.com/repos/generictechcompany/time-of-day/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/generictechcompany/time-of-day/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/generictechcompany/time-of-day/git/refs{/sha}","trees_url":"https://api.github.com/repos/generictechcompany/time-of-day/git/trees{/sha}","statuses_url":"https://api.github.com/repos/generictechcompany/time-of-day/statuses/{sha}","languages_url":"https://api.github.com/repos/generictechcompany/time-of-day/languages","stargazers_url":"https://api.github.com/repos/generictechcompany/time-of-day/stargazers","contributors_url":"https://api.github.com/repos/generictechcompany/time-of-day/contributors","subscribers_url":"https://api.github.com/repos/generictechcompany/time-of-day/subscribers","subscription_url":"https://api.github.com/repos/generictechcompany/time-of-day/subscription","commits_url":"https://api.github.com/repos/generictechcompany/time-of-day/commits{/sha}","git_commits_url":"https://api.github.com/repos/generictechcompany/time-of-day/git/commits{/sha}","comments_url":"https://api.github.com/repos/generictechcompany/time-of-day/comments{/number}","issue_comment_url":"https://api.github.com/repos/generictechcompany/time-of-day/issues/comments{/number}","contents_url":"https://api.github.com/repos/generictechcompany/time-of-day/contents/{+path}","compare_url":"https://api.github.com/repos/generictechcompany/time-of-day/compare/{base}...{head}","merges_url":"https://api.github.com/repos/generictechcompany/time-of-day/merges","archive_url":"https://api.github.com/repos/generictechcompany/time-of-day/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/generictechcompany/time-of-day/downloads","issues_url":"https://api.github.com/repos/generictechcompany/time-of-day/issues{/number}","pulls_url":"https://api.github.com/repos/generictechcompany/time-of-day/pulls{/number}","milestones_url":"https://api.github.com/repos/generictechcompany/time-of-day/milestones{/number}","notifications_url":"https://api.github.com/repos/generictechcompany/time-of-day/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/generictechcompany/time-of-day/labels{/name}","releases_url":"https://api.github.com/repos/generictechcompany/time-of-day/releases{/id}","deployments_url":"https://api.github.com/repos/generictechcompany/time-of-day/deployments","created_at":"2016-10-28T15:37:10Z","updated_at":"2016-10-28T15:38:24Z","pushed_at":"2016-11-01T16:56:45Z","git_url":"git://github.com/generictechcompany/time-of-day.git","ssh_url":"git@github.com:generictechcompany/time-of-day.git","clone_url":"https://github.com/generictechcompany/time-of-day.git","svn_url":"https://github.com/generictechcompany/time-of-day","homepage":"","size":6,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/generictechcompany/time-of-day/pulls/29"},"html":{"href":"https://github.com/generictechcompany/time-of-day/pull/29"},"issue":{"href":"https://api.github.com/repos/generictechcompany/time-of-day/issues/29"},"comments":{"href":"https://api.github.com/repos/generictechcompany/time-of-day/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/generictechcompany/time-of-day/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/generictechcompany/time-of-day/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/generictechcompany/time-of-day/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/generictechcompany/time-of-day/statuses/b21c885ffde55fd8215240150013cf1c7ac161c3"}}}}
{"actor":{"display_login":"prodobot"}}