{"action":"created","comment":{"url":"https://api.github.com/repos/AlisProject/frontend-application/pulls/comments/201936033","pull_request_review_id":136533149,"id":201936033,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMTkzNjAzMw==","diff_hunk":"@@ -391,6 +391,10 @@ export default {\n     insertDragImage(files) {\n       if (this.targetDOM[0].classList.value.includes('area-body')) return\n       const [target] = files\n+      if (files[0].size > 4.5 * 1024 * 1024) {","path":"app/components/atoms/ArticleEditor.vue","position":4,"original_position":4,"commit_id":"caf3759141f994a907bf62dcf03f0776970988b5","original_commit_id":"caf3759141f994a907bf62dcf03f0776970988b5","user":{"login":"potato4d","id":6993514,"node_id":"MDQ6VXNlcjY5OTM1MTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/6993514?v=4","gravatar_id":"","url":"https://api.github.com/users/potato4d","html_url":"https://github.com/potato4d","followers_url":"https://api.github.com/users/potato4d/followers","following_url":"https://api.github.com/users/potato4d/following{/other_user}","gists_url":"https://api.github.com/users/potato4d/gists{/gist_id}","starred_url":"https://api.github.com/users/potato4d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/potato4d/subscriptions","organizations_url":"https://api.github.com/users/potato4d/orgs","repos_url":"https://api.github.com/users/potato4d/repos","events_url":"https://api.github.com/users/potato4d/events{/privacy}","received_events_url":"https://api.github.com/users/potato4d/received_events","type":"User","site_admin":false},"body":"1. files の 0 番目を target に格納しているので target.size で良い気がします\r\n2. 4.5 * 1024 * 1024 は `const MAX_UPLOAD = 4.5 * 1024 * 1024 // 4.5 MB` として切り出しておくと良いと思います","created_at":"2018-07-12T07:37:59Z","updated_at":"2018-07-12T07:38:02Z","html_url":"https://github.com/AlisProject/frontend-application/pull/296#discussion_r201936033","pull_request_url":"https://api.github.com/repos/AlisProject/frontend-application/pulls/296","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/AlisProject/frontend-application/pulls/comments/201936033"},"html":{"href":"https://github.com/AlisProject/frontend-application/pull/296#discussion_r201936033"},"pull_request":{"href":"https://api.github.com/repos/AlisProject/frontend-application/pulls/296"}}},"pull_request":{"url":"https://api.github.com/repos/AlisProject/frontend-application/pulls/296","id":199975642,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5OTc1NjQy","html_url":"https://github.com/AlisProject/frontend-application/pull/296","diff_url":"https://github.com/AlisProject/frontend-application/pull/296.diff","patch_url":"https://github.com/AlisProject/frontend-application/pull/296.patch","issue_url":"https://api.github.com/repos/AlisProject/frontend-application/issues/296","number":296,"state":"open","locked":false,"title":"ALIS-1095: Fix to check image size","user":{"login":"y-temp4","id":13657589,"node_id":"MDQ6VXNlcjEzNjU3NTg5","avatar_url":"https://avatars0.githubusercontent.com/u/13657589?v=4","gravatar_id":"","url":"https://api.github.com/users/y-temp4","html_url":"https://github.com/y-temp4","followers_url":"https://api.github.com/users/y-temp4/followers","following_url":"https://api.github.com/users/y-temp4/following{/other_user}","gists_url":"https://api.github.com/users/y-temp4/gists{/gist_id}","starred_url":"https://api.github.com/users/y-temp4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/y-temp4/subscriptions","organizations_url":"https://api.github.com/users/y-temp4/orgs","repos_url":"https://api.github.com/users/y-temp4/repos","events_url":"https://api.github.com/users/y-temp4/events{/privacy}","received_events_url":"https://api.github.com/users/y-temp4/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-09T02:06:01Z","updated_at":"2018-07-12T07:38:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e312f025c36a2f3063654f85976ae8a1df117c0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/AlisProject/frontend-application/pulls/296/commits","review_comments_url":"https://api.github.com/repos/AlisProject/frontend-application/pulls/296/comments","review_comment_url":"https://api.github.com/repos/AlisProject/frontend-application/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AlisProject/frontend-application/issues/296/comments","statuses_url":"https://api.github.com/repos/AlisProject/frontend-application/statuses/caf3759141f994a907bf62dcf03f0776970988b5","head":{"label":"y-temp4:fix-image-size","ref":"fix-image-size","sha":"caf3759141f994a907bf62dcf03f0776970988b5","user":{"login":"y-temp4","id":13657589,"node_id":"MDQ6VXNlcjEzNjU3NTg5","avatar_url":"https://avatars0.githubusercontent.com/u/13657589?v=4","gravatar_id":"","url":"https://api.github.com/users/y-temp4","html_url":"https://github.com/y-temp4","followers_url":"https://api.github.com/users/y-temp4/followers","following_url":"https://api.github.com/users/y-temp4/following{/other_user}","gists_url":"https://api.github.com/users/y-temp4/gists{/gist_id}","starred_url":"https://api.github.com/users/y-temp4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/y-temp4/subscriptions","organizations_url":"https://api.github.com/users/y-temp4/orgs","repos_url":"https://api.github.com/users/y-temp4/repos","events_url":"https://api.github.com/users/y-temp4/events{/privacy}","received_events_url":"https://api.github.com/users/y-temp4/received_events","type":"User","site_admin":false},"repo":{"id":124645842,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQ2NDU4NDI=","name":"frontend-application","full_name":"y-temp4/frontend-application","owner":{"login":"y-temp4","id":13657589,"node_id":"MDQ6VXNlcjEzNjU3NTg5","avatar_url":"https://avatars0.githubusercontent.com/u/13657589?v=4","gravatar_id":"","url":"https://api.github.com/users/y-temp4","html_url":"https://github.com/y-temp4","followers_url":"https://api.github.com/users/y-temp4/followers","following_url":"https://api.github.com/users/y-temp4/following{/other_user}","gists_url":"https://api.github.com/users/y-temp4/gists{/gist_id}","starred_url":"https://api.github.com/users/y-temp4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/y-temp4/subscriptions","organizations_url":"https://api.github.com/users/y-temp4/orgs","repos_url":"https://api.github.com/users/y-temp4/repos","events_url":"https://api.github.com/users/y-temp4/events{/privacy}","received_events_url":"https://api.github.com/users/y-temp4/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/y-temp4/frontend-application","description":"💮 ALIS Media - Frontend Application","fork":true,"url":"https://api.github.com/repos/y-temp4/frontend-application","forks_url":"https://api.github.com/repos/y-temp4/frontend-application/forks","keys_url":"https://api.github.com/repos/y-temp4/frontend-application/keys{/key_id}","collaborators_url":"https://api.github.com/repos/y-temp4/frontend-application/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/y-temp4/frontend-application/teams","hooks_url":"https://api.github.com/repos/y-temp4/frontend-application/hooks","issue_events_url":"https://api.github.com/repos/y-temp4/frontend-application/issues/events{/number}","events_url":"https://api.github.com/repos/y-temp4/frontend-application/events","assignees_url":"https://api.github.com/repos/y-temp4/frontend-application/assignees{/user}","branches_url":"https://api.github.com/repos/y-temp4/frontend-application/branches{/branch}","tags_url":"https://api.github.com/repos/y-temp4/frontend-application/tags","blobs_url":"https://api.github.com/repos/y-temp4/frontend-application/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/y-temp4/frontend-application/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/y-temp4/frontend-application/git/refs{/sha}","trees_url":"https://api.github.com/repos/y-temp4/frontend-application/git/trees{/sha}","statuses_url":"https://api.github.com/repos/y-temp4/frontend-application/statuses/{sha}","languages_url":"https://api.github.com/repos/y-temp4/frontend-application/languages","stargazers_url":"https://api.github.com/repos/y-temp4/frontend-application/stargazers","contributors_url":"https://api.github.com/repos/y-temp4/frontend-application/contributors","subscribers_url":"https://api.github.com/repos/y-temp4/frontend-application/subscribers","subscription_url":"https://api.github.com/repos/y-temp4/frontend-application/subscription","commits_url":"https://api.github.com/repos/y-temp4/frontend-application/commits{/sha}","git_commits_url":"https://api.github.com/repos/y-temp4/frontend-application/git/commits{/sha}","comments_url":"https://api.github.com/repos/y-temp4/frontend-application/comments{/number}","issue_comment_url":"https://api.github.com/repos/y-temp4/frontend-application/issues/comments{/number}","contents_url":"https://api.github.com/repos/y-temp4/frontend-application/contents/{+path}","compare_url":"https://api.github.com/repos/y-temp4/frontend-application/compare/{base}...{head}","merges_url":"https://api.github.com/repos/y-temp4/frontend-application/merges","archive_url":"https://api.github.com/repos/y-temp4/frontend-application/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/y-temp4/frontend-application/downloads","issues_url":"https://api.github.com/repos/y-temp4/frontend-application/issues{/number}","pulls_url":"https://api.github.com/repos/y-temp4/frontend-application/pulls{/number}","milestones_url":"https://api.github.com/repos/y-temp4/frontend-application/milestones{/number}","notifications_url":"https://api.github.com/repos/y-temp4/frontend-application/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/y-temp4/frontend-application/labels{/name}","releases_url":"https://api.github.com/repos/y-temp4/frontend-application/releases{/id}","deployments_url":"https://api.github.com/repos/y-temp4/frontend-application/deployments","created_at":"2018-03-10T10:37:11Z","updated_at":"2018-05-11T13:08:42Z","pushed_at":"2018-07-12T06:37:41Z","git_url":"git://github.com/y-temp4/frontend-application.git","ssh_url":"git@github.com:y-temp4/frontend-application.git","clone_url":"https://github.com/y-temp4/frontend-application.git","svn_url":"https://github.com/y-temp4/frontend-application","homepage":"","size":3923,"stargazers_count":0,"watchers_count":0,"language":"Vue","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":"AlisProject:develop","ref":"develop","sha":"145f1318098520e33efee08a6cb7fbeebd00aa02","user":{"login":"AlisProject","id":29245117,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MjQ1MTE3","avatar_url":"https://avatars2.githubusercontent.com/u/29245117?v=4","gravatar_id":"","url":"https://api.github.com/users/AlisProject","html_url":"https://github.com/AlisProject","followers_url":"https://api.github.com/users/AlisProject/followers","following_url":"https://api.github.com/users/AlisProject/following{/other_user}","gists_url":"https://api.github.com/users/AlisProject/gists{/gist_id}","starred_url":"https://api.github.com/users/AlisProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlisProject/subscriptions","organizations_url":"https://api.github.com/users/AlisProject/orgs","repos_url":"https://api.github.com/users/AlisProject/repos","events_url":"https://api.github.com/users/AlisProject/events{/privacy}","received_events_url":"https://api.github.com/users/AlisProject/received_events","type":"Organization","site_admin":false},"repo":{"id":117187953,"node_id":"MDEwOlJlcG9zaXRvcnkxMTcxODc5NTM=","name":"frontend-application","full_name":"AlisProject/frontend-application","owner":{"login":"AlisProject","id":29245117,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5MjQ1MTE3","avatar_url":"https://avatars2.githubusercontent.com/u/29245117?v=4","gravatar_id":"","url":"https://api.github.com/users/AlisProject","html_url":"https://github.com/AlisProject","followers_url":"https://api.github.com/users/AlisProject/followers","following_url":"https://api.github.com/users/AlisProject/following{/other_user}","gists_url":"https://api.github.com/users/AlisProject/gists{/gist_id}","starred_url":"https://api.github.com/users/AlisProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlisProject/subscriptions","organizations_url":"https://api.github.com/users/AlisProject/orgs","repos_url":"https://api.github.com/users/AlisProject/repos","events_url":"https://api.github.com/users/AlisProject/events{/privacy}","received_events_url":"https://api.github.com/users/AlisProject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AlisProject/frontend-application","description":"💮 ALIS Media - Frontend Application","fork":false,"url":"https://api.github.com/repos/AlisProject/frontend-application","forks_url":"https://api.github.com/repos/AlisProject/frontend-application/forks","keys_url":"https://api.github.com/repos/AlisProject/frontend-application/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlisProject/frontend-application/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlisProject/frontend-application/teams","hooks_url":"https://api.github.com/repos/AlisProject/frontend-application/hooks","issue_events_url":"https://api.github.com/repos/AlisProject/frontend-application/issues/events{/number}","events_url":"https://api.github.com/repos/AlisProject/frontend-application/events","assignees_url":"https://api.github.com/repos/AlisProject/frontend-application/assignees{/user}","branches_url":"https://api.github.com/repos/AlisProject/frontend-application/branches{/branch}","tags_url":"https://api.github.com/repos/AlisProject/frontend-application/tags","blobs_url":"https://api.github.com/repos/AlisProject/frontend-application/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlisProject/frontend-application/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlisProject/frontend-application/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlisProject/frontend-application/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlisProject/frontend-application/statuses/{sha}","languages_url":"https://api.github.com/repos/AlisProject/frontend-application/languages","stargazers_url":"https://api.github.com/repos/AlisProject/frontend-application/stargazers","contributors_url":"https://api.github.com/repos/AlisProject/frontend-application/contributors","subscribers_url":"https://api.github.com/repos/AlisProject/frontend-application/subscribers","subscription_url":"https://api.github.com/repos/AlisProject/frontend-application/subscription","commits_url":"https://api.github.com/repos/AlisProject/frontend-application/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlisProject/frontend-application/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlisProject/frontend-application/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlisProject/frontend-application/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlisProject/frontend-application/contents/{+path}","compare_url":"https://api.github.com/repos/AlisProject/frontend-application/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlisProject/frontend-application/merges","archive_url":"https://api.github.com/repos/AlisProject/frontend-application/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlisProject/frontend-application/downloads","issues_url":"https://api.github.com/repos/AlisProject/frontend-application/issues{/number}","pulls_url":"https://api.github.com/repos/AlisProject/frontend-application/pulls{/number}","milestones_url":"https://api.github.com/repos/AlisProject/frontend-application/milestones{/number}","notifications_url":"https://api.github.com/repos/AlisProject/frontend-application/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlisProject/frontend-application/labels{/name}","releases_url":"https://api.github.com/repos/AlisProject/frontend-application/releases{/id}","deployments_url":"https://api.github.com/repos/AlisProject/frontend-application/deployments","created_at":"2018-01-12T03:33:55Z","updated_at":"2018-07-11T06:20:35Z","pushed_at":"2018-07-12T06:37:42Z","git_url":"git://github.com/AlisProject/frontend-application.git","ssh_url":"git@github.com:AlisProject/frontend-application.git","clone_url":"https://github.com/AlisProject/frontend-application.git","svn_url":"https://github.com/AlisProject/frontend-application","homepage":"https://alis.to","size":3837,"stargazers_count":45,"watchers_count":45,"language":"Vue","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":9,"license":null,"forks":8,"open_issues":9,"watchers":45,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/AlisProject/frontend-application/pulls/296"},"html":{"href":"https://github.com/AlisProject/frontend-application/pull/296"},"issue":{"href":"https://api.github.com/repos/AlisProject/frontend-application/issues/296"},"comments":{"href":"https://api.github.com/repos/AlisProject/frontend-application/issues/296/comments"},"review_comments":{"href":"https://api.github.com/repos/AlisProject/frontend-application/pulls/296/comments"},"review_comment":{"href":"https://api.github.com/repos/AlisProject/frontend-application/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AlisProject/frontend-application/pulls/296/commits"},"statuses":{"href":"https://api.github.com/repos/AlisProject/frontend-application/statuses/caf3759141f994a907bf62dcf03f0776970988b5"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"potato4d"}}