{"action":"created","comment":{"url":"https://api.github.com/repos/coala/community/pulls/comments/154760879","pull_request_review_id":80972196,"id":154760879,"diff_hunk":"@@ -0,0 +1,20 @@\n+var timestamp = document.getElementById('time').getAttribute('data-time');\n+var ago = document.getElementById('ago');\n+\n+var sec = ((new Date()).getTime() / 1000) - parseInt(timestamp);\n+var min = sec / 60;\n+var hour = min / 60;\n+var day = hour / 24;\n+\n+var timeString = '';\n+if (day > 1) {","path":"static/timeago.js","position":10,"original_position":10,"commit_id":"eb0f5e02370c680589f8a8bdfabdeee7e12e4f3d","original_commit_id":"eb0f5e02370c680589f8a8bdfabdeee7e12e4f3d","user":{"login":"Monal5031","id":21009189,"avatar_url":"https://avatars0.githubusercontent.com/u/21009189?v=4","gravatar_id":"","url":"https://api.github.com/users/Monal5031","html_url":"https://github.com/Monal5031","followers_url":"https://api.github.com/users/Monal5031/followers","following_url":"https://api.github.com/users/Monal5031/following{/other_user}","gists_url":"https://api.github.com/users/Monal5031/gists{/gist_id}","starred_url":"https://api.github.com/users/Monal5031/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Monal5031/subscriptions","organizations_url":"https://api.github.com/users/Monal5031/orgs","repos_url":"https://api.github.com/users/Monal5031/repos","events_url":"https://api.github.com/users/Monal5031/events{/privacy}","received_events_url":"https://api.github.com/users/Monal5031/received_events","type":"User","site_admin":false},"body":"Suppose the hour turns out to be something `>=23.5` then your logic will display `24 hours ago`","created_at":"2017-12-04T20:07:06Z","updated_at":"2017-12-04T20:07:06Z","html_url":"https://github.com/coala/community/pull/17#discussion_r154760879","pull_request_url":"https://api.github.com/repos/coala/community/pulls/17","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/coala/community/pulls/comments/154760879"},"html":{"href":"https://github.com/coala/community/pull/17#discussion_r154760879"},"pull_request":{"href":"https://api.github.com/repos/coala/community/pulls/17"}},"in_reply_to_id":154756360},"pull_request":{"url":"https://api.github.com/repos/coala/community/pulls/17","id":156087073,"html_url":"https://github.com/coala/community/pull/17","diff_url":"https://github.com/coala/community/pull/17.diff","patch_url":"https://github.com/coala/community/pull/17.patch","issue_url":"https://api.github.com/repos/coala/community/issues/17","number":17,"state":"open","locked":false,"title":"views.py: Add last generated timestamp","user":{"login":"andrewda","id":10191084,"avatar_url":"https://avatars1.githubusercontent.com/u/10191084?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewda","html_url":"https://github.com/andrewda","followers_url":"https://api.github.com/users/andrewda/followers","following_url":"https://api.github.com/users/andrewda/following{/other_user}","gists_url":"https://api.github.com/users/andrewda/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewda/subscriptions","organizations_url":"https://api.github.com/users/andrewda/orgs","repos_url":"https://api.github.com/users/andrewda/repos","events_url":"https://api.github.com/users/andrewda/events{/privacy}","received_events_url":"https://api.github.com/users/andrewda/received_events","type":"User","site_admin":false},"body":"This adds a UTC last generated timestamp to the view as well as how\r\nlong ago it was updated.\r\n\r\nCloses https://github.com/coala/community/issues/7\r\n\r\n## Screenshot\r\n\r\n![screen shot 2017-12-04 at 10 35 52 am](https://user-images.githubusercontent.com/10191084/33569588-fbf6bfc0-d8de-11e7-9808-e1daa6bd1324.png)\r\n","created_at":"2017-12-03T23:17:37Z","updated_at":"2017-12-04T20:07:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4bdc5e81b734908630fb6de705d84bbdbe3511a8","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/coala/community/pulls/17/commits","review_comments_url":"https://api.github.com/repos/coala/community/pulls/17/comments","review_comment_url":"https://api.github.com/repos/coala/community/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coala/community/issues/17/comments","statuses_url":"https://api.github.com/repos/coala/community/statuses/eb0f5e02370c680589f8a8bdfabdeee7e12e4f3d","head":{"label":"andrewda:timestamp","ref":"timestamp","sha":"eb0f5e02370c680589f8a8bdfabdeee7e12e4f3d","user":{"login":"andrewda","id":10191084,"avatar_url":"https://avatars1.githubusercontent.com/u/10191084?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewda","html_url":"https://github.com/andrewda","followers_url":"https://api.github.com/users/andrewda/followers","following_url":"https://api.github.com/users/andrewda/following{/other_user}","gists_url":"https://api.github.com/users/andrewda/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewda/subscriptions","organizations_url":"https://api.github.com/users/andrewda/orgs","repos_url":"https://api.github.com/users/andrewda/repos","events_url":"https://api.github.com/users/andrewda/events{/privacy}","received_events_url":"https://api.github.com/users/andrewda/received_events","type":"User","site_admin":false},"repo":{"id":112888831,"name":"community","full_name":"andrewda/community","owner":{"login":"andrewda","id":10191084,"avatar_url":"https://avatars1.githubusercontent.com/u/10191084?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewda","html_url":"https://github.com/andrewda","followers_url":"https://api.github.com/users/andrewda/followers","following_url":"https://api.github.com/users/andrewda/following{/other_user}","gists_url":"https://api.github.com/users/andrewda/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewda/subscriptions","organizations_url":"https://api.github.com/users/andrewda/orgs","repos_url":"https://api.github.com/users/andrewda/repos","events_url":"https://api.github.com/users/andrewda/events{/privacy}","received_events_url":"https://api.github.com/users/andrewda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andrewda/community","description":null,"fork":true,"url":"https://api.github.com/repos/andrewda/community","forks_url":"https://api.github.com/repos/andrewda/community/forks","keys_url":"https://api.github.com/repos/andrewda/community/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andrewda/community/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andrewda/community/teams","hooks_url":"https://api.github.com/repos/andrewda/community/hooks","issue_events_url":"https://api.github.com/repos/andrewda/community/issues/events{/number}","events_url":"https://api.github.com/repos/andrewda/community/events","assignees_url":"https://api.github.com/repos/andrewda/community/assignees{/user}","branches_url":"https://api.github.com/repos/andrewda/community/branches{/branch}","tags_url":"https://api.github.com/repos/andrewda/community/tags","blobs_url":"https://api.github.com/repos/andrewda/community/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andrewda/community/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andrewda/community/git/refs{/sha}","trees_url":"https://api.github.com/repos/andrewda/community/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andrewda/community/statuses/{sha}","languages_url":"https://api.github.com/repos/andrewda/community/languages","stargazers_url":"https://api.github.com/repos/andrewda/community/stargazers","contributors_url":"https://api.github.com/repos/andrewda/community/contributors","subscribers_url":"https://api.github.com/repos/andrewda/community/subscribers","subscription_url":"https://api.github.com/repos/andrewda/community/subscription","commits_url":"https://api.github.com/repos/andrewda/community/commits{/sha}","git_commits_url":"https://api.github.com/repos/andrewda/community/git/commits{/sha}","comments_url":"https://api.github.com/repos/andrewda/community/comments{/number}","issue_comment_url":"https://api.github.com/repos/andrewda/community/issues/comments{/number}","contents_url":"https://api.github.com/repos/andrewda/community/contents/{+path}","compare_url":"https://api.github.com/repos/andrewda/community/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andrewda/community/merges","archive_url":"https://api.github.com/repos/andrewda/community/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andrewda/community/downloads","issues_url":"https://api.github.com/repos/andrewda/community/issues{/number}","pulls_url":"https://api.github.com/repos/andrewda/community/pulls{/number}","milestones_url":"https://api.github.com/repos/andrewda/community/milestones{/number}","notifications_url":"https://api.github.com/repos/andrewda/community/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andrewda/community/labels{/name}","releases_url":"https://api.github.com/repos/andrewda/community/releases{/id}","deployments_url":"https://api.github.com/repos/andrewda/community/deployments","created_at":"2017-12-03T00:39:14Z","updated_at":"2017-12-03T00:39:16Z","pushed_at":"2017-12-04T18:21:09Z","git_url":"git://github.com/andrewda/community.git","ssh_url":"git@github.com:andrewda/community.git","clone_url":"https://github.com/andrewda/community.git","svn_url":"https://github.com/andrewda/community","homepage":null,"size":31,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"coala:master","ref":"master","sha":"b951ad95948112785522428d66a78785ffb7eebc","user":{"login":"coala","id":10620750,"avatar_url":"https://avatars3.githubusercontent.com/u/10620750?v=4","gravatar_id":"","url":"https://api.github.com/users/coala","html_url":"https://github.com/coala","followers_url":"https://api.github.com/users/coala/followers","following_url":"https://api.github.com/users/coala/following{/other_user}","gists_url":"https://api.github.com/users/coala/gists{/gist_id}","starred_url":"https://api.github.com/users/coala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coala/subscriptions","organizations_url":"https://api.github.com/users/coala/orgs","repos_url":"https://api.github.com/users/coala/repos","events_url":"https://api.github.com/users/coala/events{/privacy}","received_events_url":"https://api.github.com/users/coala/received_events","type":"Organization","site_admin":false},"repo":{"id":112669631,"name":"community","full_name":"coala/community","owner":{"login":"coala","id":10620750,"avatar_url":"https://avatars3.githubusercontent.com/u/10620750?v=4","gravatar_id":"","url":"https://api.github.com/users/coala","html_url":"https://github.com/coala","followers_url":"https://api.github.com/users/coala/followers","following_url":"https://api.github.com/users/coala/following{/other_user}","gists_url":"https://api.github.com/users/coala/gists{/gist_id}","starred_url":"https://api.github.com/users/coala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coala/subscriptions","organizations_url":"https://api.github.com/users/coala/orgs","repos_url":"https://api.github.com/users/coala/repos","events_url":"https://api.github.com/users/coala/events{/privacy}","received_events_url":"https://api.github.com/users/coala/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coala/community","description":null,"fork":false,"url":"https://api.github.com/repos/coala/community","forks_url":"https://api.github.com/repos/coala/community/forks","keys_url":"https://api.github.com/repos/coala/community/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coala/community/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coala/community/teams","hooks_url":"https://api.github.com/repos/coala/community/hooks","issue_events_url":"https://api.github.com/repos/coala/community/issues/events{/number}","events_url":"https://api.github.com/repos/coala/community/events","assignees_url":"https://api.github.com/repos/coala/community/assignees{/user}","branches_url":"https://api.github.com/repos/coala/community/branches{/branch}","tags_url":"https://api.github.com/repos/coala/community/tags","blobs_url":"https://api.github.com/repos/coala/community/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coala/community/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coala/community/git/refs{/sha}","trees_url":"https://api.github.com/repos/coala/community/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coala/community/statuses/{sha}","languages_url":"https://api.github.com/repos/coala/community/languages","stargazers_url":"https://api.github.com/repos/coala/community/stargazers","contributors_url":"https://api.github.com/repos/coala/community/contributors","subscribers_url":"https://api.github.com/repos/coala/community/subscribers","subscription_url":"https://api.github.com/repos/coala/community/subscription","commits_url":"https://api.github.com/repos/coala/community/commits{/sha}","git_commits_url":"https://api.github.com/repos/coala/community/git/commits{/sha}","comments_url":"https://api.github.com/repos/coala/community/comments{/number}","issue_comment_url":"https://api.github.com/repos/coala/community/issues/comments{/number}","contents_url":"https://api.github.com/repos/coala/community/contents/{+path}","compare_url":"https://api.github.com/repos/coala/community/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coala/community/merges","archive_url":"https://api.github.com/repos/coala/community/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coala/community/downloads","issues_url":"https://api.github.com/repos/coala/community/issues{/number}","pulls_url":"https://api.github.com/repos/coala/community/pulls{/number}","milestones_url":"https://api.github.com/repos/coala/community/milestones{/number}","notifications_url":"https://api.github.com/repos/coala/community/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coala/community/labels{/name}","releases_url":"https://api.github.com/repos/coala/community/releases{/id}","deployments_url":"https://api.github.com/repos/coala/community/deployments","created_at":"2017-11-30T22:51:36Z","updated_at":"2017-12-04T10:40:47Z","pushed_at":"2017-12-04T18:47:58Z","git_url":"git://github.com/coala/community.git","ssh_url":"git@github.com:coala/community.git","clone_url":"https://github.com/coala/community.git","svn_url":"https://github.com/coala/community","homepage":"http://community.coala.io/","size":30,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":17,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":4,"open_issues":17,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coala/community/pulls/17"},"html":{"href":"https://github.com/coala/community/pull/17"},"issue":{"href":"https://api.github.com/repos/coala/community/issues/17"},"comments":{"href":"https://api.github.com/repos/coala/community/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/coala/community/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/coala/community/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coala/community/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/coala/community/statuses/eb0f5e02370c680589f8a8bdfabdeee7e12e4f3d"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"Monal5031"}}