{"action":"closed","number":20,"pull_request":{"url":"https://api.github.com/repos/silfverstrom/duns.js/pulls/20","id":37638099,"html_url":"https://github.com/silfverstrom/duns.js/pull/20","diff_url":"https://github.com/silfverstrom/duns.js/pull/20.diff","patch_url":"https://github.com/silfverstrom/duns.js/pull/20.patch","issue_url":"https://api.github.com/repos/silfverstrom/duns.js/issues/20","number":20,"state":"closed","locked":false,"title":"Added method for formatting date.","user":{"login":"silfverstrom","id":303546,"avatar_url":"https://avatars.githubusercontent.com/u/303546?v=3","gravatar_id":"","url":"https://api.github.com/users/silfverstrom","html_url":"https://github.com/silfverstrom","followers_url":"https://api.github.com/users/silfverstrom/followers","following_url":"https://api.github.com/users/silfverstrom/following{/other_user}","gists_url":"https://api.github.com/users/silfverstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/silfverstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silfverstrom/subscriptions","organizations_url":"https://api.github.com/users/silfverstrom/orgs","repos_url":"https://api.github.com/users/silfverstrom/repos","events_url":"https://api.github.com/users/silfverstrom/events{/privacy}","received_events_url":"https://api.github.com/users/silfverstrom/received_events","type":"User","site_admin":false},"body":"Date has two formatting alternatives, a callback method defined in returns, or a moment-js valid date-format.\r\n\r\nExamples,\r\n```\r\n//Callback method.\r\nDuns.date().returns(function(val) {\r\n  //return custom reformatting\r\n}).init('2015-01-01').format();\r\n\r\n//Will return 2015-01\r\nDuns.date().returns('YYYY-MM').init('2015-01-01').format();\r\n\r\n//Note that in this example 20150101 is not a valid moment-format, but defining an explicit pattern allows us to use the shorthand notation either way.\r\nDuns.date().pattern('YYYYMMDD').returns('YYYY-MM').init('20150101').format();\r\n\r\n```","created_at":"2015-06-14T08:21:11Z","updated_at":"2015-06-14T09:40:28Z","closed_at":"2015-06-14T09:40:28Z","merged_at":"2015-06-14T09:40:28Z","merge_commit_sha":"63765588d911cdfe1f78b3eb0308e48c5dd33018","assignee":{"login":"br0r","id":3502652,"avatar_url":"https://avatars.githubusercontent.com/u/3502652?v=3","gravatar_id":"","url":"https://api.github.com/users/br0r","html_url":"https://github.com/br0r","followers_url":"https://api.github.com/users/br0r/followers","following_url":"https://api.github.com/users/br0r/following{/other_user}","gists_url":"https://api.github.com/users/br0r/gists{/gist_id}","starred_url":"https://api.github.com/users/br0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/br0r/subscriptions","organizations_url":"https://api.github.com/users/br0r/orgs","repos_url":"https://api.github.com/users/br0r/repos","events_url":"https://api.github.com/users/br0r/events{/privacy}","received_events_url":"https://api.github.com/users/br0r/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/silfverstrom/duns.js/pulls/20/commits","review_comments_url":"https://api.github.com/repos/silfverstrom/duns.js/pulls/20/comments","review_comment_url":"https://api.github.com/repos/silfverstrom/duns.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/silfverstrom/duns.js/issues/20/comments","statuses_url":"https://api.github.com/repos/silfverstrom/duns.js/statuses/da12aceff39c94e58f69c4395bc6c08a5b77a6a2","head":{"label":"silfverstrom:feature/date-formatting","ref":"feature/date-formatting","sha":"da12aceff39c94e58f69c4395bc6c08a5b77a6a2","user":{"login":"silfverstrom","id":303546,"avatar_url":"https://avatars.githubusercontent.com/u/303546?v=3","gravatar_id":"","url":"https://api.github.com/users/silfverstrom","html_url":"https://github.com/silfverstrom","followers_url":"https://api.github.com/users/silfverstrom/followers","following_url":"https://api.github.com/users/silfverstrom/following{/other_user}","gists_url":"https://api.github.com/users/silfverstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/silfverstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silfverstrom/subscriptions","organizations_url":"https://api.github.com/users/silfverstrom/orgs","repos_url":"https://api.github.com/users/silfverstrom/repos","events_url":"https://api.github.com/users/silfverstrom/events{/privacy}","received_events_url":"https://api.github.com/users/silfverstrom/received_events","type":"User","site_admin":false},"repo":{"id":36282162,"name":"duns.js","full_name":"silfverstrom/duns.js","owner":{"login":"silfverstrom","id":303546,"avatar_url":"https://avatars.githubusercontent.com/u/303546?v=3","gravatar_id":"","url":"https://api.github.com/users/silfverstrom","html_url":"https://github.com/silfverstrom","followers_url":"https://api.github.com/users/silfverstrom/followers","following_url":"https://api.github.com/users/silfverstrom/following{/other_user}","gists_url":"https://api.github.com/users/silfverstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/silfverstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silfverstrom/subscriptions","organizations_url":"https://api.github.com/users/silfverstrom/orgs","repos_url":"https://api.github.com/users/silfverstrom/repos","events_url":"https://api.github.com/users/silfverstrom/events{/privacy}","received_events_url":"https://api.github.com/users/silfverstrom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/silfverstrom/duns.js","description":"Schema validator ","fork":false,"url":"https://api.github.com/repos/silfverstrom/duns.js","forks_url":"https://api.github.com/repos/silfverstrom/duns.js/forks","keys_url":"https://api.github.com/repos/silfverstrom/duns.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/silfverstrom/duns.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/silfverstrom/duns.js/teams","hooks_url":"https://api.github.com/repos/silfverstrom/duns.js/hooks","issue_events_url":"https://api.github.com/repos/silfverstrom/duns.js/issues/events{/number}","events_url":"https://api.github.com/repos/silfverstrom/duns.js/events","assignees_url":"https://api.github.com/repos/silfverstrom/duns.js/assignees{/user}","branches_url":"https://api.github.com/repos/silfverstrom/duns.js/branches{/branch}","tags_url":"https://api.github.com/repos/silfverstrom/duns.js/tags","blobs_url":"https://api.github.com/repos/silfverstrom/duns.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/silfverstrom/duns.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/silfverstrom/duns.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/silfverstrom/duns.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/silfverstrom/duns.js/statuses/{sha}","languages_url":"https://api.github.com/repos/silfverstrom/duns.js/languages","stargazers_url":"https://api.github.com/repos/silfverstrom/duns.js/stargazers","contributors_url":"https://api.github.com/repos/silfverstrom/duns.js/contributors","subscribers_url":"https://api.github.com/repos/silfverstrom/duns.js/subscribers","subscription_url":"https://api.github.com/repos/silfverstrom/duns.js/subscription","commits_url":"https://api.github.com/repos/silfverstrom/duns.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/silfverstrom/duns.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/silfverstrom/duns.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/silfverstrom/duns.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/silfverstrom/duns.js/contents/{+path}","compare_url":"https://api.github.com/repos/silfverstrom/duns.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/silfverstrom/duns.js/merges","archive_url":"https://api.github.com/repos/silfverstrom/duns.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/silfverstrom/duns.js/downloads","issues_url":"https://api.github.com/repos/silfverstrom/duns.js/issues{/number}","pulls_url":"https://api.github.com/repos/silfverstrom/duns.js/pulls{/number}","milestones_url":"https://api.github.com/repos/silfverstrom/duns.js/milestones{/number}","notifications_url":"https://api.github.com/repos/silfverstrom/duns.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/silfverstrom/duns.js/labels{/name}","releases_url":"https://api.github.com/repos/silfverstrom/duns.js/releases{/id}","created_at":"2015-05-26T08:23:24Z","updated_at":"2015-06-11T21:01:34Z","pushed_at":"2015-06-14T09:40:28Z","git_url":"git://github.com/silfverstrom/duns.js.git","ssh_url":"git@github.com:silfverstrom/duns.js.git","clone_url":"https://github.com/silfverstrom/duns.js.git","svn_url":"https://github.com/silfverstrom/duns.js","homepage":null,"size":276,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":6,"forks":2,"open_issues":6,"watchers":5,"default_branch":"master"}},"base":{"label":"silfverstrom:master","ref":"master","sha":"085d746b4864a60d78e0a98beb20d4a09d61f72e","user":{"login":"silfverstrom","id":303546,"avatar_url":"https://avatars.githubusercontent.com/u/303546?v=3","gravatar_id":"","url":"https://api.github.com/users/silfverstrom","html_url":"https://github.com/silfverstrom","followers_url":"https://api.github.com/users/silfverstrom/followers","following_url":"https://api.github.com/users/silfverstrom/following{/other_user}","gists_url":"https://api.github.com/users/silfverstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/silfverstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silfverstrom/subscriptions","organizations_url":"https://api.github.com/users/silfverstrom/orgs","repos_url":"https://api.github.com/users/silfverstrom/repos","events_url":"https://api.github.com/users/silfverstrom/events{/privacy}","received_events_url":"https://api.github.com/users/silfverstrom/received_events","type":"User","site_admin":false},"repo":{"id":36282162,"name":"duns.js","full_name":"silfverstrom/duns.js","owner":{"login":"silfverstrom","id":303546,"avatar_url":"https://avatars.githubusercontent.com/u/303546?v=3","gravatar_id":"","url":"https://api.github.com/users/silfverstrom","html_url":"https://github.com/silfverstrom","followers_url":"https://api.github.com/users/silfverstrom/followers","following_url":"https://api.github.com/users/silfverstrom/following{/other_user}","gists_url":"https://api.github.com/users/silfverstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/silfverstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silfverstrom/subscriptions","organizations_url":"https://api.github.com/users/silfverstrom/orgs","repos_url":"https://api.github.com/users/silfverstrom/repos","events_url":"https://api.github.com/users/silfverstrom/events{/privacy}","received_events_url":"https://api.github.com/users/silfverstrom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/silfverstrom/duns.js","description":"Schema validator ","fork":false,"url":"https://api.github.com/repos/silfverstrom/duns.js","forks_url":"https://api.github.com/repos/silfverstrom/duns.js/forks","keys_url":"https://api.github.com/repos/silfverstrom/duns.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/silfverstrom/duns.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/silfverstrom/duns.js/teams","hooks_url":"https://api.github.com/repos/silfverstrom/duns.js/hooks","issue_events_url":"https://api.github.com/repos/silfverstrom/duns.js/issues/events{/number}","events_url":"https://api.github.com/repos/silfverstrom/duns.js/events","assignees_url":"https://api.github.com/repos/silfverstrom/duns.js/assignees{/user}","branches_url":"https://api.github.com/repos/silfverstrom/duns.js/branches{/branch}","tags_url":"https://api.github.com/repos/silfverstrom/duns.js/tags","blobs_url":"https://api.github.com/repos/silfverstrom/duns.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/silfverstrom/duns.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/silfverstrom/duns.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/silfverstrom/duns.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/silfverstrom/duns.js/statuses/{sha}","languages_url":"https://api.github.com/repos/silfverstrom/duns.js/languages","stargazers_url":"https://api.github.com/repos/silfverstrom/duns.js/stargazers","contributors_url":"https://api.github.com/repos/silfverstrom/duns.js/contributors","subscribers_url":"https://api.github.com/repos/silfverstrom/duns.js/subscribers","subscription_url":"https://api.github.com/repos/silfverstrom/duns.js/subscription","commits_url":"https://api.github.com/repos/silfverstrom/duns.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/silfverstrom/duns.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/silfverstrom/duns.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/silfverstrom/duns.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/silfverstrom/duns.js/contents/{+path}","compare_url":"https://api.github.com/repos/silfverstrom/duns.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/silfverstrom/duns.js/merges","archive_url":"https://api.github.com/repos/silfverstrom/duns.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/silfverstrom/duns.js/downloads","issues_url":"https://api.github.com/repos/silfverstrom/duns.js/issues{/number}","pulls_url":"https://api.github.com/repos/silfverstrom/duns.js/pulls{/number}","milestones_url":"https://api.github.com/repos/silfverstrom/duns.js/milestones{/number}","notifications_url":"https://api.github.com/repos/silfverstrom/duns.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/silfverstrom/duns.js/labels{/name}","releases_url":"https://api.github.com/repos/silfverstrom/duns.js/releases{/id}","created_at":"2015-05-26T08:23:24Z","updated_at":"2015-06-11T21:01:34Z","pushed_at":"2015-06-14T09:40:28Z","git_url":"git://github.com/silfverstrom/duns.js.git","ssh_url":"git@github.com:silfverstrom/duns.js.git","clone_url":"https://github.com/silfverstrom/duns.js.git","svn_url":"https://github.com/silfverstrom/duns.js","homepage":null,"size":276,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":6,"forks":2,"open_issues":6,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/silfverstrom/duns.js/pulls/20"},"html":{"href":"https://github.com/silfverstrom/duns.js/pull/20"},"issue":{"href":"https://api.github.com/repos/silfverstrom/duns.js/issues/20"},"comments":{"href":"https://api.github.com/repos/silfverstrom/duns.js/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/silfverstrom/duns.js/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/silfverstrom/duns.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/silfverstrom/duns.js/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/silfverstrom/duns.js/statuses/da12aceff39c94e58f69c4395bc6c08a5b77a6a2"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"br0r","id":3502652,"avatar_url":"https://avatars.githubusercontent.com/u/3502652?v=3","gravatar_id":"","url":"https://api.github.com/users/br0r","html_url":"https://github.com/br0r","followers_url":"https://api.github.com/users/br0r/followers","following_url":"https://api.github.com/users/br0r/following{/other_user}","gists_url":"https://api.github.com/users/br0r/gists{/gist_id}","starred_url":"https://api.github.com/users/br0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/br0r/subscriptions","organizations_url":"https://api.github.com/users/br0r/orgs","repos_url":"https://api.github.com/users/br0r/repos","events_url":"https://api.github.com/users/br0r/events{/privacy}","received_events_url":"https://api.github.com/users/br0r/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":57,"deletions":1,"changed_files":2}}