{"action":"closed","number":5,"pull_request":{"url":"https://api.github.com/repos/dangroza/custom-react-form/pulls/5","id":200407372,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAwNDA3Mzcy","html_url":"https://github.com/dangroza/custom-react-form/pull/5","diff_url":"https://github.com/dangroza/custom-react-form/pull/5.diff","patch_url":"https://github.com/dangroza/custom-react-form/pull/5.patch","issue_url":"https://api.github.com/repos/dangroza/custom-react-form/issues/5","number":5,"state":"closed","locked":false,"title":"Revalidate field on demand","user":{"login":"razvan-sv","id":483442,"node_id":"MDQ6VXNlcjQ4MzQ0Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/483442?v=4","gravatar_id":"","url":"https://api.github.com/users/razvan-sv","html_url":"https://github.com/razvan-sv","followers_url":"https://api.github.com/users/razvan-sv/followers","following_url":"https://api.github.com/users/razvan-sv/following{/other_user}","gists_url":"https://api.github.com/users/razvan-sv/gists{/gist_id}","starred_url":"https://api.github.com/users/razvan-sv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/razvan-sv/subscriptions","organizations_url":"https://api.github.com/users/razvan-sv/orgs","repos_url":"https://api.github.com/users/razvan-sv/repos","events_url":"https://api.github.com/users/razvan-sv/events{/privacy}","received_events_url":"https://api.github.com/users/razvan-sv/received_events","type":"User","site_admin":false},"body":"* made use of `showErrors` to retrigger the validation. Useful when we need to revalidate a field when another field changes.\r\n* used `componendDidUpdate` because [`componentWillUpdate` will be deprecated](https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate)","created_at":"2018-07-10T14:02:48Z","updated_at":"2018-07-10T14:14:01Z","closed_at":"2018-07-10T14:14:01Z","merged_at":"2018-07-10T14:14:01Z","merge_commit_sha":"b88ff05b27eda3179b5bac4a87a5b5faaba841d0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dangroza/custom-react-form/pulls/5/commits","review_comments_url":"https://api.github.com/repos/dangroza/custom-react-form/pulls/5/comments","review_comment_url":"https://api.github.com/repos/dangroza/custom-react-form/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dangroza/custom-react-form/issues/5/comments","statuses_url":"https://api.github.com/repos/dangroza/custom-react-form/statuses/2fa0ef20d23eabb64e8f870937d9dc82fc8d2e8b","head":{"label":"dangroza:validation-improvements","ref":"validation-improvements","sha":"2fa0ef20d23eabb64e8f870937d9dc82fc8d2e8b","user":{"login":"dangroza","id":4244532,"node_id":"MDQ6VXNlcjQyNDQ1MzI=","avatar_url":"https://avatars3.githubusercontent.com/u/4244532?v=4","gravatar_id":"","url":"https://api.github.com/users/dangroza","html_url":"https://github.com/dangroza","followers_url":"https://api.github.com/users/dangroza/followers","following_url":"https://api.github.com/users/dangroza/following{/other_user}","gists_url":"https://api.github.com/users/dangroza/gists{/gist_id}","starred_url":"https://api.github.com/users/dangroza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dangroza/subscriptions","organizations_url":"https://api.github.com/users/dangroza/orgs","repos_url":"https://api.github.com/users/dangroza/repos","events_url":"https://api.github.com/users/dangroza/events{/privacy}","received_events_url":"https://api.github.com/users/dangroza/received_events","type":"User","site_admin":false},"repo":{"id":123878832,"node_id":"MDEwOlJlcG9zaXRvcnkxMjM4Nzg4MzI=","name":"custom-react-form","full_name":"dangroza/custom-react-form","owner":{"login":"dangroza","id":4244532,"node_id":"MDQ6VXNlcjQyNDQ1MzI=","avatar_url":"https://avatars3.githubusercontent.com/u/4244532?v=4","gravatar_id":"","url":"https://api.github.com/users/dangroza","html_url":"https://github.com/dangroza","followers_url":"https://api.github.com/users/dangroza/followers","following_url":"https://api.github.com/users/dangroza/following{/other_user}","gists_url":"https://api.github.com/users/dangroza/gists{/gist_id}","starred_url":"https://api.github.com/users/dangroza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dangroza/subscriptions","organizations_url":"https://api.github.com/users/dangroza/orgs","repos_url":"https://api.github.com/users/dangroza/repos","events_url":"https://api.github.com/users/dangroza/events{/privacy}","received_events_url":"https://api.github.com/users/dangroza/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dangroza/custom-react-form","description":"Custom React Form","fork":false,"url":"https://api.github.com/repos/dangroza/custom-react-form","forks_url":"https://api.github.com/repos/dangroza/custom-react-form/forks","keys_url":"https://api.github.com/repos/dangroza/custom-react-form/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dangroza/custom-react-form/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dangroza/custom-react-form/teams","hooks_url":"https://api.github.com/repos/dangroza/custom-react-form/hooks","issue_events_url":"https://api.github.com/repos/dangroza/custom-react-form/issues/events{/number}","events_url":"https://api.github.com/repos/dangroza/custom-react-form/events","assignees_url":"https://api.github.com/repos/dangroza/custom-react-form/assignees{/user}","branches_url":"https://api.github.com/repos/dangroza/custom-react-form/branches{/branch}","tags_url":"https://api.github.com/repos/dangroza/custom-react-form/tags","blobs_url":"https://api.github.com/repos/dangroza/custom-react-form/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dangroza/custom-react-form/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dangroza/custom-react-form/git/refs{/sha}","trees_url":"https://api.github.com/repos/dangroza/custom-react-form/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dangroza/custom-react-form/statuses/{sha}","languages_url":"https://api.github.com/repos/dangroza/custom-react-form/languages","stargazers_url":"https://api.github.com/repos/dangroza/custom-react-form/stargazers","contributors_url":"https://api.github.com/repos/dangroza/custom-react-form/contributors","subscribers_url":"https://api.github.com/repos/dangroza/custom-react-form/subscribers","subscription_url":"https://api.github.com/repos/dangroza/custom-react-form/subscription","commits_url":"https://api.github.com/repos/dangroza/custom-react-form/commits{/sha}","git_commits_url":"https://api.github.com/repos/dangroza/custom-react-form/git/commits{/sha}","comments_url":"https://api.github.com/repos/dangroza/custom-react-form/comments{/number}","issue_comment_url":"https://api.github.com/repos/dangroza/custom-react-form/issues/comments{/number}","contents_url":"https://api.github.com/repos/dangroza/custom-react-form/contents/{+path}","compare_url":"https://api.github.com/repos/dangroza/custom-react-form/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dangroza/custom-react-form/merges","archive_url":"https://api.github.com/repos/dangroza/custom-react-form/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dangroza/custom-react-form/downloads","issues_url":"https://api.github.com/repos/dangroza/custom-react-form/issues{/number}","pulls_url":"https://api.github.com/repos/dangroza/custom-react-form/pulls{/number}","milestones_url":"https://api.github.com/repos/dangroza/custom-react-form/milestones{/number}","notifications_url":"https://api.github.com/repos/dangroza/custom-react-form/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dangroza/custom-react-form/labels{/name}","releases_url":"https://api.github.com/repos/dangroza/custom-react-form/releases{/id}","deployments_url":"https://api.github.com/repos/dangroza/custom-react-form/deployments","created_at":"2018-03-05T07:05:30Z","updated_at":"2018-07-06T11:27:01Z","pushed_at":"2018-07-10T14:14:01Z","git_url":"git://github.com/dangroza/custom-react-form.git","ssh_url":"git@github.com:dangroza/custom-react-form.git","clone_url":"https://github.com/dangroza/custom-react-form.git","svn_url":"https://github.com/dangroza/custom-react-form","homepage":null,"size":986,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"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":"dangroza:master","ref":"master","sha":"e847c7b121ee99adcc37901e2a6b39a321eb8c98","user":{"login":"dangroza","id":4244532,"node_id":"MDQ6VXNlcjQyNDQ1MzI=","avatar_url":"https://avatars3.githubusercontent.com/u/4244532?v=4","gravatar_id":"","url":"https://api.github.com/users/dangroza","html_url":"https://github.com/dangroza","followers_url":"https://api.github.com/users/dangroza/followers","following_url":"https://api.github.com/users/dangroza/following{/other_user}","gists_url":"https://api.github.com/users/dangroza/gists{/gist_id}","starred_url":"https://api.github.com/users/dangroza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dangroza/subscriptions","organizations_url":"https://api.github.com/users/dangroza/orgs","repos_url":"https://api.github.com/users/dangroza/repos","events_url":"https://api.github.com/users/dangroza/events{/privacy}","received_events_url":"https://api.github.com/users/dangroza/received_events","type":"User","site_admin":false},"repo":{"id":123878832,"node_id":"MDEwOlJlcG9zaXRvcnkxMjM4Nzg4MzI=","name":"custom-react-form","full_name":"dangroza/custom-react-form","owner":{"login":"dangroza","id":4244532,"node_id":"MDQ6VXNlcjQyNDQ1MzI=","avatar_url":"https://avatars3.githubusercontent.com/u/4244532?v=4","gravatar_id":"","url":"https://api.github.com/users/dangroza","html_url":"https://github.com/dangroza","followers_url":"https://api.github.com/users/dangroza/followers","following_url":"https://api.github.com/users/dangroza/following{/other_user}","gists_url":"https://api.github.com/users/dangroza/gists{/gist_id}","starred_url":"https://api.github.com/users/dangroza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dangroza/subscriptions","organizations_url":"https://api.github.com/users/dangroza/orgs","repos_url":"https://api.github.com/users/dangroza/repos","events_url":"https://api.github.com/users/dangroza/events{/privacy}","received_events_url":"https://api.github.com/users/dangroza/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dangroza/custom-react-form","description":"Custom React Form","fork":false,"url":"https://api.github.com/repos/dangroza/custom-react-form","forks_url":"https://api.github.com/repos/dangroza/custom-react-form/forks","keys_url":"https://api.github.com/repos/dangroza/custom-react-form/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dangroza/custom-react-form/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dangroza/custom-react-form/teams","hooks_url":"https://api.github.com/repos/dangroza/custom-react-form/hooks","issue_events_url":"https://api.github.com/repos/dangroza/custom-react-form/issues/events{/number}","events_url":"https://api.github.com/repos/dangroza/custom-react-form/events","assignees_url":"https://api.github.com/repos/dangroza/custom-react-form/assignees{/user}","branches_url":"https://api.github.com/repos/dangroza/custom-react-form/branches{/branch}","tags_url":"https://api.github.com/repos/dangroza/custom-react-form/tags","blobs_url":"https://api.github.com/repos/dangroza/custom-react-form/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dangroza/custom-react-form/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dangroza/custom-react-form/git/refs{/sha}","trees_url":"https://api.github.com/repos/dangroza/custom-react-form/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dangroza/custom-react-form/statuses/{sha}","languages_url":"https://api.github.com/repos/dangroza/custom-react-form/languages","stargazers_url":"https://api.github.com/repos/dangroza/custom-react-form/stargazers","contributors_url":"https://api.github.com/repos/dangroza/custom-react-form/contributors","subscribers_url":"https://api.github.com/repos/dangroza/custom-react-form/subscribers","subscription_url":"https://api.github.com/repos/dangroza/custom-react-form/subscription","commits_url":"https://api.github.com/repos/dangroza/custom-react-form/commits{/sha}","git_commits_url":"https://api.github.com/repos/dangroza/custom-react-form/git/commits{/sha}","comments_url":"https://api.github.com/repos/dangroza/custom-react-form/comments{/number}","issue_comment_url":"https://api.github.com/repos/dangroza/custom-react-form/issues/comments{/number}","contents_url":"https://api.github.com/repos/dangroza/custom-react-form/contents/{+path}","compare_url":"https://api.github.com/repos/dangroza/custom-react-form/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dangroza/custom-react-form/merges","archive_url":"https://api.github.com/repos/dangroza/custom-react-form/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dangroza/custom-react-form/downloads","issues_url":"https://api.github.com/repos/dangroza/custom-react-form/issues{/number}","pulls_url":"https://api.github.com/repos/dangroza/custom-react-form/pulls{/number}","milestones_url":"https://api.github.com/repos/dangroza/custom-react-form/milestones{/number}","notifications_url":"https://api.github.com/repos/dangroza/custom-react-form/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dangroza/custom-react-form/labels{/name}","releases_url":"https://api.github.com/repos/dangroza/custom-react-form/releases{/id}","deployments_url":"https://api.github.com/repos/dangroza/custom-react-form/deployments","created_at":"2018-03-05T07:05:30Z","updated_at":"2018-07-06T11:27:01Z","pushed_at":"2018-07-10T14:14:01Z","git_url":"git://github.com/dangroza/custom-react-form.git","ssh_url":"git@github.com:dangroza/custom-react-form.git","clone_url":"https://github.com/dangroza/custom-react-form.git","svn_url":"https://github.com/dangroza/custom-react-form","homepage":null,"size":986,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"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"}},"_links":{"self":{"href":"https://api.github.com/repos/dangroza/custom-react-form/pulls/5"},"html":{"href":"https://github.com/dangroza/custom-react-form/pull/5"},"issue":{"href":"https://api.github.com/repos/dangroza/custom-react-form/issues/5"},"comments":{"href":"https://api.github.com/repos/dangroza/custom-react-form/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/dangroza/custom-react-form/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/dangroza/custom-react-form/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dangroza/custom-react-form/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/dangroza/custom-react-form/statuses/2fa0ef20d23eabb64e8f870937d9dc82fc8d2e8b"}},"author_association":"COLLABORATOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"dangroza","id":4244532,"node_id":"MDQ6VXNlcjQyNDQ1MzI=","avatar_url":"https://avatars3.githubusercontent.com/u/4244532?v=4","gravatar_id":"","url":"https://api.github.com/users/dangroza","html_url":"https://github.com/dangroza","followers_url":"https://api.github.com/users/dangroza/followers","following_url":"https://api.github.com/users/dangroza/following{/other_user}","gists_url":"https://api.github.com/users/dangroza/gists{/gist_id}","starred_url":"https://api.github.com/users/dangroza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dangroza/subscriptions","organizations_url":"https://api.github.com/users/dangroza/orgs","repos_url":"https://api.github.com/users/dangroza/repos","events_url":"https://api.github.com/users/dangroza/events{/privacy}","received_events_url":"https://api.github.com/users/dangroza/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":336,"deletions":292,"changed_files":4}}
{"actor":{"display_login":"dangroza"}}