{"action":"opened","number":1981,"pull_request":{"url":"https://api.github.com/repos/github/hub/pulls/1981","id":240644878,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwNjQ0ODc4","html_url":"https://github.com/github/hub/pull/1981","diff_url":"https://github.com/github/hub/pull/1981.diff","patch_url":"https://github.com/github/hub/pull/1981.patch","issue_url":"https://api.github.com/repos/github/hub/issues/1981","number":1981,"state":"open","locked":false,"title":"Change Color to use uint8 RGB components","user":{"login":"apjanke","id":2618447,"node_id":"MDQ6VXNlcjI2MTg0NDc=","avatar_url":"https://avatars2.githubusercontent.com/u/2618447?v=4","gravatar_id":"","url":"https://api.github.com/users/apjanke","html_url":"https://github.com/apjanke","followers_url":"https://api.github.com/users/apjanke/followers","following_url":"https://api.github.com/users/apjanke/following{/other_user}","gists_url":"https://api.github.com/users/apjanke/gists{/gist_id}","starred_url":"https://api.github.com/users/apjanke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apjanke/subscriptions","organizations_url":"https://api.github.com/users/apjanke/orgs","repos_url":"https://api.github.com/users/apjanke/repos","events_url":"https://api.github.com/users/apjanke/events{/privacy}","received_events_url":"https://api.github.com/users/apjanke/received_events","type":"User","site_admin":false},"body":"Is there a particular reason that `Color` is using `int64` values for its R/G/B components instead of `uint8`? Since we're dealing with 24-bit color, valid R/G/B values are alway going to be 0-255 and fit in a `uint8`.\r\n\r\nYou don't need to worry about saving memory here, but a `uint8` seems like a more natural fit of the data structure to the model. Plus it would eliminate some possible out-of-range errors, and remove the need for explicit `float64` casts in some cases.","created_at":"2018-12-22T17:12:08Z","updated_at":"2018-12-22T17:12:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/github/hub/pulls/1981/commits","review_comments_url":"https://api.github.com/repos/github/hub/pulls/1981/comments","review_comment_url":"https://api.github.com/repos/github/hub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/github/hub/issues/1981/comments","statuses_url":"https://api.github.com/repos/github/hub/statuses/0fad25d7c7bd1db444a9a1efef036709ac68b4e4","head":{"label":"apjanke:uint8-rgb-components","ref":"uint8-rgb-components","sha":"0fad25d7c7bd1db444a9a1efef036709ac68b4e4","user":{"login":"apjanke","id":2618447,"node_id":"MDQ6VXNlcjI2MTg0NDc=","avatar_url":"https://avatars2.githubusercontent.com/u/2618447?v=4","gravatar_id":"","url":"https://api.github.com/users/apjanke","html_url":"https://github.com/apjanke","followers_url":"https://api.github.com/users/apjanke/followers","following_url":"https://api.github.com/users/apjanke/following{/other_user}","gists_url":"https://api.github.com/users/apjanke/gists{/gist_id}","starred_url":"https://api.github.com/users/apjanke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apjanke/subscriptions","organizations_url":"https://api.github.com/users/apjanke/orgs","repos_url":"https://api.github.com/users/apjanke/repos","events_url":"https://api.github.com/users/apjanke/events{/privacy}","received_events_url":"https://api.github.com/users/apjanke/received_events","type":"User","site_admin":false},"repo":{"id":162515552,"node_id":"MDEwOlJlcG9zaXRvcnkxNjI1MTU1NTI=","name":"hub","full_name":"apjanke/hub","private":false,"owner":{"login":"apjanke","id":2618447,"node_id":"MDQ6VXNlcjI2MTg0NDc=","avatar_url":"https://avatars2.githubusercontent.com/u/2618447?v=4","gravatar_id":"","url":"https://api.github.com/users/apjanke","html_url":"https://github.com/apjanke","followers_url":"https://api.github.com/users/apjanke/followers","following_url":"https://api.github.com/users/apjanke/following{/other_user}","gists_url":"https://api.github.com/users/apjanke/gists{/gist_id}","starred_url":"https://api.github.com/users/apjanke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apjanke/subscriptions","organizations_url":"https://api.github.com/users/apjanke/orgs","repos_url":"https://api.github.com/users/apjanke/repos","events_url":"https://api.github.com/users/apjanke/events{/privacy}","received_events_url":"https://api.github.com/users/apjanke/received_events","type":"User","site_admin":false},"html_url":"https://github.com/apjanke/hub","description":"hub helps you win at git.","fork":true,"url":"https://api.github.com/repos/apjanke/hub","forks_url":"https://api.github.com/repos/apjanke/hub/forks","keys_url":"https://api.github.com/repos/apjanke/hub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apjanke/hub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apjanke/hub/teams","hooks_url":"https://api.github.com/repos/apjanke/hub/hooks","issue_events_url":"https://api.github.com/repos/apjanke/hub/issues/events{/number}","events_url":"https://api.github.com/repos/apjanke/hub/events","assignees_url":"https://api.github.com/repos/apjanke/hub/assignees{/user}","branches_url":"https://api.github.com/repos/apjanke/hub/branches{/branch}","tags_url":"https://api.github.com/repos/apjanke/hub/tags","blobs_url":"https://api.github.com/repos/apjanke/hub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apjanke/hub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apjanke/hub/git/refs{/sha}","trees_url":"https://api.github.com/repos/apjanke/hub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apjanke/hub/statuses/{sha}","languages_url":"https://api.github.com/repos/apjanke/hub/languages","stargazers_url":"https://api.github.com/repos/apjanke/hub/stargazers","contributors_url":"https://api.github.com/repos/apjanke/hub/contributors","subscribers_url":"https://api.github.com/repos/apjanke/hub/subscribers","subscription_url":"https://api.github.com/repos/apjanke/hub/subscription","commits_url":"https://api.github.com/repos/apjanke/hub/commits{/sha}","git_commits_url":"https://api.github.com/repos/apjanke/hub/git/commits{/sha}","comments_url":"https://api.github.com/repos/apjanke/hub/comments{/number}","issue_comment_url":"https://api.github.com/repos/apjanke/hub/issues/comments{/number}","contents_url":"https://api.github.com/repos/apjanke/hub/contents/{+path}","compare_url":"https://api.github.com/repos/apjanke/hub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apjanke/hub/merges","archive_url":"https://api.github.com/repos/apjanke/hub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apjanke/hub/downloads","issues_url":"https://api.github.com/repos/apjanke/hub/issues{/number}","pulls_url":"https://api.github.com/repos/apjanke/hub/pulls{/number}","milestones_url":"https://api.github.com/repos/apjanke/hub/milestones{/number}","notifications_url":"https://api.github.com/repos/apjanke/hub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apjanke/hub/labels{/name}","releases_url":"https://api.github.com/repos/apjanke/hub/releases{/id}","deployments_url":"https://api.github.com/repos/apjanke/hub/deployments","created_at":"2018-12-20T02:27:10Z","updated_at":"2018-12-20T23:13:03Z","pushed_at":"2018-12-22T17:10:06Z","git_url":"git://github.com/apjanke/hub.git","ssh_url":"git@github.com:apjanke/hub.git","clone_url":"https://github.com/apjanke/hub.git","svn_url":"https://github.com/apjanke/hub","homepage":"https://hub.github.com/","size":5163,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"github:master","ref":"master","sha":"cc38879bd6f9ad38c947f84e0ffd1ae82ed4ee7d","user":{"login":"github","id":9919,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk5MTk=","avatar_url":"https://avatars1.githubusercontent.com/u/9919?v=4","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"repo":{"id":401025,"node_id":"MDEwOlJlcG9zaXRvcnk0MDEwMjU=","name":"hub","full_name":"github/hub","private":false,"owner":{"login":"github","id":9919,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk5MTk=","avatar_url":"https://avatars1.githubusercontent.com/u/9919?v=4","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/github/hub","description":"hub helps you win at git.","fork":false,"url":"https://api.github.com/repos/github/hub","forks_url":"https://api.github.com/repos/github/hub/forks","keys_url":"https://api.github.com/repos/github/hub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/github/hub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/github/hub/teams","hooks_url":"https://api.github.com/repos/github/hub/hooks","issue_events_url":"https://api.github.com/repos/github/hub/issues/events{/number}","events_url":"https://api.github.com/repos/github/hub/events","assignees_url":"https://api.github.com/repos/github/hub/assignees{/user}","branches_url":"https://api.github.com/repos/github/hub/branches{/branch}","tags_url":"https://api.github.com/repos/github/hub/tags","blobs_url":"https://api.github.com/repos/github/hub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/github/hub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/github/hub/git/refs{/sha}","trees_url":"https://api.github.com/repos/github/hub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/github/hub/statuses/{sha}","languages_url":"https://api.github.com/repos/github/hub/languages","stargazers_url":"https://api.github.com/repos/github/hub/stargazers","contributors_url":"https://api.github.com/repos/github/hub/contributors","subscribers_url":"https://api.github.com/repos/github/hub/subscribers","subscription_url":"https://api.github.com/repos/github/hub/subscription","commits_url":"https://api.github.com/repos/github/hub/commits{/sha}","git_commits_url":"https://api.github.com/repos/github/hub/git/commits{/sha}","comments_url":"https://api.github.com/repos/github/hub/comments{/number}","issue_comment_url":"https://api.github.com/repos/github/hub/issues/comments{/number}","contents_url":"https://api.github.com/repos/github/hub/contents/{+path}","compare_url":"https://api.github.com/repos/github/hub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/github/hub/merges","archive_url":"https://api.github.com/repos/github/hub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/github/hub/downloads","issues_url":"https://api.github.com/repos/github/hub/issues{/number}","pulls_url":"https://api.github.com/repos/github/hub/pulls{/number}","milestones_url":"https://api.github.com/repos/github/hub/milestones{/number}","notifications_url":"https://api.github.com/repos/github/hub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/github/hub/labels{/name}","releases_url":"https://api.github.com/repos/github/hub/releases{/id}","deployments_url":"https://api.github.com/repos/github/hub/deployments","created_at":"2009-12-05T22:15:25Z","updated_at":"2018-12-22T16:46:00Z","pushed_at":"2018-12-22T16:12:15Z","git_url":"git://github.com/github/hub.git","ssh_url":"git@github.com:github/hub.git","clone_url":"https://github.com/github/hub.git","svn_url":"https://github.com/github/hub","homepage":"https://hub.github.com/","size":5140,"stargazers_count":14275,"watchers_count":14275,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":1445,"mirror_url":null,"archived":false,"open_issues_count":238,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1445,"open_issues":238,"watchers":14275,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/github/hub/pulls/1981"},"html":{"href":"https://github.com/github/hub/pull/1981"},"issue":{"href":"https://api.github.com/repos/github/hub/issues/1981"},"comments":{"href":"https://api.github.com/repos/github/hub/issues/1981/comments"},"review_comments":{"href":"https://api.github.com/repos/github/hub/pulls/1981/comments"},"review_comment":{"href":"https://api.github.com/repos/github/hub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/github/hub/pulls/1981/commits"},"statuses":{"href":"https://api.github.com/repos/github/hub/statuses/0fad25d7c7bd1db444a9a1efef036709ac68b4e4"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":9,"deletions":9,"changed_files":1}}
{"actor":{"display_login":"apjanke"}}