{"action":"created","comment":{"url":"https://api.github.com/repos/wix/stylable-components/pulls/comments/132977127","pull_request_review_id":55776973,"id":132977127,"diff_hunk":"@@ -0,0 +1,58 @@\n+export enum Ampm {\n+    AM,\n+    PM,\n+    NONE\n+}\n+export type TimeSegment = 'hh' | 'mm';\n+export type Format = 'ampm' | '24h';\n+export type Segment = TimeSegment | 'ampm';\n+\n+export const selectionIndexes = {\n+    hh: [0, 2],\n+    mm: [3, 5],\n+    ampm: [6, 8]\n+};\n+\n+export function pad2(num: string | number): string {\n+    return ('00' + num).slice(-2);\n+}\n+\n+export function isTimeSegment(arg: any): arg is TimeSegment {","path":"src/components/time-picker/utils.ts","position":20,"original_position":20,"commit_id":"1c7bead7d87e999dcf98e3a0ad220b74752ba03f","original_commit_id":"1c7bead7d87e999dcf98e3a0ad220b74752ba03f","user":{"login":"tyv","id":122360,"avatar_url":"https://avatars2.githubusercontent.com/u/122360?v=4","gravatar_id":"","url":"https://api.github.com/users/tyv","html_url":"https://github.com/tyv","followers_url":"https://api.github.com/users/tyv/followers","following_url":"https://api.github.com/users/tyv/following{/other_user}","gists_url":"https://api.github.com/users/tyv/gists{/gist_id}","starred_url":"https://api.github.com/users/tyv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyv/subscriptions","organizations_url":"https://api.github.com/users/tyv/orgs","repos_url":"https://api.github.com/users/tyv/repos","events_url":"https://api.github.com/users/tyv/events{/privacy}","received_events_url":"https://api.github.com/users/tyv/received_events","type":"User","site_admin":false},"body":"input arg is string here","created_at":"2017-08-14T15:12:40Z","updated_at":"2017-08-14T15:14:08Z","html_url":"https://github.com/wix/stylable-components/pull/166#discussion_r132977127","pull_request_url":"https://api.github.com/repos/wix/stylable-components/pulls/166","_links":{"self":{"href":"https://api.github.com/repos/wix/stylable-components/pulls/comments/132977127"},"html":{"href":"https://github.com/wix/stylable-components/pull/166#discussion_r132977127"},"pull_request":{"href":"https://api.github.com/repos/wix/stylable-components/pulls/166"}}},"pull_request":{"url":"https://api.github.com/repos/wix/stylable-components/pulls/166","id":135082454,"html_url":"https://github.com/wix/stylable-components/pull/166","diff_url":"https://github.com/wix/stylable-components/pull/166.diff","patch_url":"https://github.com/wix/stylable-components/pull/166.patch","issue_url":"https://api.github.com/repos/wix/stylable-components/issues/166","number":166,"state":"open","locked":false,"title":"Added TimePicker","user":{"login":"wtfil","id":1421128,"avatar_url":"https://avatars3.githubusercontent.com/u/1421128?v=4","gravatar_id":"","url":"https://api.github.com/users/wtfil","html_url":"https://github.com/wtfil","followers_url":"https://api.github.com/users/wtfil/followers","following_url":"https://api.github.com/users/wtfil/following{/other_user}","gists_url":"https://api.github.com/users/wtfil/gists{/gist_id}","starred_url":"https://api.github.com/users/wtfil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wtfil/subscriptions","organizations_url":"https://api.github.com/users/wtfil/orgs","repos_url":"https://api.github.com/users/wtfil/repos","events_url":"https://api.github.com/users/wtfil/events{/privacy}","received_events_url":"https://api.github.com/users/wtfil/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-08-10T09:44:00Z","updated_at":"2017-08-14T15:14:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"763678e734a14845b28e3ae3e33bb1d7198b92d3","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/wix/stylable-components/pulls/166/commits","review_comments_url":"https://api.github.com/repos/wix/stylable-components/pulls/166/comments","review_comment_url":"https://api.github.com/repos/wix/stylable-components/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wix/stylable-components/issues/166/comments","statuses_url":"https://api.github.com/repos/wix/stylable-components/statuses/1c7bead7d87e999dcf98e3a0ad220b74752ba03f","head":{"label":"wix:wtfil/time-picker-single-input","ref":"wtfil/time-picker-single-input","sha":"1c7bead7d87e999dcf98e3a0ad220b74752ba03f","user":{"login":"wix","id":686511,"avatar_url":"https://avatars1.githubusercontent.com/u/686511?v=4","gravatar_id":"","url":"https://api.github.com/users/wix","html_url":"https://github.com/wix","followers_url":"https://api.github.com/users/wix/followers","following_url":"https://api.github.com/users/wix/following{/other_user}","gists_url":"https://api.github.com/users/wix/gists{/gist_id}","starred_url":"https://api.github.com/users/wix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wix/subscriptions","organizations_url":"https://api.github.com/users/wix/orgs","repos_url":"https://api.github.com/users/wix/repos","events_url":"https://api.github.com/users/wix/events{/privacy}","received_events_url":"https://api.github.com/users/wix/received_events","type":"Organization","site_admin":false},"repo":{"id":94888705,"name":"stylable-components","full_name":"wix/stylable-components","owner":{"login":"wix","id":686511,"avatar_url":"https://avatars1.githubusercontent.com/u/686511?v=4","gravatar_id":"","url":"https://api.github.com/users/wix","html_url":"https://github.com/wix","followers_url":"https://api.github.com/users/wix/followers","following_url":"https://api.github.com/users/wix/following{/other_user}","gists_url":"https://api.github.com/users/wix/gists{/gist_id}","starred_url":"https://api.github.com/users/wix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wix/subscriptions","organizations_url":"https://api.github.com/users/wix/orgs","repos_url":"https://api.github.com/users/wix/repos","events_url":"https://api.github.com/users/wix/events{/privacy}","received_events_url":"https://api.github.com/users/wix/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wix/stylable-components","description":"Fully-tested & strictly-typed component library based on React, using optional Wix styling.","fork":false,"url":"https://api.github.com/repos/wix/stylable-components","forks_url":"https://api.github.com/repos/wix/stylable-components/forks","keys_url":"https://api.github.com/repos/wix/stylable-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wix/stylable-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wix/stylable-components/teams","hooks_url":"https://api.github.com/repos/wix/stylable-components/hooks","issue_events_url":"https://api.github.com/repos/wix/stylable-components/issues/events{/number}","events_url":"https://api.github.com/repos/wix/stylable-components/events","assignees_url":"https://api.github.com/repos/wix/stylable-components/assignees{/user}","branches_url":"https://api.github.com/repos/wix/stylable-components/branches{/branch}","tags_url":"https://api.github.com/repos/wix/stylable-components/tags","blobs_url":"https://api.github.com/repos/wix/stylable-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wix/stylable-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wix/stylable-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/wix/stylable-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wix/stylable-components/statuses/{sha}","languages_url":"https://api.github.com/repos/wix/stylable-components/languages","stargazers_url":"https://api.github.com/repos/wix/stylable-components/stargazers","contributors_url":"https://api.github.com/repos/wix/stylable-components/contributors","subscribers_url":"https://api.github.com/repos/wix/stylable-components/subscribers","subscription_url":"https://api.github.com/repos/wix/stylable-components/subscription","commits_url":"https://api.github.com/repos/wix/stylable-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/wix/stylable-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/wix/stylable-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/wix/stylable-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/wix/stylable-components/contents/{+path}","compare_url":"https://api.github.com/repos/wix/stylable-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wix/stylable-components/merges","archive_url":"https://api.github.com/repos/wix/stylable-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wix/stylable-components/downloads","issues_url":"https://api.github.com/repos/wix/stylable-components/issues{/number}","pulls_url":"https://api.github.com/repos/wix/stylable-components/pulls{/number}","milestones_url":"https://api.github.com/repos/wix/stylable-components/milestones{/number}","notifications_url":"https://api.github.com/repos/wix/stylable-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wix/stylable-components/labels{/name}","releases_url":"https://api.github.com/repos/wix/stylable-components/releases{/id}","deployments_url":"https://api.github.com/repos/wix/stylable-components/deployments","created_at":"2017-06-20T12:28:08Z","updated_at":"2017-08-10T10:32:01Z","pushed_at":"2017-08-14T15:04:06Z","git_url":"git://github.com/wix/stylable-components.git","ssh_url":"git@github.com:wix/stylable-components.git","clone_url":"https://github.com/wix/stylable-components.git","svn_url":"https://github.com/wix/stylable-components","homepage":"","size":2929,"stargazers_count":10,"watchers_count":10,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":83,"forks":0,"open_issues":83,"watchers":10,"default_branch":"master"}},"base":{"label":"wix:master","ref":"master","sha":"a35c93ed2668fa9720b6e82ce126142045373b95","user":{"login":"wix","id":686511,"avatar_url":"https://avatars1.githubusercontent.com/u/686511?v=4","gravatar_id":"","url":"https://api.github.com/users/wix","html_url":"https://github.com/wix","followers_url":"https://api.github.com/users/wix/followers","following_url":"https://api.github.com/users/wix/following{/other_user}","gists_url":"https://api.github.com/users/wix/gists{/gist_id}","starred_url":"https://api.github.com/users/wix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wix/subscriptions","organizations_url":"https://api.github.com/users/wix/orgs","repos_url":"https://api.github.com/users/wix/repos","events_url":"https://api.github.com/users/wix/events{/privacy}","received_events_url":"https://api.github.com/users/wix/received_events","type":"Organization","site_admin":false},"repo":{"id":94888705,"name":"stylable-components","full_name":"wix/stylable-components","owner":{"login":"wix","id":686511,"avatar_url":"https://avatars1.githubusercontent.com/u/686511?v=4","gravatar_id":"","url":"https://api.github.com/users/wix","html_url":"https://github.com/wix","followers_url":"https://api.github.com/users/wix/followers","following_url":"https://api.github.com/users/wix/following{/other_user}","gists_url":"https://api.github.com/users/wix/gists{/gist_id}","starred_url":"https://api.github.com/users/wix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wix/subscriptions","organizations_url":"https://api.github.com/users/wix/orgs","repos_url":"https://api.github.com/users/wix/repos","events_url":"https://api.github.com/users/wix/events{/privacy}","received_events_url":"https://api.github.com/users/wix/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wix/stylable-components","description":"Fully-tested & strictly-typed component library based on React, using optional Wix styling.","fork":false,"url":"https://api.github.com/repos/wix/stylable-components","forks_url":"https://api.github.com/repos/wix/stylable-components/forks","keys_url":"https://api.github.com/repos/wix/stylable-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wix/stylable-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wix/stylable-components/teams","hooks_url":"https://api.github.com/repos/wix/stylable-components/hooks","issue_events_url":"https://api.github.com/repos/wix/stylable-components/issues/events{/number}","events_url":"https://api.github.com/repos/wix/stylable-components/events","assignees_url":"https://api.github.com/repos/wix/stylable-components/assignees{/user}","branches_url":"https://api.github.com/repos/wix/stylable-components/branches{/branch}","tags_url":"https://api.github.com/repos/wix/stylable-components/tags","blobs_url":"https://api.github.com/repos/wix/stylable-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wix/stylable-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wix/stylable-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/wix/stylable-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wix/stylable-components/statuses/{sha}","languages_url":"https://api.github.com/repos/wix/stylable-components/languages","stargazers_url":"https://api.github.com/repos/wix/stylable-components/stargazers","contributors_url":"https://api.github.com/repos/wix/stylable-components/contributors","subscribers_url":"https://api.github.com/repos/wix/stylable-components/subscribers","subscription_url":"https://api.github.com/repos/wix/stylable-components/subscription","commits_url":"https://api.github.com/repos/wix/stylable-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/wix/stylable-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/wix/stylable-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/wix/stylable-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/wix/stylable-components/contents/{+path}","compare_url":"https://api.github.com/repos/wix/stylable-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wix/stylable-components/merges","archive_url":"https://api.github.com/repos/wix/stylable-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wix/stylable-components/downloads","issues_url":"https://api.github.com/repos/wix/stylable-components/issues{/number}","pulls_url":"https://api.github.com/repos/wix/stylable-components/pulls{/number}","milestones_url":"https://api.github.com/repos/wix/stylable-components/milestones{/number}","notifications_url":"https://api.github.com/repos/wix/stylable-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wix/stylable-components/labels{/name}","releases_url":"https://api.github.com/repos/wix/stylable-components/releases{/id}","deployments_url":"https://api.github.com/repos/wix/stylable-components/deployments","created_at":"2017-06-20T12:28:08Z","updated_at":"2017-08-10T10:32:01Z","pushed_at":"2017-08-14T15:04:06Z","git_url":"git://github.com/wix/stylable-components.git","ssh_url":"git@github.com:wix/stylable-components.git","clone_url":"https://github.com/wix/stylable-components.git","svn_url":"https://github.com/wix/stylable-components","homepage":"","size":2929,"stargazers_count":10,"watchers_count":10,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":83,"forks":0,"open_issues":83,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wix/stylable-components/pulls/166"},"html":{"href":"https://github.com/wix/stylable-components/pull/166"},"issue":{"href":"https://api.github.com/repos/wix/stylable-components/issues/166"},"comments":{"href":"https://api.github.com/repos/wix/stylable-components/issues/166/comments"},"review_comments":{"href":"https://api.github.com/repos/wix/stylable-components/pulls/166/comments"},"review_comment":{"href":"https://api.github.com/repos/wix/stylable-components/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wix/stylable-components/pulls/166/commits"},"statuses":{"href":"https://api.github.com/repos/wix/stylable-components/statuses/1c7bead7d87e999dcf98e3a0ad220b74752ba03f"}}}}
{"actor":{"display_login":"tyv"}}