{"action":"created","comment":{"url":"https://api.github.com/repos/msoufiane/snt-frontend/pulls/comments/218143483","pull_request_review_id":156017320,"id":218143483,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxODE0MzQ4Mw==","diff_hunk":"@@ -0,0 +1,150 @@\n+/* eslint-disable jsx-a11y/label-has-for */\n+\n+import React from \"react\";\n+import PropTypes from \"prop-types\";\n+\n+import { connect } from \"react-redux\";\n+import { reduxForm, Field } from \"redux-form\";\n+import { push } from \"react-router-redux\";\n+\n+import { loginUser } from \"../../api\";\n+\n+class LoginForm extends React.Component {\n+  componentWillUpdate(nextProps) {\n+    if (nextProps.isAuthenticated) this.props.redirectAfterLogin(\"/\");\n+  }\n+\n+  usernameInput = ({ input, meta: { touched, error }, ...custom }) => {","path":"src/Authentication/containers/LoginForm/index.jsx","position":17,"original_position":17,"commit_id":"97f0fef04306b108da81220193a9e13aae9a50fa","original_commit_id":"97f0fef04306b108da81220193a9e13aae9a50fa","user":{"login":"codeclimate[bot]","id":36754821,"node_id":"MDM6Qm90MzY3NTQ4MjE=","avatar_url":"https://avatars0.githubusercontent.com/in/9403?v=4","gravatar_id":"","url":"https://api.github.com/users/codeclimate%5Bbot%5D","html_url":"https://github.com/apps/codeclimate","followers_url":"https://api.github.com/users/codeclimate%5Bbot%5D/followers","following_url":"https://api.github.com/users/codeclimate%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/codeclimate%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/codeclimate%5Bbot%5D/repos","events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"Similar blocks of code found in 2 locations. Consider refactoring.","created_at":"2018-09-17T16:44:02Z","updated_at":"2018-09-17T16:44:02Z","html_url":"https://github.com/msoufiane/snt-frontend/pull/14#discussion_r218143483","pull_request_url":"https://api.github.com/repos/msoufiane/snt-frontend/pulls/14","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/msoufiane/snt-frontend/pulls/comments/218143483"},"html":{"href":"https://github.com/msoufiane/snt-frontend/pull/14#discussion_r218143483"},"pull_request":{"href":"https://api.github.com/repos/msoufiane/snt-frontend/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/msoufiane/snt-frontend/pulls/14","id":216044102,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2MDQ0MTAy","html_url":"https://github.com/msoufiane/snt-frontend/pull/14","diff_url":"https://github.com/msoufiane/snt-frontend/pull/14.diff","patch_url":"https://github.com/msoufiane/snt-frontend/pull/14.patch","issue_url":"https://api.github.com/repos/msoufiane/snt-frontend/issues/14","number":14,"state":"open","locked":false,"title":"Boiler plate import","user":{"login":"msoufiane","id":32396536,"node_id":"MDQ6VXNlcjMyMzk2NTM2","avatar_url":"https://avatars3.githubusercontent.com/u/32396536?v=4","gravatar_id":"","url":"https://api.github.com/users/msoufiane","html_url":"https://github.com/msoufiane","followers_url":"https://api.github.com/users/msoufiane/followers","following_url":"https://api.github.com/users/msoufiane/following{/other_user}","gists_url":"https://api.github.com/users/msoufiane/gists{/gist_id}","starred_url":"https://api.github.com/users/msoufiane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msoufiane/subscriptions","organizations_url":"https://api.github.com/users/msoufiane/orgs","repos_url":"https://api.github.com/users/msoufiane/repos","events_url":"https://api.github.com/users/msoufiane/events{/privacy}","received_events_url":"https://api.github.com/users/msoufiane/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-17T16:38:18Z","updated_at":"2018-09-17T16:44:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bba6c9ed0e49d4ad859502d28a23f829bdaae53c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/msoufiane/snt-frontend/pulls/14/commits","review_comments_url":"https://api.github.com/repos/msoufiane/snt-frontend/pulls/14/comments","review_comment_url":"https://api.github.com/repos/msoufiane/snt-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/msoufiane/snt-frontend/issues/14/comments","statuses_url":"https://api.github.com/repos/msoufiane/snt-frontend/statuses/97f0fef04306b108da81220193a9e13aae9a50fa","head":{"label":"msoufiane:boiler-plate_import","ref":"boiler-plate_import","sha":"97f0fef04306b108da81220193a9e13aae9a50fa","user":{"login":"msoufiane","id":32396536,"node_id":"MDQ6VXNlcjMyMzk2NTM2","avatar_url":"https://avatars3.githubusercontent.com/u/32396536?v=4","gravatar_id":"","url":"https://api.github.com/users/msoufiane","html_url":"https://github.com/msoufiane","followers_url":"https://api.github.com/users/msoufiane/followers","following_url":"https://api.github.com/users/msoufiane/following{/other_user}","gists_url":"https://api.github.com/users/msoufiane/gists{/gist_id}","starred_url":"https://api.github.com/users/msoufiane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msoufiane/subscriptions","organizations_url":"https://api.github.com/users/msoufiane/orgs","repos_url":"https://api.github.com/users/msoufiane/repos","events_url":"https://api.github.com/users/msoufiane/events{/privacy}","received_events_url":"https://api.github.com/users/msoufiane/received_events","type":"User","site_admin":false},"repo":{"id":149008955,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkwMDg5NTU=","name":"snt-frontend","full_name":"msoufiane/snt-frontend","private":false,"owner":{"login":"msoufiane","id":32396536,"node_id":"MDQ6VXNlcjMyMzk2NTM2","avatar_url":"https://avatars3.githubusercontent.com/u/32396536?v=4","gravatar_id":"","url":"https://api.github.com/users/msoufiane","html_url":"https://github.com/msoufiane","followers_url":"https://api.github.com/users/msoufiane/followers","following_url":"https://api.github.com/users/msoufiane/following{/other_user}","gists_url":"https://api.github.com/users/msoufiane/gists{/gist_id}","starred_url":"https://api.github.com/users/msoufiane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msoufiane/subscriptions","organizations_url":"https://api.github.com/users/msoufiane/orgs","repos_url":"https://api.github.com/users/msoufiane/repos","events_url":"https://api.github.com/users/msoufiane/events{/privacy}","received_events_url":"https://api.github.com/users/msoufiane/received_events","type":"User","site_admin":false},"html_url":"https://github.com/msoufiane/snt-frontend","description":"FrontEnd application for SentAd","fork":false,"url":"https://api.github.com/repos/msoufiane/snt-frontend","forks_url":"https://api.github.com/repos/msoufiane/snt-frontend/forks","keys_url":"https://api.github.com/repos/msoufiane/snt-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/msoufiane/snt-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/msoufiane/snt-frontend/teams","hooks_url":"https://api.github.com/repos/msoufiane/snt-frontend/hooks","issue_events_url":"https://api.github.com/repos/msoufiane/snt-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/msoufiane/snt-frontend/events","assignees_url":"https://api.github.com/repos/msoufiane/snt-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/msoufiane/snt-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/msoufiane/snt-frontend/tags","blobs_url":"https://api.github.com/repos/msoufiane/snt-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/msoufiane/snt-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/msoufiane/snt-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/msoufiane/snt-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/msoufiane/snt-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/msoufiane/snt-frontend/languages","stargazers_url":"https://api.github.com/repos/msoufiane/snt-frontend/stargazers","contributors_url":"https://api.github.com/repos/msoufiane/snt-frontend/contributors","subscribers_url":"https://api.github.com/repos/msoufiane/snt-frontend/subscribers","subscription_url":"https://api.github.com/repos/msoufiane/snt-frontend/subscription","commits_url":"https://api.github.com/repos/msoufiane/snt-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/msoufiane/snt-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/msoufiane/snt-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/msoufiane/snt-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/msoufiane/snt-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/msoufiane/snt-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/msoufiane/snt-frontend/merges","archive_url":"https://api.github.com/repos/msoufiane/snt-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/msoufiane/snt-frontend/downloads","issues_url":"https://api.github.com/repos/msoufiane/snt-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/msoufiane/snt-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/msoufiane/snt-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/msoufiane/snt-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/msoufiane/snt-frontend/labels{/name}","releases_url":"https://api.github.com/repos/msoufiane/snt-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/msoufiane/snt-frontend/deployments","created_at":"2018-09-16T15:29:46Z","updated_at":"2018-09-17T15:43:27Z","pushed_at":"2018-09-17T16:42:42Z","git_url":"git://github.com/msoufiane/snt-frontend.git","ssh_url":"git@github.com:msoufiane/snt-frontend.git","clone_url":"https://github.com/msoufiane/snt-frontend.git","svn_url":"https://github.com/msoufiane/snt-frontend","homepage":null,"size":354,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"msoufiane:master","ref":"master","sha":"b7bcbec0eab9a38c18bedafc0ba337328a9365b2","user":{"login":"msoufiane","id":32396536,"node_id":"MDQ6VXNlcjMyMzk2NTM2","avatar_url":"https://avatars3.githubusercontent.com/u/32396536?v=4","gravatar_id":"","url":"https://api.github.com/users/msoufiane","html_url":"https://github.com/msoufiane","followers_url":"https://api.github.com/users/msoufiane/followers","following_url":"https://api.github.com/users/msoufiane/following{/other_user}","gists_url":"https://api.github.com/users/msoufiane/gists{/gist_id}","starred_url":"https://api.github.com/users/msoufiane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msoufiane/subscriptions","organizations_url":"https://api.github.com/users/msoufiane/orgs","repos_url":"https://api.github.com/users/msoufiane/repos","events_url":"https://api.github.com/users/msoufiane/events{/privacy}","received_events_url":"https://api.github.com/users/msoufiane/received_events","type":"User","site_admin":false},"repo":{"id":149008955,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkwMDg5NTU=","name":"snt-frontend","full_name":"msoufiane/snt-frontend","private":false,"owner":{"login":"msoufiane","id":32396536,"node_id":"MDQ6VXNlcjMyMzk2NTM2","avatar_url":"https://avatars3.githubusercontent.com/u/32396536?v=4","gravatar_id":"","url":"https://api.github.com/users/msoufiane","html_url":"https://github.com/msoufiane","followers_url":"https://api.github.com/users/msoufiane/followers","following_url":"https://api.github.com/users/msoufiane/following{/other_user}","gists_url":"https://api.github.com/users/msoufiane/gists{/gist_id}","starred_url":"https://api.github.com/users/msoufiane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msoufiane/subscriptions","organizations_url":"https://api.github.com/users/msoufiane/orgs","repos_url":"https://api.github.com/users/msoufiane/repos","events_url":"https://api.github.com/users/msoufiane/events{/privacy}","received_events_url":"https://api.github.com/users/msoufiane/received_events","type":"User","site_admin":false},"html_url":"https://github.com/msoufiane/snt-frontend","description":"FrontEnd application for SentAd","fork":false,"url":"https://api.github.com/repos/msoufiane/snt-frontend","forks_url":"https://api.github.com/repos/msoufiane/snt-frontend/forks","keys_url":"https://api.github.com/repos/msoufiane/snt-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/msoufiane/snt-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/msoufiane/snt-frontend/teams","hooks_url":"https://api.github.com/repos/msoufiane/snt-frontend/hooks","issue_events_url":"https://api.github.com/repos/msoufiane/snt-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/msoufiane/snt-frontend/events","assignees_url":"https://api.github.com/repos/msoufiane/snt-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/msoufiane/snt-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/msoufiane/snt-frontend/tags","blobs_url":"https://api.github.com/repos/msoufiane/snt-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/msoufiane/snt-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/msoufiane/snt-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/msoufiane/snt-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/msoufiane/snt-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/msoufiane/snt-frontend/languages","stargazers_url":"https://api.github.com/repos/msoufiane/snt-frontend/stargazers","contributors_url":"https://api.github.com/repos/msoufiane/snt-frontend/contributors","subscribers_url":"https://api.github.com/repos/msoufiane/snt-frontend/subscribers","subscription_url":"https://api.github.com/repos/msoufiane/snt-frontend/subscription","commits_url":"https://api.github.com/repos/msoufiane/snt-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/msoufiane/snt-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/msoufiane/snt-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/msoufiane/snt-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/msoufiane/snt-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/msoufiane/snt-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/msoufiane/snt-frontend/merges","archive_url":"https://api.github.com/repos/msoufiane/snt-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/msoufiane/snt-frontend/downloads","issues_url":"https://api.github.com/repos/msoufiane/snt-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/msoufiane/snt-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/msoufiane/snt-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/msoufiane/snt-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/msoufiane/snt-frontend/labels{/name}","releases_url":"https://api.github.com/repos/msoufiane/snt-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/msoufiane/snt-frontend/deployments","created_at":"2018-09-16T15:29:46Z","updated_at":"2018-09-17T15:43:27Z","pushed_at":"2018-09-17T16:42:42Z","git_url":"git://github.com/msoufiane/snt-frontend.git","ssh_url":"git@github.com:msoufiane/snt-frontend.git","clone_url":"https://github.com/msoufiane/snt-frontend.git","svn_url":"https://github.com/msoufiane/snt-frontend","homepage":null,"size":354,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/msoufiane/snt-frontend/pulls/14"},"html":{"href":"https://github.com/msoufiane/snt-frontend/pull/14"},"issue":{"href":"https://api.github.com/repos/msoufiane/snt-frontend/issues/14"},"comments":{"href":"https://api.github.com/repos/msoufiane/snt-frontend/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/msoufiane/snt-frontend/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/msoufiane/snt-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/msoufiane/snt-frontend/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/msoufiane/snt-frontend/statuses/97f0fef04306b108da81220193a9e13aae9a50fa"}},"author_association":"OWNER"}}
{"actor":{"display_login":"codeclimate"}}