{"action":"created","comment":{"url":"https://api.github.com/repos/dawnlabs/carbon/pulls/comments/195633039","pull_request_review_id":129041272,"id":195633039,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NTYzMzAzOQ==","diff_hunk":"@@ -0,0 +1,59 @@\n+import React from 'react'\n+import { fileToDataURL } from '../lib/util'\n+\n+export default class extends React.Component {\n+  constructor(props) {\n+    super(props)\n+    this.selectImage = this.selectImage.bind(this)\n+  }\n+\n+  selectImage(e) {\n+    const file = e.target ? e.target.files[0] : e\n+\n+    return fileToDataURL(file).then(dataURL =>\n+      this.setState(() => {","path":"components/CustomWatermarkPicker.js","position":14,"original_position":14,"commit_id":"a681e73ad6463a8418ed95ef53c325afe9c60ed2","original_commit_id":"a681e73ad6463a8418ed95ef53c325afe9c60ed2","user":{"login":"mfix22","id":8397708,"node_id":"MDQ6VXNlcjgzOTc3MDg=","avatar_url":"https://avatars0.githubusercontent.com/u/8397708?v=4","gravatar_id":"","url":"https://api.github.com/users/mfix22","html_url":"https://github.com/mfix22","followers_url":"https://api.github.com/users/mfix22/followers","following_url":"https://api.github.com/users/mfix22/following{/other_user}","gists_url":"https://api.github.com/users/mfix22/gists{/gist_id}","starred_url":"https://api.github.com/users/mfix22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfix22/subscriptions","organizations_url":"https://api.github.com/users/mfix22/orgs","repos_url":"https://api.github.com/users/mfix22/repos","events_url":"https://api.github.com/users/mfix22/events{/privacy}","received_events_url":"https://api.github.com/users/mfix22/received_events","type":"User","site_admin":false},"body":"Why are you calling `setState` here? You don't need to if you don't have any state. ","created_at":"2018-06-15T04:54:39Z","updated_at":"2018-06-15T04:56:28Z","html_url":"https://github.com/dawnlabs/carbon/pull/397#discussion_r195633039","pull_request_url":"https://api.github.com/repos/dawnlabs/carbon/pulls/397","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/dawnlabs/carbon/pulls/comments/195633039"},"html":{"href":"https://github.com/dawnlabs/carbon/pull/397#discussion_r195633039"},"pull_request":{"href":"https://api.github.com/repos/dawnlabs/carbon/pulls/397"}}},"pull_request":{"url":"https://api.github.com/repos/dawnlabs/carbon/pulls/397","id":195060019,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1MDYwMDE5","html_url":"https://github.com/dawnlabs/carbon/pull/397","diff_url":"https://github.com/dawnlabs/carbon/pull/397.diff","patch_url":"https://github.com/dawnlabs/carbon/pull/397.patch","issue_url":"https://api.github.com/repos/dawnlabs/carbon/issues/397","number":397,"state":"open","locked":false,"title":"Added the ability to add a custom watermark","user":{"login":"kaicianflone","id":30943151,"node_id":"MDQ6VXNlcjMwOTQzMTUx","avatar_url":"https://avatars2.githubusercontent.com/u/30943151?v=4","gravatar_id":"","url":"https://api.github.com/users/kaicianflone","html_url":"https://github.com/kaicianflone","followers_url":"https://api.github.com/users/kaicianflone/followers","following_url":"https://api.github.com/users/kaicianflone/following{/other_user}","gists_url":"https://api.github.com/users/kaicianflone/gists{/gist_id}","starred_url":"https://api.github.com/users/kaicianflone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaicianflone/subscriptions","organizations_url":"https://api.github.com/users/kaicianflone/orgs","repos_url":"https://api.github.com/users/kaicianflone/repos","events_url":"https://api.github.com/users/kaicianflone/events{/privacy}","received_events_url":"https://api.github.com/users/kaicianflone/received_events","type":"User","site_admin":false},"body":"Added the ability to upload a custom watermark from issue #395 \r\n\r\nCurrently only square watermarks will work and I have them scaled down to 75px * 75px.\r\n\r\nCurrently your watermark will also save as the watermark setting until you press reset default settings too 👍 \r\n","created_at":"2018-06-15T01:51:10Z","updated_at":"2018-06-15T04:56:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"52a6ac36cda070be16f198c6d2a59bb4fa35a107","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dawnlabs/carbon/pulls/397/commits","review_comments_url":"https://api.github.com/repos/dawnlabs/carbon/pulls/397/comments","review_comment_url":"https://api.github.com/repos/dawnlabs/carbon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dawnlabs/carbon/issues/397/comments","statuses_url":"https://api.github.com/repos/dawnlabs/carbon/statuses/a681e73ad6463a8418ed95ef53c325afe9c60ed2","head":{"label":"kaicianflone:master","ref":"master","sha":"a681e73ad6463a8418ed95ef53c325afe9c60ed2","user":{"login":"kaicianflone","id":30943151,"node_id":"MDQ6VXNlcjMwOTQzMTUx","avatar_url":"https://avatars2.githubusercontent.com/u/30943151?v=4","gravatar_id":"","url":"https://api.github.com/users/kaicianflone","html_url":"https://github.com/kaicianflone","followers_url":"https://api.github.com/users/kaicianflone/followers","following_url":"https://api.github.com/users/kaicianflone/following{/other_user}","gists_url":"https://api.github.com/users/kaicianflone/gists{/gist_id}","starred_url":"https://api.github.com/users/kaicianflone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaicianflone/subscriptions","organizations_url":"https://api.github.com/users/kaicianflone/orgs","repos_url":"https://api.github.com/users/kaicianflone/repos","events_url":"https://api.github.com/users/kaicianflone/events{/privacy}","received_events_url":"https://api.github.com/users/kaicianflone/received_events","type":"User","site_admin":false},"repo":{"id":137386439,"node_id":"MDEwOlJlcG9zaXRvcnkxMzczODY0Mzk=","name":"carbon","full_name":"kaicianflone/carbon","owner":{"login":"kaicianflone","id":30943151,"node_id":"MDQ6VXNlcjMwOTQzMTUx","avatar_url":"https://avatars2.githubusercontent.com/u/30943151?v=4","gravatar_id":"","url":"https://api.github.com/users/kaicianflone","html_url":"https://github.com/kaicianflone","followers_url":"https://api.github.com/users/kaicianflone/followers","following_url":"https://api.github.com/users/kaicianflone/following{/other_user}","gists_url":"https://api.github.com/users/kaicianflone/gists{/gist_id}","starred_url":"https://api.github.com/users/kaicianflone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaicianflone/subscriptions","organizations_url":"https://api.github.com/users/kaicianflone/orgs","repos_url":"https://api.github.com/users/kaicianflone/repos","events_url":"https://api.github.com/users/kaicianflone/events{/privacy}","received_events_url":"https://api.github.com/users/kaicianflone/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kaicianflone/carbon","description":"🎨 Create and share beautiful images of your source code","fork":true,"url":"https://api.github.com/repos/kaicianflone/carbon","forks_url":"https://api.github.com/repos/kaicianflone/carbon/forks","keys_url":"https://api.github.com/repos/kaicianflone/carbon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaicianflone/carbon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaicianflone/carbon/teams","hooks_url":"https://api.github.com/repos/kaicianflone/carbon/hooks","issue_events_url":"https://api.github.com/repos/kaicianflone/carbon/issues/events{/number}","events_url":"https://api.github.com/repos/kaicianflone/carbon/events","assignees_url":"https://api.github.com/repos/kaicianflone/carbon/assignees{/user}","branches_url":"https://api.github.com/repos/kaicianflone/carbon/branches{/branch}","tags_url":"https://api.github.com/repos/kaicianflone/carbon/tags","blobs_url":"https://api.github.com/repos/kaicianflone/carbon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaicianflone/carbon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaicianflone/carbon/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaicianflone/carbon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaicianflone/carbon/statuses/{sha}","languages_url":"https://api.github.com/repos/kaicianflone/carbon/languages","stargazers_url":"https://api.github.com/repos/kaicianflone/carbon/stargazers","contributors_url":"https://api.github.com/repos/kaicianflone/carbon/contributors","subscribers_url":"https://api.github.com/repos/kaicianflone/carbon/subscribers","subscription_url":"https://api.github.com/repos/kaicianflone/carbon/subscription","commits_url":"https://api.github.com/repos/kaicianflone/carbon/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaicianflone/carbon/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaicianflone/carbon/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaicianflone/carbon/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaicianflone/carbon/contents/{+path}","compare_url":"https://api.github.com/repos/kaicianflone/carbon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaicianflone/carbon/merges","archive_url":"https://api.github.com/repos/kaicianflone/carbon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaicianflone/carbon/downloads","issues_url":"https://api.github.com/repos/kaicianflone/carbon/issues{/number}","pulls_url":"https://api.github.com/repos/kaicianflone/carbon/pulls{/number}","milestones_url":"https://api.github.com/repos/kaicianflone/carbon/milestones{/number}","notifications_url":"https://api.github.com/repos/kaicianflone/carbon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaicianflone/carbon/labels{/name}","releases_url":"https://api.github.com/repos/kaicianflone/carbon/releases{/id}","deployments_url":"https://api.github.com/repos/kaicianflone/carbon/deployments","created_at":"2018-06-14T17:03:47Z","updated_at":"2018-06-15T01:31:32Z","pushed_at":"2018-06-15T01:31:30Z","git_url":"git://github.com/kaicianflone/carbon.git","ssh_url":"git@github.com:kaicianflone/carbon.git","clone_url":"https://github.com/kaicianflone/carbon.git","svn_url":"https://github.com/kaicianflone/carbon","homepage":"https://dawnlabs.io/carbon","size":1336,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"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":"dawnlabs:master","ref":"master","sha":"3351623e86815baf0e4a0078ce65c4023b53f63e","user":{"login":"dawnlabs","id":25232884,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MjMyODg0","avatar_url":"https://avatars2.githubusercontent.com/u/25232884?v=4","gravatar_id":"","url":"https://api.github.com/users/dawnlabs","html_url":"https://github.com/dawnlabs","followers_url":"https://api.github.com/users/dawnlabs/followers","following_url":"https://api.github.com/users/dawnlabs/following{/other_user}","gists_url":"https://api.github.com/users/dawnlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/dawnlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dawnlabs/subscriptions","organizations_url":"https://api.github.com/users/dawnlabs/orgs","repos_url":"https://api.github.com/users/dawnlabs/repos","events_url":"https://api.github.com/users/dawnlabs/events{/privacy}","received_events_url":"https://api.github.com/users/dawnlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":94498635,"node_id":"MDEwOlJlcG9zaXRvcnk5NDQ5ODYzNQ==","name":"carbon","full_name":"dawnlabs/carbon","owner":{"login":"dawnlabs","id":25232884,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MjMyODg0","avatar_url":"https://avatars2.githubusercontent.com/u/25232884?v=4","gravatar_id":"","url":"https://api.github.com/users/dawnlabs","html_url":"https://github.com/dawnlabs","followers_url":"https://api.github.com/users/dawnlabs/followers","following_url":"https://api.github.com/users/dawnlabs/following{/other_user}","gists_url":"https://api.github.com/users/dawnlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/dawnlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dawnlabs/subscriptions","organizations_url":"https://api.github.com/users/dawnlabs/orgs","repos_url":"https://api.github.com/users/dawnlabs/repos","events_url":"https://api.github.com/users/dawnlabs/events{/privacy}","received_events_url":"https://api.github.com/users/dawnlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dawnlabs/carbon","description":"🎨 Create and share beautiful images of your source code","fork":false,"url":"https://api.github.com/repos/dawnlabs/carbon","forks_url":"https://api.github.com/repos/dawnlabs/carbon/forks","keys_url":"https://api.github.com/repos/dawnlabs/carbon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dawnlabs/carbon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dawnlabs/carbon/teams","hooks_url":"https://api.github.com/repos/dawnlabs/carbon/hooks","issue_events_url":"https://api.github.com/repos/dawnlabs/carbon/issues/events{/number}","events_url":"https://api.github.com/repos/dawnlabs/carbon/events","assignees_url":"https://api.github.com/repos/dawnlabs/carbon/assignees{/user}","branches_url":"https://api.github.com/repos/dawnlabs/carbon/branches{/branch}","tags_url":"https://api.github.com/repos/dawnlabs/carbon/tags","blobs_url":"https://api.github.com/repos/dawnlabs/carbon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dawnlabs/carbon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dawnlabs/carbon/git/refs{/sha}","trees_url":"https://api.github.com/repos/dawnlabs/carbon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dawnlabs/carbon/statuses/{sha}","languages_url":"https://api.github.com/repos/dawnlabs/carbon/languages","stargazers_url":"https://api.github.com/repos/dawnlabs/carbon/stargazers","contributors_url":"https://api.github.com/repos/dawnlabs/carbon/contributors","subscribers_url":"https://api.github.com/repos/dawnlabs/carbon/subscribers","subscription_url":"https://api.github.com/repos/dawnlabs/carbon/subscription","commits_url":"https://api.github.com/repos/dawnlabs/carbon/commits{/sha}","git_commits_url":"https://api.github.com/repos/dawnlabs/carbon/git/commits{/sha}","comments_url":"https://api.github.com/repos/dawnlabs/carbon/comments{/number}","issue_comment_url":"https://api.github.com/repos/dawnlabs/carbon/issues/comments{/number}","contents_url":"https://api.github.com/repos/dawnlabs/carbon/contents/{+path}","compare_url":"https://api.github.com/repos/dawnlabs/carbon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dawnlabs/carbon/merges","archive_url":"https://api.github.com/repos/dawnlabs/carbon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dawnlabs/carbon/downloads","issues_url":"https://api.github.com/repos/dawnlabs/carbon/issues{/number}","pulls_url":"https://api.github.com/repos/dawnlabs/carbon/pulls{/number}","milestones_url":"https://api.github.com/repos/dawnlabs/carbon/milestones{/number}","notifications_url":"https://api.github.com/repos/dawnlabs/carbon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dawnlabs/carbon/labels{/name}","releases_url":"https://api.github.com/repos/dawnlabs/carbon/releases{/id}","deployments_url":"https://api.github.com/repos/dawnlabs/carbon/deployments","created_at":"2017-06-16T02:50:28Z","updated_at":"2018-06-15T02:00:11Z","pushed_at":"2018-06-15T01:51:11Z","git_url":"git://github.com/dawnlabs/carbon.git","ssh_url":"git@github.com:dawnlabs/carbon.git","clone_url":"https://github.com/dawnlabs/carbon.git","svn_url":"https://github.com/dawnlabs/carbon","homepage":"https://dawnlabs.io/carbon","size":1337,"stargazers_count":11441,"watchers_count":11441,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":498,"mirror_url":null,"archived":false,"open_issues_count":27,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":498,"open_issues":27,"watchers":11441,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dawnlabs/carbon/pulls/397"},"html":{"href":"https://github.com/dawnlabs/carbon/pull/397"},"issue":{"href":"https://api.github.com/repos/dawnlabs/carbon/issues/397"},"comments":{"href":"https://api.github.com/repos/dawnlabs/carbon/issues/397/comments"},"review_comments":{"href":"https://api.github.com/repos/dawnlabs/carbon/pulls/397/comments"},"review_comment":{"href":"https://api.github.com/repos/dawnlabs/carbon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dawnlabs/carbon/pulls/397/commits"},"statuses":{"href":"https://api.github.com/repos/dawnlabs/carbon/statuses/a681e73ad6463a8418ed95ef53c325afe9c60ed2"}},"author_association":"NONE"}}
{"actor":{"display_login":"mfix22"}}