{"action":"created","comment":{"url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/pulls/comments/186194996","pull_request_review_id":117735834,"id":186194996,"diff_hunk":"@@ -0,0 +1,36 @@\n+package epoch\n+\n+import \"time\"\n+\n+// Data is a data structure associated an Epoch.\n+type Data struct {\n+\tLabel       string\n+\tDescription string\n+\tMinDuration time.Duration\n+\tMaxDuration time.Duration\n+}\n+\n+// Epoch encapsulates a pattern in time during which new epochs begin at regular intervals.\n+type Epoch interface {\n+\tGetData() Data\n+\tIsEpochal(prev time.Time, next time.Time) bool\n+}\n+\n+// ByMaxDuration is a []Epoch sortable by GetMaxDuration() values.\n+type ByMaxDuration []Epoch\n+\n+func (e ByMaxDuration) Len() int {","path":"revisions/epoch/types.go","position":null,"original_position":22,"commit_id":"3ff965da3c8ba767fdda674a3d568b937cfab65c","original_commit_id":"e49f50da6bdd216440a01402770e3cac86a5aa26","user":{"login":"lukebjerring","id":777956,"avatar_url":"https://avatars2.githubusercontent.com/u/777956?v=4","gravatar_id":"","url":"https://api.github.com/users/lukebjerring","html_url":"https://github.com/lukebjerring","followers_url":"https://api.github.com/users/lukebjerring/followers","following_url":"https://api.github.com/users/lukebjerring/following{/other_user}","gists_url":"https://api.github.com/users/lukebjerring/gists{/gist_id}","starred_url":"https://api.github.com/users/lukebjerring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukebjerring/subscriptions","organizations_url":"https://api.github.com/users/lukebjerring/orgs","repos_url":"https://api.github.com/users/lukebjerring/repos","events_url":"https://api.github.com/users/lukebjerring/events{/privacy}","received_events_url":"https://api.github.com/users/lukebjerring/received_events","type":"User","site_admin":false},"body":"I'm gonna go ahead and collapse this chunk of code.","created_at":"2018-05-04T19:36:28Z","updated_at":"2018-05-04T19:37:33Z","html_url":"https://github.com/web-platform-tests/wpt.fyi/pull/103#discussion_r186194996","pull_request_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/pulls/103","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/web-platform-tests/wpt.fyi/pulls/comments/186194996"},"html":{"href":"https://github.com/web-platform-tests/wpt.fyi/pull/103#discussion_r186194996"},"pull_request":{"href":"https://api.github.com/repos/web-platform-tests/wpt.fyi/pulls/103"}}},"pull_request":{"url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/pulls/103","id":184804000,"html_url":"https://github.com/web-platform-tests/wpt.fyi/pull/103","diff_url":"https://github.com/web-platform-tests/wpt.fyi/pull/103.diff","patch_url":"https://github.com/web-platform-tests/wpt.fyi/pull/103.patch","issue_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/issues/103","number":103,"state":"open","locked":false,"title":"Test and implement revisions/epoch package","user":{"login":"mdittmer","id":1775176,"avatar_url":"https://avatars3.githubusercontent.com/u/1775176?v=4","gravatar_id":"","url":"https://api.github.com/users/mdittmer","html_url":"https://github.com/mdittmer","followers_url":"https://api.github.com/users/mdittmer/followers","following_url":"https://api.github.com/users/mdittmer/following{/other_user}","gists_url":"https://api.github.com/users/mdittmer/gists{/gist_id}","starred_url":"https://api.github.com/users/mdittmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdittmer/subscriptions","organizations_url":"https://api.github.com/users/mdittmer/orgs","repos_url":"https://api.github.com/users/mdittmer/repos","events_url":"https://api.github.com/users/mdittmer/events{/privacy}","received_events_url":"https://api.github.com/users/mdittmer/received_events","type":"User","site_admin":false},"body":"## Description\r\nTest and implement revisions/epoch package\r\n\r\n## Review Information\r\nCode does not currently affect prod (even if deployed). Tests automatically integrated into `make go_test`.\r\n\r\n## Changes\r\nAdd files from `mdittmer/wpt-announcer` repo's `epoch` package.\r\n\r\n## Requirements\r\nSame prereq.s as currently required to run `make go_test`.","created_at":"2018-04-28T20:27:09Z","updated_at":"2018-05-04T19:37:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6d41165abf5e0a4ed85ab50f74507993ed1139bb","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/pulls/103/commits","review_comments_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/pulls/103/comments","review_comment_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/issues/103/comments","statuses_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/statuses/3ff965da3c8ba767fdda674a3d568b937cfab65c","head":{"label":"mdittmer:epoch","ref":"epoch","sha":"3ff965da3c8ba767fdda674a3d568b937cfab65c","user":{"login":"mdittmer","id":1775176,"avatar_url":"https://avatars3.githubusercontent.com/u/1775176?v=4","gravatar_id":"","url":"https://api.github.com/users/mdittmer","html_url":"https://github.com/mdittmer","followers_url":"https://api.github.com/users/mdittmer/followers","following_url":"https://api.github.com/users/mdittmer/following{/other_user}","gists_url":"https://api.github.com/users/mdittmer/gists{/gist_id}","starred_url":"https://api.github.com/users/mdittmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdittmer/subscriptions","organizations_url":"https://api.github.com/users/mdittmer/orgs","repos_url":"https://api.github.com/users/mdittmer/repos","events_url":"https://api.github.com/users/mdittmer/events{/privacy}","received_events_url":"https://api.github.com/users/mdittmer/received_events","type":"User","site_admin":false},"repo":{"id":130732726,"name":"wpt.fyi","full_name":"mdittmer/wpt.fyi","owner":{"login":"mdittmer","id":1775176,"avatar_url":"https://avatars3.githubusercontent.com/u/1775176?v=4","gravatar_id":"","url":"https://api.github.com/users/mdittmer","html_url":"https://github.com/mdittmer","followers_url":"https://api.github.com/users/mdittmer/followers","following_url":"https://api.github.com/users/mdittmer/following{/other_user}","gists_url":"https://api.github.com/users/mdittmer/gists{/gist_id}","starred_url":"https://api.github.com/users/mdittmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdittmer/subscriptions","organizations_url":"https://api.github.com/users/mdittmer/orgs","repos_url":"https://api.github.com/users/mdittmer/repos","events_url":"https://api.github.com/users/mdittmer/events{/privacy}","received_events_url":"https://api.github.com/users/mdittmer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mdittmer/wpt.fyi","description":"web-platform-tests dashboard","fork":true,"url":"https://api.github.com/repos/mdittmer/wpt.fyi","forks_url":"https://api.github.com/repos/mdittmer/wpt.fyi/forks","keys_url":"https://api.github.com/repos/mdittmer/wpt.fyi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mdittmer/wpt.fyi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mdittmer/wpt.fyi/teams","hooks_url":"https://api.github.com/repos/mdittmer/wpt.fyi/hooks","issue_events_url":"https://api.github.com/repos/mdittmer/wpt.fyi/issues/events{/number}","events_url":"https://api.github.com/repos/mdittmer/wpt.fyi/events","assignees_url":"https://api.github.com/repos/mdittmer/wpt.fyi/assignees{/user}","branches_url":"https://api.github.com/repos/mdittmer/wpt.fyi/branches{/branch}","tags_url":"https://api.github.com/repos/mdittmer/wpt.fyi/tags","blobs_url":"https://api.github.com/repos/mdittmer/wpt.fyi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mdittmer/wpt.fyi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mdittmer/wpt.fyi/git/refs{/sha}","trees_url":"https://api.github.com/repos/mdittmer/wpt.fyi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mdittmer/wpt.fyi/statuses/{sha}","languages_url":"https://api.github.com/repos/mdittmer/wpt.fyi/languages","stargazers_url":"https://api.github.com/repos/mdittmer/wpt.fyi/stargazers","contributors_url":"https://api.github.com/repos/mdittmer/wpt.fyi/contributors","subscribers_url":"https://api.github.com/repos/mdittmer/wpt.fyi/subscribers","subscription_url":"https://api.github.com/repos/mdittmer/wpt.fyi/subscription","commits_url":"https://api.github.com/repos/mdittmer/wpt.fyi/commits{/sha}","git_commits_url":"https://api.github.com/repos/mdittmer/wpt.fyi/git/commits{/sha}","comments_url":"https://api.github.com/repos/mdittmer/wpt.fyi/comments{/number}","issue_comment_url":"https://api.github.com/repos/mdittmer/wpt.fyi/issues/comments{/number}","contents_url":"https://api.github.com/repos/mdittmer/wpt.fyi/contents/{+path}","compare_url":"https://api.github.com/repos/mdittmer/wpt.fyi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mdittmer/wpt.fyi/merges","archive_url":"https://api.github.com/repos/mdittmer/wpt.fyi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mdittmer/wpt.fyi/downloads","issues_url":"https://api.github.com/repos/mdittmer/wpt.fyi/issues{/number}","pulls_url":"https://api.github.com/repos/mdittmer/wpt.fyi/pulls{/number}","milestones_url":"https://api.github.com/repos/mdittmer/wpt.fyi/milestones{/number}","notifications_url":"https://api.github.com/repos/mdittmer/wpt.fyi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mdittmer/wpt.fyi/labels{/name}","releases_url":"https://api.github.com/repos/mdittmer/wpt.fyi/releases{/id}","deployments_url":"https://api.github.com/repos/mdittmer/wpt.fyi/deployments","created_at":"2018-04-23T17:30:12Z","updated_at":"2018-04-23T17:30:14Z","pushed_at":"2018-05-04T19:37:27Z","git_url":"git://github.com/mdittmer/wpt.fyi.git","ssh_url":"git@github.com:mdittmer/wpt.fyi.git","clone_url":"https://github.com/mdittmer/wpt.fyi.git","svn_url":"https://github.com/mdittmer/wpt.fyi","homepage":"https://wpt.fyi/","size":5977,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"web-platform-tests:master","ref":"master","sha":"ae1d71b6b6f2e1c021e1b3128b59c1d6b027ad00","user":{"login":"web-platform-tests","id":37226233,"avatar_url":"https://avatars0.githubusercontent.com/u/37226233?v=4","gravatar_id":"","url":"https://api.github.com/users/web-platform-tests","html_url":"https://github.com/web-platform-tests","followers_url":"https://api.github.com/users/web-platform-tests/followers","following_url":"https://api.github.com/users/web-platform-tests/following{/other_user}","gists_url":"https://api.github.com/users/web-platform-tests/gists{/gist_id}","starred_url":"https://api.github.com/users/web-platform-tests/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/web-platform-tests/subscriptions","organizations_url":"https://api.github.com/users/web-platform-tests/orgs","repos_url":"https://api.github.com/users/web-platform-tests/repos","events_url":"https://api.github.com/users/web-platform-tests/events{/privacy}","received_events_url":"https://api.github.com/users/web-platform-tests/received_events","type":"Organization","site_admin":false},"repo":{"id":128905889,"name":"wpt.fyi","full_name":"web-platform-tests/wpt.fyi","owner":{"login":"web-platform-tests","id":37226233,"avatar_url":"https://avatars0.githubusercontent.com/u/37226233?v=4","gravatar_id":"","url":"https://api.github.com/users/web-platform-tests","html_url":"https://github.com/web-platform-tests","followers_url":"https://api.github.com/users/web-platform-tests/followers","following_url":"https://api.github.com/users/web-platform-tests/following{/other_user}","gists_url":"https://api.github.com/users/web-platform-tests/gists{/gist_id}","starred_url":"https://api.github.com/users/web-platform-tests/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/web-platform-tests/subscriptions","organizations_url":"https://api.github.com/users/web-platform-tests/orgs","repos_url":"https://api.github.com/users/web-platform-tests/repos","events_url":"https://api.github.com/users/web-platform-tests/events{/privacy}","received_events_url":"https://api.github.com/users/web-platform-tests/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/web-platform-tests/wpt.fyi","description":"web-platform-tests dashboard","fork":false,"url":"https://api.github.com/repos/web-platform-tests/wpt.fyi","forks_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/forks","keys_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/teams","hooks_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/hooks","issue_events_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/issues/events{/number}","events_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/events","assignees_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/assignees{/user}","branches_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/branches{/branch}","tags_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/tags","blobs_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/git/refs{/sha}","trees_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/statuses/{sha}","languages_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/languages","stargazers_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/stargazers","contributors_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/contributors","subscribers_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/subscribers","subscription_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/subscription","commits_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/commits{/sha}","git_commits_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/git/commits{/sha}","comments_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/comments{/number}","issue_comment_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/issues/comments{/number}","contents_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/contents/{+path}","compare_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/merges","archive_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/downloads","issues_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/issues{/number}","pulls_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/pulls{/number}","milestones_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/milestones{/number}","notifications_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/labels{/name}","releases_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/releases{/id}","deployments_url":"https://api.github.com/repos/web-platform-tests/wpt.fyi/deployments","created_at":"2018-04-10T09:12:55Z","updated_at":"2018-05-04T19:31:29Z","pushed_at":"2018-05-04T19:37:28Z","git_url":"git://github.com/web-platform-tests/wpt.fyi.git","ssh_url":"git@github.com:web-platform-tests/wpt.fyi.git","clone_url":"https://github.com/web-platform-tests/wpt.fyi.git","svn_url":"https://github.com/web-platform-tests/wpt.fyi","homepage":"https://wpt.fyi/","size":6245,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":75,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":7,"open_issues":75,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/web-platform-tests/wpt.fyi/pulls/103"},"html":{"href":"https://github.com/web-platform-tests/wpt.fyi/pull/103"},"issue":{"href":"https://api.github.com/repos/web-platform-tests/wpt.fyi/issues/103"},"comments":{"href":"https://api.github.com/repos/web-platform-tests/wpt.fyi/issues/103/comments"},"review_comments":{"href":"https://api.github.com/repos/web-platform-tests/wpt.fyi/pulls/103/comments"},"review_comment":{"href":"https://api.github.com/repos/web-platform-tests/wpt.fyi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/web-platform-tests/wpt.fyi/pulls/103/commits"},"statuses":{"href":"https://api.github.com/repos/web-platform-tests/wpt.fyi/statuses/3ff965da3c8ba767fdda674a3d568b937cfab65c"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"lukebjerring"}}