{"action":"opened","number":239,"pull_request":{"url":"https://api.github.com/repos/django/django-localflavor/pulls/239","id":76993080,"html_url":"https://github.com/django/django-localflavor/pull/239","diff_url":"https://github.com/django/django-localflavor/pull/239.diff","patch_url":"https://github.com/django/django-localflavor/pull/239.patch","issue_url":"https://api.github.com/repos/django/django-localflavor/issues/239","number":239,"state":"open","locked":false,"title":"Add birth date check to PESEL validation","user":{"login":"emesik","id":407107,"avatar_url":"https://avatars.githubusercontent.com/u/407107?v=3","gravatar_id":"","url":"https://api.github.com/users/emesik","html_url":"https://github.com/emesik","followers_url":"https://api.github.com/users/emesik/followers","following_url":"https://api.github.com/users/emesik/following{/other_user}","gists_url":"https://api.github.com/users/emesik/gists{/gist_id}","starred_url":"https://api.github.com/users/emesik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emesik/subscriptions","organizations_url":"https://api.github.com/users/emesik/orgs","repos_url":"https://api.github.com/users/emesik/repos","events_url":"https://api.github.com/users/emesik/events{/privacy}","received_events_url":"https://api.github.com/users/emesik/received_events","type":"User","site_admin":false},"body":"The PESEL number contains birth date encoded within first 6 digits. Checksum validation is enough to spot most typos and swapped digits but doesn't protect from injecting numbers with invalid month or day value.\r\n\r\nThe new validator decodes the birth date components and checks by calling datetime.date() on them.","created_at":"2016-07-11T17:36:18Z","updated_at":"2016-07-11T17:36:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c8d3a90677a2cab330821f750c0323e9372701ba","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/django/django-localflavor/pulls/239/commits","review_comments_url":"https://api.github.com/repos/django/django-localflavor/pulls/239/comments","review_comment_url":"https://api.github.com/repos/django/django-localflavor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/django/django-localflavor/issues/239/comments","statuses_url":"https://api.github.com/repos/django/django-localflavor/statuses/98080a2c0a39f2c2cff1dcf78b20f3d600377e99","head":{"label":"emesik:master","ref":"master","sha":"98080a2c0a39f2c2cff1dcf78b20f3d600377e99","user":{"login":"emesik","id":407107,"avatar_url":"https://avatars.githubusercontent.com/u/407107?v=3","gravatar_id":"","url":"https://api.github.com/users/emesik","html_url":"https://github.com/emesik","followers_url":"https://api.github.com/users/emesik/followers","following_url":"https://api.github.com/users/emesik/following{/other_user}","gists_url":"https://api.github.com/users/emesik/gists{/gist_id}","starred_url":"https://api.github.com/users/emesik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emesik/subscriptions","organizations_url":"https://api.github.com/users/emesik/orgs","repos_url":"https://api.github.com/users/emesik/repos","events_url":"https://api.github.com/users/emesik/events{/privacy}","received_events_url":"https://api.github.com/users/emesik/received_events","type":"User","site_admin":false},"repo":{"id":63086583,"name":"django-localflavor","full_name":"emesik/django-localflavor","owner":{"login":"emesik","id":407107,"avatar_url":"https://avatars.githubusercontent.com/u/407107?v=3","gravatar_id":"","url":"https://api.github.com/users/emesik","html_url":"https://github.com/emesik","followers_url":"https://api.github.com/users/emesik/followers","following_url":"https://api.github.com/users/emesik/following{/other_user}","gists_url":"https://api.github.com/users/emesik/gists{/gist_id}","starred_url":"https://api.github.com/users/emesik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emesik/subscriptions","organizations_url":"https://api.github.com/users/emesik/orgs","repos_url":"https://api.github.com/users/emesik/repos","events_url":"https://api.github.com/users/emesik/events{/privacy}","received_events_url":"https://api.github.com/users/emesik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/emesik/django-localflavor","description":"Country-specific Django helpers, formerly of contrib fame","fork":true,"url":"https://api.github.com/repos/emesik/django-localflavor","forks_url":"https://api.github.com/repos/emesik/django-localflavor/forks","keys_url":"https://api.github.com/repos/emesik/django-localflavor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/emesik/django-localflavor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/emesik/django-localflavor/teams","hooks_url":"https://api.github.com/repos/emesik/django-localflavor/hooks","issue_events_url":"https://api.github.com/repos/emesik/django-localflavor/issues/events{/number}","events_url":"https://api.github.com/repos/emesik/django-localflavor/events","assignees_url":"https://api.github.com/repos/emesik/django-localflavor/assignees{/user}","branches_url":"https://api.github.com/repos/emesik/django-localflavor/branches{/branch}","tags_url":"https://api.github.com/repos/emesik/django-localflavor/tags","blobs_url":"https://api.github.com/repos/emesik/django-localflavor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/emesik/django-localflavor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/emesik/django-localflavor/git/refs{/sha}","trees_url":"https://api.github.com/repos/emesik/django-localflavor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/emesik/django-localflavor/statuses/{sha}","languages_url":"https://api.github.com/repos/emesik/django-localflavor/languages","stargazers_url":"https://api.github.com/repos/emesik/django-localflavor/stargazers","contributors_url":"https://api.github.com/repos/emesik/django-localflavor/contributors","subscribers_url":"https://api.github.com/repos/emesik/django-localflavor/subscribers","subscription_url":"https://api.github.com/repos/emesik/django-localflavor/subscription","commits_url":"https://api.github.com/repos/emesik/django-localflavor/commits{/sha}","git_commits_url":"https://api.github.com/repos/emesik/django-localflavor/git/commits{/sha}","comments_url":"https://api.github.com/repos/emesik/django-localflavor/comments{/number}","issue_comment_url":"https://api.github.com/repos/emesik/django-localflavor/issues/comments{/number}","contents_url":"https://api.github.com/repos/emesik/django-localflavor/contents/{+path}","compare_url":"https://api.github.com/repos/emesik/django-localflavor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/emesik/django-localflavor/merges","archive_url":"https://api.github.com/repos/emesik/django-localflavor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/emesik/django-localflavor/downloads","issues_url":"https://api.github.com/repos/emesik/django-localflavor/issues{/number}","pulls_url":"https://api.github.com/repos/emesik/django-localflavor/pulls{/number}","milestones_url":"https://api.github.com/repos/emesik/django-localflavor/milestones{/number}","notifications_url":"https://api.github.com/repos/emesik/django-localflavor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/emesik/django-localflavor/labels{/name}","releases_url":"https://api.github.com/repos/emesik/django-localflavor/releases{/id}","deployments_url":"https://api.github.com/repos/emesik/django-localflavor/deployments","created_at":"2016-07-11T17:05:25Z","updated_at":"2016-07-11T17:05:27Z","pushed_at":"2016-07-11T17:27:58Z","git_url":"git://github.com/emesik/django-localflavor.git","ssh_url":"git@github.com:emesik/django-localflavor.git","clone_url":"https://github.com/emesik/django-localflavor.git","svn_url":"https://github.com/emesik/django-localflavor","homepage":"https://django-localflavor.readthedocs.io/","size":11040,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"django:master","ref":"master","sha":"fd9fcf1fc61d2aeaedccf209ec03322daf620831","user":{"login":"django","id":27804,"avatar_url":"https://avatars.githubusercontent.com/u/27804?v=3","gravatar_id":"","url":"https://api.github.com/users/django","html_url":"https://github.com/django","followers_url":"https://api.github.com/users/django/followers","following_url":"https://api.github.com/users/django/following{/other_user}","gists_url":"https://api.github.com/users/django/gists{/gist_id}","starred_url":"https://api.github.com/users/django/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django/subscriptions","organizations_url":"https://api.github.com/users/django/orgs","repos_url":"https://api.github.com/users/django/repos","events_url":"https://api.github.com/users/django/events{/privacy}","received_events_url":"https://api.github.com/users/django/received_events","type":"Organization","site_admin":false},"repo":{"id":10264130,"name":"django-localflavor","full_name":"django/django-localflavor","owner":{"login":"django","id":27804,"avatar_url":"https://avatars.githubusercontent.com/u/27804?v=3","gravatar_id":"","url":"https://api.github.com/users/django","html_url":"https://github.com/django","followers_url":"https://api.github.com/users/django/followers","following_url":"https://api.github.com/users/django/following{/other_user}","gists_url":"https://api.github.com/users/django/gists{/gist_id}","starred_url":"https://api.github.com/users/django/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django/subscriptions","organizations_url":"https://api.github.com/users/django/orgs","repos_url":"https://api.github.com/users/django/repos","events_url":"https://api.github.com/users/django/events{/privacy}","received_events_url":"https://api.github.com/users/django/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/django/django-localflavor","description":"Country-specific Django helpers, formerly of contrib fame","fork":false,"url":"https://api.github.com/repos/django/django-localflavor","forks_url":"https://api.github.com/repos/django/django-localflavor/forks","keys_url":"https://api.github.com/repos/django/django-localflavor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/django/django-localflavor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/django/django-localflavor/teams","hooks_url":"https://api.github.com/repos/django/django-localflavor/hooks","issue_events_url":"https://api.github.com/repos/django/django-localflavor/issues/events{/number}","events_url":"https://api.github.com/repos/django/django-localflavor/events","assignees_url":"https://api.github.com/repos/django/django-localflavor/assignees{/user}","branches_url":"https://api.github.com/repos/django/django-localflavor/branches{/branch}","tags_url":"https://api.github.com/repos/django/django-localflavor/tags","blobs_url":"https://api.github.com/repos/django/django-localflavor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/django/django-localflavor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/django/django-localflavor/git/refs{/sha}","trees_url":"https://api.github.com/repos/django/django-localflavor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/django/django-localflavor/statuses/{sha}","languages_url":"https://api.github.com/repos/django/django-localflavor/languages","stargazers_url":"https://api.github.com/repos/django/django-localflavor/stargazers","contributors_url":"https://api.github.com/repos/django/django-localflavor/contributors","subscribers_url":"https://api.github.com/repos/django/django-localflavor/subscribers","subscription_url":"https://api.github.com/repos/django/django-localflavor/subscription","commits_url":"https://api.github.com/repos/django/django-localflavor/commits{/sha}","git_commits_url":"https://api.github.com/repos/django/django-localflavor/git/commits{/sha}","comments_url":"https://api.github.com/repos/django/django-localflavor/comments{/number}","issue_comment_url":"https://api.github.com/repos/django/django-localflavor/issues/comments{/number}","contents_url":"https://api.github.com/repos/django/django-localflavor/contents/{+path}","compare_url":"https://api.github.com/repos/django/django-localflavor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/django/django-localflavor/merges","archive_url":"https://api.github.com/repos/django/django-localflavor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/django/django-localflavor/downloads","issues_url":"https://api.github.com/repos/django/django-localflavor/issues{/number}","pulls_url":"https://api.github.com/repos/django/django-localflavor/pulls{/number}","milestones_url":"https://api.github.com/repos/django/django-localflavor/milestones{/number}","notifications_url":"https://api.github.com/repos/django/django-localflavor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/django/django-localflavor/labels{/name}","releases_url":"https://api.github.com/repos/django/django-localflavor/releases{/id}","deployments_url":"https://api.github.com/repos/django/django-localflavor/deployments","created_at":"2013-05-24T10:20:36Z","updated_at":"2016-07-11T07:38:40Z","pushed_at":"2016-07-11T17:36:18Z","git_url":"git://github.com/django/django-localflavor.git","ssh_url":"git@github.com:django/django-localflavor.git","clone_url":"https://github.com/django/django-localflavor.git","svn_url":"https://github.com/django/django-localflavor","homepage":"https://django-localflavor.readthedocs.io/","size":11040,"stargazers_count":219,"watchers_count":219,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":159,"mirror_url":null,"open_issues_count":23,"forks":159,"open_issues":23,"watchers":219,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/django/django-localflavor/pulls/239"},"html":{"href":"https://github.com/django/django-localflavor/pull/239"},"issue":{"href":"https://api.github.com/repos/django/django-localflavor/issues/239"},"comments":{"href":"https://api.github.com/repos/django/django-localflavor/issues/239/comments"},"review_comments":{"href":"https://api.github.com/repos/django/django-localflavor/pulls/239/comments"},"review_comment":{"href":"https://api.github.com/repos/django/django-localflavor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/django/django-localflavor/pulls/239/commits"},"statuses":{"href":"https://api.github.com/repos/django/django-localflavor/statuses/98080a2c0a39f2c2cff1dcf78b20f3d600377e99"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":26,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"emesik"}}