{"action":"opened","number":336,"pull_request":{"url":"https://api.github.com/repos/tj/commander.js/pulls/336","id":28361592,"html_url":"https://github.com/tj/commander.js/pull/336","diff_url":"https://github.com/tj/commander.js/pull/336.diff","patch_url":"https://github.com/tj/commander.js/pull/336.patch","issue_url":"https://api.github.com/repos/tj/commander.js/issues/336","number":336,"state":"open","locked":false,"title":"Support for RegEx options","user":{"login":"palanik","id":1656913,"avatar_url":"https://avatars.githubusercontent.com/u/1656913?v=3","gravatar_id":"","url":"https://api.github.com/users/palanik","html_url":"https://github.com/palanik","followers_url":"https://api.github.com/users/palanik/followers","following_url":"https://api.github.com/users/palanik/following{/other_user}","gists_url":"https://api.github.com/users/palanik/gists{/gist_id}","starred_url":"https://api.github.com/users/palanik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palanik/subscriptions","organizations_url":"https://api.github.com/users/palanik/orgs","repos_url":"https://api.github.com/users/palanik/repos","events_url":"https://api.github.com/users/palanik/events{/privacy}","received_events_url":"https://api.github.com/users/palanik/received_events","type":"User","site_admin":false},"body":"Piggy backing on coercion to support options with regular expressions.\r\n\r\nThis allows pre-defined set of values for options.\r\n\r\nTaking the Pizza example, the options for size can be limited to /^(large|medium|small)$/i.\r\n\r\nHTH.\r\n ","created_at":"2015-01-30T13:41:06Z","updated_at":"2015-01-30T13:41:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tj/commander.js/pulls/336/commits","review_comments_url":"https://api.github.com/repos/tj/commander.js/pulls/336/comments","review_comment_url":"https://api.github.com/repos/tj/commander.js/pulls/comments/{number}","comments_url":"https://api.github.com/repos/tj/commander.js/issues/336/comments","statuses_url":"https://api.github.com/repos/tj/commander.js/statuses/bfec51cad678611a810d48590dd07a8c12daa5a8","head":{"label":"palanik:master","ref":"master","sha":"bfec51cad678611a810d48590dd07a8c12daa5a8","user":{"login":"palanik","id":1656913,"avatar_url":"https://avatars.githubusercontent.com/u/1656913?v=3","gravatar_id":"","url":"https://api.github.com/users/palanik","html_url":"https://github.com/palanik","followers_url":"https://api.github.com/users/palanik/followers","following_url":"https://api.github.com/users/palanik/following{/other_user}","gists_url":"https://api.github.com/users/palanik/gists{/gist_id}","starred_url":"https://api.github.com/users/palanik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palanik/subscriptions","organizations_url":"https://api.github.com/users/palanik/orgs","repos_url":"https://api.github.com/users/palanik/repos","events_url":"https://api.github.com/users/palanik/events{/privacy}","received_events_url":"https://api.github.com/users/palanik/received_events","type":"User","site_admin":false},"repo":{"id":28669715,"name":"commander.js","full_name":"palanik/commander.js","owner":{"login":"palanik","id":1656913,"avatar_url":"https://avatars.githubusercontent.com/u/1656913?v=3","gravatar_id":"","url":"https://api.github.com/users/palanik","html_url":"https://github.com/palanik","followers_url":"https://api.github.com/users/palanik/followers","following_url":"https://api.github.com/users/palanik/following{/other_user}","gists_url":"https://api.github.com/users/palanik/gists{/gist_id}","starred_url":"https://api.github.com/users/palanik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palanik/subscriptions","organizations_url":"https://api.github.com/users/palanik/orgs","repos_url":"https://api.github.com/users/palanik/repos","events_url":"https://api.github.com/users/palanik/events{/privacy}","received_events_url":"https://api.github.com/users/palanik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/palanik/commander.js","description":"node.js command-line interfaces made easy","fork":true,"url":"https://api.github.com/repos/palanik/commander.js","forks_url":"https://api.github.com/repos/palanik/commander.js/forks","keys_url":"https://api.github.com/repos/palanik/commander.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/palanik/commander.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/palanik/commander.js/teams","hooks_url":"https://api.github.com/repos/palanik/commander.js/hooks","issue_events_url":"https://api.github.com/repos/palanik/commander.js/issues/events{/number}","events_url":"https://api.github.com/repos/palanik/commander.js/events","assignees_url":"https://api.github.com/repos/palanik/commander.js/assignees{/user}","branches_url":"https://api.github.com/repos/palanik/commander.js/branches{/branch}","tags_url":"https://api.github.com/repos/palanik/commander.js/tags","blobs_url":"https://api.github.com/repos/palanik/commander.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/palanik/commander.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/palanik/commander.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/palanik/commander.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/palanik/commander.js/statuses/{sha}","languages_url":"https://api.github.com/repos/palanik/commander.js/languages","stargazers_url":"https://api.github.com/repos/palanik/commander.js/stargazers","contributors_url":"https://api.github.com/repos/palanik/commander.js/contributors","subscribers_url":"https://api.github.com/repos/palanik/commander.js/subscribers","subscription_url":"https://api.github.com/repos/palanik/commander.js/subscription","commits_url":"https://api.github.com/repos/palanik/commander.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/palanik/commander.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/palanik/commander.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/palanik/commander.js/issues/comments/{number}","contents_url":"https://api.github.com/repos/palanik/commander.js/contents/{+path}","compare_url":"https://api.github.com/repos/palanik/commander.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/palanik/commander.js/merges","archive_url":"https://api.github.com/repos/palanik/commander.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/palanik/commander.js/downloads","issues_url":"https://api.github.com/repos/palanik/commander.js/issues{/number}","pulls_url":"https://api.github.com/repos/palanik/commander.js/pulls{/number}","milestones_url":"https://api.github.com/repos/palanik/commander.js/milestones{/number}","notifications_url":"https://api.github.com/repos/palanik/commander.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/palanik/commander.js/labels{/name}","releases_url":"https://api.github.com/repos/palanik/commander.js/releases{/id}","created_at":"2014-12-31T16:11:34Z","updated_at":"2015-01-30T13:35:48Z","pushed_at":"2015-01-30T13:35:47Z","git_url":"git://github.com/palanik/commander.js.git","ssh_url":"git@github.com:palanik/commander.js.git","clone_url":"https://github.com/palanik/commander.js.git","svn_url":"https://github.com/palanik/commander.js","homepage":"","size":387,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tj:master","ref":"master","sha":"b1ede65bf8752bb027f6638eb1d82ee372bd67c7","user":{"login":"tj","id":25254,"avatar_url":"https://avatars.githubusercontent.com/u/25254?v=3","gravatar_id":"","url":"https://api.github.com/users/tj","html_url":"https://github.com/tj","followers_url":"https://api.github.com/users/tj/followers","following_url":"https://api.github.com/users/tj/following{/other_user}","gists_url":"https://api.github.com/users/tj/gists{/gist_id}","starred_url":"https://api.github.com/users/tj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tj/subscriptions","organizations_url":"https://api.github.com/users/tj/orgs","repos_url":"https://api.github.com/users/tj/repos","events_url":"https://api.github.com/users/tj/events{/privacy}","received_events_url":"https://api.github.com/users/tj/received_events","type":"User","site_admin":false},"repo":{"id":2206953,"name":"commander.js","full_name":"tj/commander.js","owner":{"login":"tj","id":25254,"avatar_url":"https://avatars.githubusercontent.com/u/25254?v=3","gravatar_id":"","url":"https://api.github.com/users/tj","html_url":"https://github.com/tj","followers_url":"https://api.github.com/users/tj/followers","following_url":"https://api.github.com/users/tj/following{/other_user}","gists_url":"https://api.github.com/users/tj/gists{/gist_id}","starred_url":"https://api.github.com/users/tj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tj/subscriptions","organizations_url":"https://api.github.com/users/tj/orgs","repos_url":"https://api.github.com/users/tj/repos","events_url":"https://api.github.com/users/tj/events{/privacy}","received_events_url":"https://api.github.com/users/tj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tj/commander.js","description":"node.js command-line interfaces made easy","fork":false,"url":"https://api.github.com/repos/tj/commander.js","forks_url":"https://api.github.com/repos/tj/commander.js/forks","keys_url":"https://api.github.com/repos/tj/commander.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tj/commander.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tj/commander.js/teams","hooks_url":"https://api.github.com/repos/tj/commander.js/hooks","issue_events_url":"https://api.github.com/repos/tj/commander.js/issues/events{/number}","events_url":"https://api.github.com/repos/tj/commander.js/events","assignees_url":"https://api.github.com/repos/tj/commander.js/assignees{/user}","branches_url":"https://api.github.com/repos/tj/commander.js/branches{/branch}","tags_url":"https://api.github.com/repos/tj/commander.js/tags","blobs_url":"https://api.github.com/repos/tj/commander.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tj/commander.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tj/commander.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/tj/commander.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tj/commander.js/statuses/{sha}","languages_url":"https://api.github.com/repos/tj/commander.js/languages","stargazers_url":"https://api.github.com/repos/tj/commander.js/stargazers","contributors_url":"https://api.github.com/repos/tj/commander.js/contributors","subscribers_url":"https://api.github.com/repos/tj/commander.js/subscribers","subscription_url":"https://api.github.com/repos/tj/commander.js/subscription","commits_url":"https://api.github.com/repos/tj/commander.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/tj/commander.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/tj/commander.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/tj/commander.js/issues/comments/{number}","contents_url":"https://api.github.com/repos/tj/commander.js/contents/{+path}","compare_url":"https://api.github.com/repos/tj/commander.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tj/commander.js/merges","archive_url":"https://api.github.com/repos/tj/commander.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tj/commander.js/downloads","issues_url":"https://api.github.com/repos/tj/commander.js/issues{/number}","pulls_url":"https://api.github.com/repos/tj/commander.js/pulls{/number}","milestones_url":"https://api.github.com/repos/tj/commander.js/milestones{/number}","notifications_url":"https://api.github.com/repos/tj/commander.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tj/commander.js/labels{/name}","releases_url":"https://api.github.com/repos/tj/commander.js/releases{/id}","created_at":"2011-08-14T21:33:58Z","updated_at":"2015-01-29T19:51:58Z","pushed_at":"2015-01-27T14:52:17Z","git_url":"git://github.com/tj/commander.js.git","ssh_url":"git@github.com:tj/commander.js.git","clone_url":"https://github.com/tj/commander.js.git","svn_url":"https://github.com/tj/commander.js","homepage":"","size":1626,"stargazers_count":3283,"watchers_count":3283,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":305,"mirror_url":null,"open_issues_count":74,"forks":305,"open_issues":74,"watchers":3283,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tj/commander.js/pulls/336"},"html":{"href":"https://github.com/tj/commander.js/pull/336"},"issue":{"href":"https://api.github.com/repos/tj/commander.js/issues/336"},"comments":{"href":"https://api.github.com/repos/tj/commander.js/issues/336/comments"},"review_comments":{"href":"https://api.github.com/repos/tj/commander.js/pulls/336/comments"},"review_comment":{"href":"https://api.github.com/repos/tj/commander.js/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/tj/commander.js/pulls/336/commits"},"statuses":{"href":"https://api.github.com/repos/tj/commander.js/statuses/bfec51cad678611a810d48590dd07a8c12daa5a8"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":56,"deletions":2,"changed_files":4}}