{"action":"created","comment":{"url":"https://api.github.com/repos/commitsto/commits.to/pulls/comments/195288825","pull_request_review_id":128625805,"id":195288825,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NTI4ODgyNQ==","diff_hunk":"@@ -67,14 +70,14 @@ const hscale = function(h, x, a, b, u, v) {\n \n // Compute the credit you get for being t seconds late\n export default function credit(t) {\n-  if      (t <= 0)      { return 1 }  // not late at all or early => full credit\n-  else if (t < 60)      { return hscale(hSecs, t, 0,      60,    1,     cSecs) }\n-  else if (t < 3600)    { return hscale(hMins, t, 60,     3600,  cSecs, cMins) }\n-  else if (t < SID)     { return hscale(hHrs,  t, 3600,   SID,    cMins, cHrs) }\n-  else if (t < 7*SID)   { return hscale(hDays, t, SID,    7*SID,  cHrs, cDays) }\n-  else if (t < 30*SID)  { return hscale(hWks,  t, 7*SID,  30*SID, cDays, cWks) }\n-  else if (t < 365*SID) { return hscale(hMos,  t, 30*SID, 365*SID, cWks, cMos) }\n-  else                  { return hscale(hYrs,  t, 365*SID, 10*SIY, cMos, cYrs) }\n+  return t <= 0   ? 1 : // not late at all or early => full credit","path":"lib/latepenalty.js","position":24,"original_position":24,"commit_id":"6fff3df0e399d1ced30c25d276f065c0f8d65126","original_commit_id":"6fff3df0e399d1ced30c25d276f065c0f8d65126","user":{"login":"chrisbutler","id":112371,"node_id":"MDQ6VXNlcjExMjM3MQ==","avatar_url":"https://avatars2.githubusercontent.com/u/112371?v=4","gravatar_id":"","url":"https://api.github.com/users/chrisbutler","html_url":"https://github.com/chrisbutler","followers_url":"https://api.github.com/users/chrisbutler/followers","following_url":"https://api.github.com/users/chrisbutler/following{/other_user}","gists_url":"https://api.github.com/users/chrisbutler/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisbutler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisbutler/subscriptions","organizations_url":"https://api.github.com/users/chrisbutler/orgs","repos_url":"https://api.github.com/users/chrisbutler/repos","events_url":"https://api.github.com/users/chrisbutler/events{/privacy}","received_events_url":"https://api.github.com/users/chrisbutler/received_events","type":"User","site_admin":false},"body":"👍","created_at":"2018-06-14T02:37:53Z","updated_at":"2018-06-14T02:37:56Z","html_url":"https://github.com/commitsto/commits.to/pull/214#discussion_r195288825","pull_request_url":"https://api.github.com/repos/commitsto/commits.to/pulls/214","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/commitsto/commits.to/pulls/comments/195288825"},"html":{"href":"https://github.com/commitsto/commits.to/pull/214#discussion_r195288825"},"pull_request":{"href":"https://api.github.com/repos/commitsto/commits.to/pulls/214"}}},"pull_request":{"url":"https://api.github.com/repos/commitsto/commits.to/pulls/214","id":194084435,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0MDg0NDM1","html_url":"https://github.com/commitsto/commits.to/pull/214","diff_url":"https://github.com/commitsto/commits.to/pull/214.diff","patch_url":"https://github.com/commitsto/commits.to/pull/214.patch","issue_url":"https://api.github.com/repos/commitsto/commits.to/issues/214","number":214,"state":"open","locked":false,"title":"Bugfix for latepenalty function (orphaned \"SIY\")","user":{"login":"dreeves","id":9928,"node_id":"MDQ6VXNlcjk5Mjg=","avatar_url":"https://avatars3.githubusercontent.com/u/9928?v=4","gravatar_id":"","url":"https://api.github.com/users/dreeves","html_url":"https://github.com/dreeves","followers_url":"https://api.github.com/users/dreeves/followers","following_url":"https://api.github.com/users/dreeves/following{/other_user}","gists_url":"https://api.github.com/users/dreeves/gists{/gist_id}","starred_url":"https://api.github.com/users/dreeves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreeves/subscriptions","organizations_url":"https://api.github.com/users/dreeves/orgs","repos_url":"https://api.github.com/users/dreeves/repos","events_url":"https://api.github.com/users/dreeves/events{/privacy}","received_events_url":"https://api.github.com/users/dreeves/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-11T19:49:25Z","updated_at":"2018-06-14T02:37:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cc4729cd82f6e02744c3b722859ad6f05f3fc39c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/commitsto/commits.to/pulls/214/commits","review_comments_url":"https://api.github.com/repos/commitsto/commits.to/pulls/214/comments","review_comment_url":"https://api.github.com/repos/commitsto/commits.to/pulls/comments{/number}","comments_url":"https://api.github.com/repos/commitsto/commits.to/issues/214/comments","statuses_url":"https://api.github.com/repos/commitsto/commits.to/statuses/6fff3df0e399d1ced30c25d276f065c0f8d65126","head":{"label":"commitsto:latepenalty-bugfix","ref":"latepenalty-bugfix","sha":"6fff3df0e399d1ced30c25d276f065c0f8d65126","user":{"login":"commitsto","id":38993707,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4OTkzNzA3","avatar_url":"https://avatars1.githubusercontent.com/u/38993707?v=4","gravatar_id":"","url":"https://api.github.com/users/commitsto","html_url":"https://github.com/commitsto","followers_url":"https://api.github.com/users/commitsto/followers","following_url":"https://api.github.com/users/commitsto/following{/other_user}","gists_url":"https://api.github.com/users/commitsto/gists{/gist_id}","starred_url":"https://api.github.com/users/commitsto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/commitsto/subscriptions","organizations_url":"https://api.github.com/users/commitsto/orgs","repos_url":"https://api.github.com/users/commitsto/repos","events_url":"https://api.github.com/users/commitsto/events{/privacy}","received_events_url":"https://api.github.com/users/commitsto/received_events","type":"Organization","site_admin":false},"repo":{"id":104519726,"node_id":"MDEwOlJlcG9zaXRvcnkxMDQ1MTk3MjY=","name":"commits.to","full_name":"commitsto/commits.to","owner":{"login":"commitsto","id":38993707,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4OTkzNzA3","avatar_url":"https://avatars1.githubusercontent.com/u/38993707?v=4","gravatar_id":"","url":"https://api.github.com/users/commitsto","html_url":"https://github.com/commitsto","followers_url":"https://api.github.com/users/commitsto/followers","following_url":"https://api.github.com/users/commitsto/following{/other_user}","gists_url":"https://api.github.com/users/commitsto/gists{/gist_id}","starred_url":"https://api.github.com/users/commitsto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/commitsto/subscriptions","organizations_url":"https://api.github.com/users/commitsto/orgs","repos_url":"https://api.github.com/users/commitsto/repos","events_url":"https://api.github.com/users/commitsto/events{/privacy}","received_events_url":"https://api.github.com/users/commitsto/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/commitsto/commits.to","description":"Real-time commitment tracking","fork":false,"url":"https://api.github.com/repos/commitsto/commits.to","forks_url":"https://api.github.com/repos/commitsto/commits.to/forks","keys_url":"https://api.github.com/repos/commitsto/commits.to/keys{/key_id}","collaborators_url":"https://api.github.com/repos/commitsto/commits.to/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/commitsto/commits.to/teams","hooks_url":"https://api.github.com/repos/commitsto/commits.to/hooks","issue_events_url":"https://api.github.com/repos/commitsto/commits.to/issues/events{/number}","events_url":"https://api.github.com/repos/commitsto/commits.to/events","assignees_url":"https://api.github.com/repos/commitsto/commits.to/assignees{/user}","branches_url":"https://api.github.com/repos/commitsto/commits.to/branches{/branch}","tags_url":"https://api.github.com/repos/commitsto/commits.to/tags","blobs_url":"https://api.github.com/repos/commitsto/commits.to/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/commitsto/commits.to/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/commitsto/commits.to/git/refs{/sha}","trees_url":"https://api.github.com/repos/commitsto/commits.to/git/trees{/sha}","statuses_url":"https://api.github.com/repos/commitsto/commits.to/statuses/{sha}","languages_url":"https://api.github.com/repos/commitsto/commits.to/languages","stargazers_url":"https://api.github.com/repos/commitsto/commits.to/stargazers","contributors_url":"https://api.github.com/repos/commitsto/commits.to/contributors","subscribers_url":"https://api.github.com/repos/commitsto/commits.to/subscribers","subscription_url":"https://api.github.com/repos/commitsto/commits.to/subscription","commits_url":"https://api.github.com/repos/commitsto/commits.to/commits{/sha}","git_commits_url":"https://api.github.com/repos/commitsto/commits.to/git/commits{/sha}","comments_url":"https://api.github.com/repos/commitsto/commits.to/comments{/number}","issue_comment_url":"https://api.github.com/repos/commitsto/commits.to/issues/comments{/number}","contents_url":"https://api.github.com/repos/commitsto/commits.to/contents/{+path}","compare_url":"https://api.github.com/repos/commitsto/commits.to/compare/{base}...{head}","merges_url":"https://api.github.com/repos/commitsto/commits.to/merges","archive_url":"https://api.github.com/repos/commitsto/commits.to/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/commitsto/commits.to/downloads","issues_url":"https://api.github.com/repos/commitsto/commits.to/issues{/number}","pulls_url":"https://api.github.com/repos/commitsto/commits.to/pulls{/number}","milestones_url":"https://api.github.com/repos/commitsto/commits.to/milestones{/number}","notifications_url":"https://api.github.com/repos/commitsto/commits.to/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/commitsto/commits.to/labels{/name}","releases_url":"https://api.github.com/repos/commitsto/commits.to/releases{/id}","deployments_url":"https://api.github.com/repos/commitsto/commits.to/deployments","created_at":"2017-09-22T21:20:23Z","updated_at":"2018-06-13T03:56:29Z","pushed_at":"2018-06-14T02:29:47Z","git_url":"git://github.com/commitsto/commits.to.git","ssh_url":"git@github.com:commitsto/commits.to.git","clone_url":"https://github.com/commitsto/commits.to.git","svn_url":"https://github.com/commitsto/commits.to","homepage":"http://commits.to","size":1260,"stargazers_count":15,"watchers_count":15,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":10,"open_issues":7,"watchers":15,"default_branch":"master"}},"base":{"label":"commitsto:master","ref":"master","sha":"5bd236fa06db9a78c68f0363a6817809d8ec2b8f","user":{"login":"commitsto","id":38993707,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4OTkzNzA3","avatar_url":"https://avatars1.githubusercontent.com/u/38993707?v=4","gravatar_id":"","url":"https://api.github.com/users/commitsto","html_url":"https://github.com/commitsto","followers_url":"https://api.github.com/users/commitsto/followers","following_url":"https://api.github.com/users/commitsto/following{/other_user}","gists_url":"https://api.github.com/users/commitsto/gists{/gist_id}","starred_url":"https://api.github.com/users/commitsto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/commitsto/subscriptions","organizations_url":"https://api.github.com/users/commitsto/orgs","repos_url":"https://api.github.com/users/commitsto/repos","events_url":"https://api.github.com/users/commitsto/events{/privacy}","received_events_url":"https://api.github.com/users/commitsto/received_events","type":"Organization","site_admin":false},"repo":{"id":104519726,"node_id":"MDEwOlJlcG9zaXRvcnkxMDQ1MTk3MjY=","name":"commits.to","full_name":"commitsto/commits.to","owner":{"login":"commitsto","id":38993707,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4OTkzNzA3","avatar_url":"https://avatars1.githubusercontent.com/u/38993707?v=4","gravatar_id":"","url":"https://api.github.com/users/commitsto","html_url":"https://github.com/commitsto","followers_url":"https://api.github.com/users/commitsto/followers","following_url":"https://api.github.com/users/commitsto/following{/other_user}","gists_url":"https://api.github.com/users/commitsto/gists{/gist_id}","starred_url":"https://api.github.com/users/commitsto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/commitsto/subscriptions","organizations_url":"https://api.github.com/users/commitsto/orgs","repos_url":"https://api.github.com/users/commitsto/repos","events_url":"https://api.github.com/users/commitsto/events{/privacy}","received_events_url":"https://api.github.com/users/commitsto/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/commitsto/commits.to","description":"Real-time commitment tracking","fork":false,"url":"https://api.github.com/repos/commitsto/commits.to","forks_url":"https://api.github.com/repos/commitsto/commits.to/forks","keys_url":"https://api.github.com/repos/commitsto/commits.to/keys{/key_id}","collaborators_url":"https://api.github.com/repos/commitsto/commits.to/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/commitsto/commits.to/teams","hooks_url":"https://api.github.com/repos/commitsto/commits.to/hooks","issue_events_url":"https://api.github.com/repos/commitsto/commits.to/issues/events{/number}","events_url":"https://api.github.com/repos/commitsto/commits.to/events","assignees_url":"https://api.github.com/repos/commitsto/commits.to/assignees{/user}","branches_url":"https://api.github.com/repos/commitsto/commits.to/branches{/branch}","tags_url":"https://api.github.com/repos/commitsto/commits.to/tags","blobs_url":"https://api.github.com/repos/commitsto/commits.to/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/commitsto/commits.to/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/commitsto/commits.to/git/refs{/sha}","trees_url":"https://api.github.com/repos/commitsto/commits.to/git/trees{/sha}","statuses_url":"https://api.github.com/repos/commitsto/commits.to/statuses/{sha}","languages_url":"https://api.github.com/repos/commitsto/commits.to/languages","stargazers_url":"https://api.github.com/repos/commitsto/commits.to/stargazers","contributors_url":"https://api.github.com/repos/commitsto/commits.to/contributors","subscribers_url":"https://api.github.com/repos/commitsto/commits.to/subscribers","subscription_url":"https://api.github.com/repos/commitsto/commits.to/subscription","commits_url":"https://api.github.com/repos/commitsto/commits.to/commits{/sha}","git_commits_url":"https://api.github.com/repos/commitsto/commits.to/git/commits{/sha}","comments_url":"https://api.github.com/repos/commitsto/commits.to/comments{/number}","issue_comment_url":"https://api.github.com/repos/commitsto/commits.to/issues/comments{/number}","contents_url":"https://api.github.com/repos/commitsto/commits.to/contents/{+path}","compare_url":"https://api.github.com/repos/commitsto/commits.to/compare/{base}...{head}","merges_url":"https://api.github.com/repos/commitsto/commits.to/merges","archive_url":"https://api.github.com/repos/commitsto/commits.to/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/commitsto/commits.to/downloads","issues_url":"https://api.github.com/repos/commitsto/commits.to/issues{/number}","pulls_url":"https://api.github.com/repos/commitsto/commits.to/pulls{/number}","milestones_url":"https://api.github.com/repos/commitsto/commits.to/milestones{/number}","notifications_url":"https://api.github.com/repos/commitsto/commits.to/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/commitsto/commits.to/labels{/name}","releases_url":"https://api.github.com/repos/commitsto/commits.to/releases{/id}","deployments_url":"https://api.github.com/repos/commitsto/commits.to/deployments","created_at":"2017-09-22T21:20:23Z","updated_at":"2018-06-13T03:56:29Z","pushed_at":"2018-06-14T02:29:47Z","git_url":"git://github.com/commitsto/commits.to.git","ssh_url":"git@github.com:commitsto/commits.to.git","clone_url":"https://github.com/commitsto/commits.to.git","svn_url":"https://github.com/commitsto/commits.to","homepage":"http://commits.to","size":1260,"stargazers_count":15,"watchers_count":15,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":10,"open_issues":7,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/commitsto/commits.to/pulls/214"},"html":{"href":"https://github.com/commitsto/commits.to/pull/214"},"issue":{"href":"https://api.github.com/repos/commitsto/commits.to/issues/214"},"comments":{"href":"https://api.github.com/repos/commitsto/commits.to/issues/214/comments"},"review_comments":{"href":"https://api.github.com/repos/commitsto/commits.to/pulls/214/comments"},"review_comment":{"href":"https://api.github.com/repos/commitsto/commits.to/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/commitsto/commits.to/pulls/214/commits"},"statuses":{"href":"https://api.github.com/repos/commitsto/commits.to/statuses/6fff3df0e399d1ced30c25d276f065c0f8d65126"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"chrisbutler"}}