{"action":"closed","number":765,"pull_request":{"url":"https://api.github.com/repos/date-fns/date-fns/pulls/765","id":190606697,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkwNjA2Njk3","html_url":"https://github.com/date-fns/date-fns/pull/765","diff_url":"https://github.com/date-fns/date-fns/pull/765.diff","patch_url":"https://github.com/date-fns/date-fns/pull/765.patch","issue_url":"https://api.github.com/repos/date-fns/date-fns/issues/765","number":765,"state":"closed","locked":false,"title":"Truncate all number arguments (closes #746); review usage of === undefined (closes #767); review handling of arguments of wrong type","user":{"login":"leshakoss","id":566319,"node_id":"MDQ6VXNlcjU2NjMxOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/566319?v=4","gravatar_id":"","url":"https://api.github.com/users/leshakoss","html_url":"https://github.com/leshakoss","followers_url":"https://api.github.com/users/leshakoss/followers","following_url":"https://api.github.com/users/leshakoss/following{/other_user}","gists_url":"https://api.github.com/users/leshakoss/gists{/gist_id}","starred_url":"https://api.github.com/users/leshakoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leshakoss/subscriptions","organizations_url":"https://api.github.com/users/leshakoss/orgs","repos_url":"https://api.github.com/users/leshakoss/repos","events_url":"https://api.github.com/users/leshakoss/events{/privacy}","received_events_url":"https://api.github.com/users/leshakoss/received_events","type":"User","site_admin":false},"body":"- Convert number arguments into integer number using a custom `toInteger` implementation\r\n- Change null/undefined/true/false implicit conversion strategy:\r\n  - For required arguments:\r\n\r\n  | | date          | number | string      | boolean |\r\n  |-----------|---------------|--------|-------------|---------|\r\n  | 0         | new Date(0)   | 0      | '0'         | false   |\r\n  | '0'       | Invalid Date  | 0      | '0'         | false   |\r\n  | 1         | new Date(1)   | 1      | '1'         | true    |\r\n  | '1'       | Invalid Date  | 1      | '1'         | true    |\r\n  | true      | Invalid Date  | NaN    | 'true'      | true    |\r\n  | false     | Invalid Date  | NaN    | 'false'     | false   |\r\n  | null      | Invalid Date  | NaN    | 'null'      | false   |\r\n  | undefined | Invalid Date  | NaN    | 'undefined' | false   |\r\n  | NaN       | Invalid Date  | NaN    | 'NaN'       | false   |\r\n\r\n  - For optional arguments, null and undefined are treated as if argument is not provided","created_at":"2018-05-25T14:30:45Z","updated_at":"2018-06-07T08:03:31Z","closed_at":"2018-06-07T08:03:31Z","merged_at":"2018-06-07T08:03:31Z","merge_commit_sha":"daddf06be80a8ebeddf26f29e97ee547eef37b9b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/date-fns/date-fns/pulls/765/commits","review_comments_url":"https://api.github.com/repos/date-fns/date-fns/pulls/765/comments","review_comment_url":"https://api.github.com/repos/date-fns/date-fns/pulls/comments{/number}","comments_url":"https://api.github.com/repos/date-fns/date-fns/issues/765/comments","statuses_url":"https://api.github.com/repos/date-fns/date-fns/statuses/4ea74672f28b9e7a9e75587d0a9c455f9743f49e","head":{"label":"date-fns:746-round-numbers","ref":"746-round-numbers","sha":"4ea74672f28b9e7a9e75587d0a9c455f9743f49e","user":{"login":"date-fns","id":14921202,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0OTIxMjAy","avatar_url":"https://avatars2.githubusercontent.com/u/14921202?v=4","gravatar_id":"","url":"https://api.github.com/users/date-fns","html_url":"https://github.com/date-fns","followers_url":"https://api.github.com/users/date-fns/followers","following_url":"https://api.github.com/users/date-fns/following{/other_user}","gists_url":"https://api.github.com/users/date-fns/gists{/gist_id}","starred_url":"https://api.github.com/users/date-fns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/date-fns/subscriptions","organizations_url":"https://api.github.com/users/date-fns/orgs","repos_url":"https://api.github.com/users/date-fns/repos","events_url":"https://api.github.com/users/date-fns/events{/privacy}","received_events_url":"https://api.github.com/users/date-fns/received_events","type":"Organization","site_admin":false},"repo":{"id":24841635,"node_id":"MDEwOlJlcG9zaXRvcnkyNDg0MTYzNQ==","name":"date-fns","full_name":"date-fns/date-fns","owner":{"login":"date-fns","id":14921202,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0OTIxMjAy","avatar_url":"https://avatars2.githubusercontent.com/u/14921202?v=4","gravatar_id":"","url":"https://api.github.com/users/date-fns","html_url":"https://github.com/date-fns","followers_url":"https://api.github.com/users/date-fns/followers","following_url":"https://api.github.com/users/date-fns/following{/other_user}","gists_url":"https://api.github.com/users/date-fns/gists{/gist_id}","starred_url":"https://api.github.com/users/date-fns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/date-fns/subscriptions","organizations_url":"https://api.github.com/users/date-fns/orgs","repos_url":"https://api.github.com/users/date-fns/repos","events_url":"https://api.github.com/users/date-fns/events{/privacy}","received_events_url":"https://api.github.com/users/date-fns/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/date-fns/date-fns","description":"⏳ Modern JavaScript date utility library ⌛️","fork":false,"url":"https://api.github.com/repos/date-fns/date-fns","forks_url":"https://api.github.com/repos/date-fns/date-fns/forks","keys_url":"https://api.github.com/repos/date-fns/date-fns/keys{/key_id}","collaborators_url":"https://api.github.com/repos/date-fns/date-fns/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/date-fns/date-fns/teams","hooks_url":"https://api.github.com/repos/date-fns/date-fns/hooks","issue_events_url":"https://api.github.com/repos/date-fns/date-fns/issues/events{/number}","events_url":"https://api.github.com/repos/date-fns/date-fns/events","assignees_url":"https://api.github.com/repos/date-fns/date-fns/assignees{/user}","branches_url":"https://api.github.com/repos/date-fns/date-fns/branches{/branch}","tags_url":"https://api.github.com/repos/date-fns/date-fns/tags","blobs_url":"https://api.github.com/repos/date-fns/date-fns/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/date-fns/date-fns/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/date-fns/date-fns/git/refs{/sha}","trees_url":"https://api.github.com/repos/date-fns/date-fns/git/trees{/sha}","statuses_url":"https://api.github.com/repos/date-fns/date-fns/statuses/{sha}","languages_url":"https://api.github.com/repos/date-fns/date-fns/languages","stargazers_url":"https://api.github.com/repos/date-fns/date-fns/stargazers","contributors_url":"https://api.github.com/repos/date-fns/date-fns/contributors","subscribers_url":"https://api.github.com/repos/date-fns/date-fns/subscribers","subscription_url":"https://api.github.com/repos/date-fns/date-fns/subscription","commits_url":"https://api.github.com/repos/date-fns/date-fns/commits{/sha}","git_commits_url":"https://api.github.com/repos/date-fns/date-fns/git/commits{/sha}","comments_url":"https://api.github.com/repos/date-fns/date-fns/comments{/number}","issue_comment_url":"https://api.github.com/repos/date-fns/date-fns/issues/comments{/number}","contents_url":"https://api.github.com/repos/date-fns/date-fns/contents/{+path}","compare_url":"https://api.github.com/repos/date-fns/date-fns/compare/{base}...{head}","merges_url":"https://api.github.com/repos/date-fns/date-fns/merges","archive_url":"https://api.github.com/repos/date-fns/date-fns/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/date-fns/date-fns/downloads","issues_url":"https://api.github.com/repos/date-fns/date-fns/issues{/number}","pulls_url":"https://api.github.com/repos/date-fns/date-fns/pulls{/number}","milestones_url":"https://api.github.com/repos/date-fns/date-fns/milestones{/number}","notifications_url":"https://api.github.com/repos/date-fns/date-fns/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/date-fns/date-fns/labels{/name}","releases_url":"https://api.github.com/repos/date-fns/date-fns/releases{/id}","deployments_url":"https://api.github.com/repos/date-fns/date-fns/deployments","created_at":"2014-10-06T10:24:22Z","updated_at":"2018-06-07T07:49:52Z","pushed_at":"2018-06-07T08:03:31Z","git_url":"git://github.com/date-fns/date-fns.git","ssh_url":"git@github.com:date-fns/date-fns.git","clone_url":"https://github.com/date-fns/date-fns.git","svn_url":"https://github.com/date-fns/date-fns","homepage":"https://date-fns.org","size":8586,"stargazers_count":10544,"watchers_count":10544,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":390,"mirror_url":null,"archived":false,"open_issues_count":76,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":390,"open_issues":76,"watchers":10544,"default_branch":"master"}},"base":{"label":"date-fns:master","ref":"master","sha":"136d623b870c30882fcb3e373b9564547bc1f769","user":{"login":"date-fns","id":14921202,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0OTIxMjAy","avatar_url":"https://avatars2.githubusercontent.com/u/14921202?v=4","gravatar_id":"","url":"https://api.github.com/users/date-fns","html_url":"https://github.com/date-fns","followers_url":"https://api.github.com/users/date-fns/followers","following_url":"https://api.github.com/users/date-fns/following{/other_user}","gists_url":"https://api.github.com/users/date-fns/gists{/gist_id}","starred_url":"https://api.github.com/users/date-fns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/date-fns/subscriptions","organizations_url":"https://api.github.com/users/date-fns/orgs","repos_url":"https://api.github.com/users/date-fns/repos","events_url":"https://api.github.com/users/date-fns/events{/privacy}","received_events_url":"https://api.github.com/users/date-fns/received_events","type":"Organization","site_admin":false},"repo":{"id":24841635,"node_id":"MDEwOlJlcG9zaXRvcnkyNDg0MTYzNQ==","name":"date-fns","full_name":"date-fns/date-fns","owner":{"login":"date-fns","id":14921202,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0OTIxMjAy","avatar_url":"https://avatars2.githubusercontent.com/u/14921202?v=4","gravatar_id":"","url":"https://api.github.com/users/date-fns","html_url":"https://github.com/date-fns","followers_url":"https://api.github.com/users/date-fns/followers","following_url":"https://api.github.com/users/date-fns/following{/other_user}","gists_url":"https://api.github.com/users/date-fns/gists{/gist_id}","starred_url":"https://api.github.com/users/date-fns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/date-fns/subscriptions","organizations_url":"https://api.github.com/users/date-fns/orgs","repos_url":"https://api.github.com/users/date-fns/repos","events_url":"https://api.github.com/users/date-fns/events{/privacy}","received_events_url":"https://api.github.com/users/date-fns/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/date-fns/date-fns","description":"⏳ Modern JavaScript date utility library ⌛️","fork":false,"url":"https://api.github.com/repos/date-fns/date-fns","forks_url":"https://api.github.com/repos/date-fns/date-fns/forks","keys_url":"https://api.github.com/repos/date-fns/date-fns/keys{/key_id}","collaborators_url":"https://api.github.com/repos/date-fns/date-fns/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/date-fns/date-fns/teams","hooks_url":"https://api.github.com/repos/date-fns/date-fns/hooks","issue_events_url":"https://api.github.com/repos/date-fns/date-fns/issues/events{/number}","events_url":"https://api.github.com/repos/date-fns/date-fns/events","assignees_url":"https://api.github.com/repos/date-fns/date-fns/assignees{/user}","branches_url":"https://api.github.com/repos/date-fns/date-fns/branches{/branch}","tags_url":"https://api.github.com/repos/date-fns/date-fns/tags","blobs_url":"https://api.github.com/repos/date-fns/date-fns/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/date-fns/date-fns/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/date-fns/date-fns/git/refs{/sha}","trees_url":"https://api.github.com/repos/date-fns/date-fns/git/trees{/sha}","statuses_url":"https://api.github.com/repos/date-fns/date-fns/statuses/{sha}","languages_url":"https://api.github.com/repos/date-fns/date-fns/languages","stargazers_url":"https://api.github.com/repos/date-fns/date-fns/stargazers","contributors_url":"https://api.github.com/repos/date-fns/date-fns/contributors","subscribers_url":"https://api.github.com/repos/date-fns/date-fns/subscribers","subscription_url":"https://api.github.com/repos/date-fns/date-fns/subscription","commits_url":"https://api.github.com/repos/date-fns/date-fns/commits{/sha}","git_commits_url":"https://api.github.com/repos/date-fns/date-fns/git/commits{/sha}","comments_url":"https://api.github.com/repos/date-fns/date-fns/comments{/number}","issue_comment_url":"https://api.github.com/repos/date-fns/date-fns/issues/comments{/number}","contents_url":"https://api.github.com/repos/date-fns/date-fns/contents/{+path}","compare_url":"https://api.github.com/repos/date-fns/date-fns/compare/{base}...{head}","merges_url":"https://api.github.com/repos/date-fns/date-fns/merges","archive_url":"https://api.github.com/repos/date-fns/date-fns/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/date-fns/date-fns/downloads","issues_url":"https://api.github.com/repos/date-fns/date-fns/issues{/number}","pulls_url":"https://api.github.com/repos/date-fns/date-fns/pulls{/number}","milestones_url":"https://api.github.com/repos/date-fns/date-fns/milestones{/number}","notifications_url":"https://api.github.com/repos/date-fns/date-fns/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/date-fns/date-fns/labels{/name}","releases_url":"https://api.github.com/repos/date-fns/date-fns/releases{/id}","deployments_url":"https://api.github.com/repos/date-fns/date-fns/deployments","created_at":"2014-10-06T10:24:22Z","updated_at":"2018-06-07T07:49:52Z","pushed_at":"2018-06-07T08:03:31Z","git_url":"git://github.com/date-fns/date-fns.git","ssh_url":"git@github.com:date-fns/date-fns.git","clone_url":"https://github.com/date-fns/date-fns.git","svn_url":"https://github.com/date-fns/date-fns","homepage":"https://date-fns.org","size":8586,"stargazers_count":10544,"watchers_count":10544,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":390,"mirror_url":null,"archived":false,"open_issues_count":76,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":390,"open_issues":76,"watchers":10544,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/date-fns/date-fns/pulls/765"},"html":{"href":"https://github.com/date-fns/date-fns/pull/765"},"issue":{"href":"https://api.github.com/repos/date-fns/date-fns/issues/765"},"comments":{"href":"https://api.github.com/repos/date-fns/date-fns/issues/765/comments"},"review_comments":{"href":"https://api.github.com/repos/date-fns/date-fns/pulls/765/comments"},"review_comment":{"href":"https://api.github.com/repos/date-fns/date-fns/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/date-fns/date-fns/pulls/765/commits"},"statuses":{"href":"https://api.github.com/repos/date-fns/date-fns/statuses/4ea74672f28b9e7a9e75587d0a9c455f9743f49e"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"kossnocorp","id":52201,"node_id":"MDQ6VXNlcjUyMjAx","avatar_url":"https://avatars1.githubusercontent.com/u/52201?v=4","gravatar_id":"","url":"https://api.github.com/users/kossnocorp","html_url":"https://github.com/kossnocorp","followers_url":"https://api.github.com/users/kossnocorp/followers","following_url":"https://api.github.com/users/kossnocorp/following{/other_user}","gists_url":"https://api.github.com/users/kossnocorp/gists{/gist_id}","starred_url":"https://api.github.com/users/kossnocorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kossnocorp/subscriptions","organizations_url":"https://api.github.com/users/kossnocorp/orgs","repos_url":"https://api.github.com/users/kossnocorp/repos","events_url":"https://api.github.com/users/kossnocorp/events{/privacy}","received_events_url":"https://api.github.com/users/kossnocorp/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":9,"additions":451,"deletions":102,"changed_files":100}}
{"actor":{"display_login":"kossnocorp"}}