GitHub PullRequestEvent at 2014-05-05 16:12:12
Repository: home-automation
Actor: r3b-fish
Payload: {"action":"closed","number":31,"pull_request":{"url":"https://api.github.com/repos/Z-Wave-Me/home-automation/pulls/31","id":15461173,"html_url":"https://github.com/Z-Wave-Me/home-automation/pull/31","diff_url":"https://github.com/Z-Wave-Me/home-automation/pull/31.diff","patch_url":"https://github.com/Z-Wave-Me/home-automation/pull/31.patch","issue_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/issues/31","number":31,"state":"closed","title":"Adding a router layer to web requests","user":{"login":"peaches","id":545898,"avatar_url":"https://avatars.githubusercontent.com/u/545898?","gravatar_id":"3dd05e380369a9f36698b0ffb25e5ee4","url":"https://api.github.com/users/peaches","html_url":"https://github.com/peaches","followers_url":"https://api.github.com/users/peaches/followers","following_url":"https://api.github.com/users/peaches/following{/other_user}","gists_url":"https://api.github.com/users/peaches/gists{/gist_id}","starred_url":"https://api.github.com/users/peaches/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peaches/subscriptions","organizations_url":"https://api.github.com/users/peaches/orgs","repos_url":"https://api.github.com/users/peaches/repos","events_url":"https://api.github.com/users/peaches/events{/privacy}","received_events_url":"https://api.github.com/users/peaches/received_events","type":"User","site_admin":false},"body":"NOTE: I'm not sure what the coding standard is, let me know so\r\nI can change my stuff.\r\n\r\nThis is hopefully to simplify future additions of routes to the API.\r\nIf we had a more comprehensive set of routes, it may make sense to\r\nswitch to a library for route handling. Otherwise this is a simple\r\nreplacement that aims to keep backwards compatibility with the\r\nexisting routes.\r\n\r\nAt the moment, the router supports both the simple paths and the\r\npatterned paths. A simple match returns:\r\n\r\n    {\r\n      handler: handlerFunc,\r\n      params: []\r\n    }\r\n\r\nOn the other hand, the patterned matcher returns the handler function\r\nand the matched URL parameters, so if we define a url as:\r\n\r\n    /foo/:param1/bar/:param2\r\n\r\nThe matched route for /foo/abcde/bar/hijkl would be:\r\n\r\n    {\r\n      handler: handlerFunc,\r\n      params: [\"abcde\", \"hijkl\"]\r\n    }","created_at":"2014-05-03T09:27:31Z","updated_at":"2014-05-05T16:12:12Z","closed_at":"2014-05-05T16:12:12Z","merged_at":null,"merge_commit_sha":"8be5a0e8c850609a10bc776787b59b4c4c03ad09","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/pulls/31/commits","review_comments_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/pulls/31/comments","review_comment_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/issues/31/comments","statuses_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/statuses/c068081abe9305ba815a5ec60865526585d3cbf1","head":{"label":"peaches:ak-add_router","ref":"ak-add_router","sha":"c068081abe9305ba815a5ec60865526585d3cbf1","user":{"login":"peaches","id":545898,"avatar_url":"https://avatars.githubusercontent.com/u/545898?","gravatar_id":"3dd05e380369a9f36698b0ffb25e5ee4","url":"https://api.github.com/users/peaches","html_url":"https://github.com/peaches","followers_url":"https://api.github.com/users/peaches/followers","following_url":"https://api.github.com/users/peaches/following{/other_user}","gists_url":"https://api.github.com/users/peaches/gists{/gist_id}","starred_url":"https://api.github.com/users/peaches/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peaches/subscriptions","organizations_url":"https://api.github.com/users/peaches/orgs","repos_url":"https://api.github.com/users/peaches/repos","events_url":"https://api.github.com/users/peaches/events{/privacy}","received_events_url":"https://api.github.com/users/peaches/received_events","type":"User","site_admin":false},"repo":{"id":19097657,"name":"home-automation","full_name":"peaches/home-automation","owner":{"login":"peaches","id":545898,"avatar_url":"https://avatars.githubusercontent.com/u/545898?","gravatar_id":"3dd05e380369a9f36698b0ffb25e5ee4","url":"https://api.github.com/users/peaches","html_url":"https://github.com/peaches","followers_url":"https://api.github.com/users/peaches/followers","following_url":"https://api.github.com/users/peaches/following{/other_user}","gists_url":"https://api.github.com/users/peaches/gists{/gist_id}","starred_url":"https://api.github.com/users/peaches/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peaches/subscriptions","organizations_url":"https://api.github.com/users/peaches/orgs","repos_url":"https://api.github.com/users/peaches/repos","events_url":"https://api.github.com/users/peaches/events{/privacy}","received_events_url":"https://api.github.com/users/peaches/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/peaches/home-automation","description":"Z-Way Home Automation engine","fork":true,"url":"https://api.github.com/repos/peaches/home-automation","forks_url":"https://api.github.com/repos/peaches/home-automation/forks","keys_url":"https://api.github.com/repos/peaches/home-automation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/peaches/home-automation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/peaches/home-automation/teams","hooks_url":"https://api.github.com/repos/peaches/home-automation/hooks","issue_events_url":"https://api.github.com/repos/peaches/home-automation/issues/events{/number}","events_url":"https://api.github.com/repos/peaches/home-automation/events","assignees_url":"https://api.github.com/repos/peaches/home-automation/assignees{/user}","branches_url":"https://api.github.com/repos/peaches/home-automation/branches{/branch}","tags_url":"https://api.github.com/repos/peaches/home-automation/tags","blobs_url":"https://api.github.com/repos/peaches/home-automation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/peaches/home-automation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/peaches/home-automation/git/refs{/sha}","trees_url":"https://api.github.com/repos/peaches/home-automation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/peaches/home-automation/statuses/{sha}","languages_url":"https://api.github.com/repos/peaches/home-automation/languages","stargazers_url":"https://api.github.com/repos/peaches/home-automation/stargazers","contributors_url":"https://api.github.com/repos/peaches/home-automation/contributors","subscribers_url":"https://api.github.com/repos/peaches/home-automation/subscribers","subscription_url":"https://api.github.com/repos/peaches/home-automation/subscription","commits_url":"https://api.github.com/repos/peaches/home-automation/commits{/sha}","git_commits_url":"https://api.github.com/repos/peaches/home-automation/git/commits{/sha}","comments_url":"https://api.github.com/repos/peaches/home-automation/comments{/number}","issue_comment_url":"https://api.github.com/repos/peaches/home-automation/issues/comments/{number}","contents_url":"https://api.github.com/repos/peaches/home-automation/contents/{+path}","compare_url":"https://api.github.com/repos/peaches/home-automation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/peaches/home-automation/merges","archive_url":"https://api.github.com/repos/peaches/home-automation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/peaches/home-automation/downloads","issues_url":"https://api.github.com/repos/peaches/home-automation/issues{/number}","pulls_url":"https://api.github.com/repos/peaches/home-automation/pulls{/number}","milestones_url":"https://api.github.com/repos/peaches/home-automation/milestones{/number}","notifications_url":"https://api.github.com/repos/peaches/home-automation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/peaches/home-automation/labels{/name}","releases_url":"https://api.github.com/repos/peaches/home-automation/releases{/id}","created_at":"2014-04-24T06:05:46Z","updated_at":"2014-05-05T16:12:12Z","pushed_at":"2014-05-04T07:03:32Z","git_url":"git://github.com/peaches/home-automation.git","ssh_url":"git@github.com:peaches/home-automation.git","clone_url":"https://github.com/peaches/home-automation.git","svn_url":"https://github.com/peaches/home-automation","homepage":null,"size":5306,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Z-Wave-Me:RewriteStructure","ref":"RewriteStructure","sha":"ff1e0e4c825f43e7fd7832bf90230c6c225e1df2","user":{"login":"Z-Wave-Me","id":3664444,"avatar_url":"https://avatars.githubusercontent.com/u/3664444?","gravatar_id":"b295d55b06fc2c8627e8ee464b95f016","url":"https://api.github.com/users/Z-Wave-Me","html_url":"https://github.com/Z-Wave-Me","followers_url":"https://api.github.com/users/Z-Wave-Me/followers","following_url":"https://api.github.com/users/Z-Wave-Me/following{/other_user}","gists_url":"https://api.github.com/users/Z-Wave-Me/gists{/gist_id}","starred_url":"https://api.github.com/users/Z-Wave-Me/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Z-Wave-Me/subscriptions","organizations_url":"https://api.github.com/users/Z-Wave-Me/orgs","repos_url":"https://api.github.com/users/Z-Wave-Me/repos","events_url":"https://api.github.com/users/Z-Wave-Me/events{/privacy}","received_events_url":"https://api.github.com/users/Z-Wave-Me/received_events","type":"Organization","site_admin":false},"repo":{"id":12211315,"name":"home-automation","full_name":"Z-Wave-Me/home-automation","owner":{"login":"Z-Wave-Me","id":3664444,"avatar_url":"https://avatars.githubusercontent.com/u/3664444?","gravatar_id":"b295d55b06fc2c8627e8ee464b95f016","url":"https://api.github.com/users/Z-Wave-Me","html_url":"https://github.com/Z-Wave-Me","followers_url":"https://api.github.com/users/Z-Wave-Me/followers","following_url":"https://api.github.com/users/Z-Wave-Me/following{/other_user}","gists_url":"https://api.github.com/users/Z-Wave-Me/gists{/gist_id}","starred_url":"https://api.github.com/users/Z-Wave-Me/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Z-Wave-Me/subscriptions","organizations_url":"https://api.github.com/users/Z-Wave-Me/orgs","repos_url":"https://api.github.com/users/Z-Wave-Me/repos","events_url":"https://api.github.com/users/Z-Wave-Me/events{/privacy}","received_events_url":"https://api.github.com/users/Z-Wave-Me/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Z-Wave-Me/home-automation","description":"Z-Way Home Automation engine","fork":false,"url":"https://api.github.com/repos/Z-Wave-Me/home-automation","forks_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/forks","keys_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/teams","hooks_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/hooks","issue_events_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/issues/events{/number}","events_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/events","assignees_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/assignees{/user}","branches_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/branches{/branch}","tags_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/tags","blobs_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/git/refs{/sha}","trees_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/statuses/{sha}","languages_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/languages","stargazers_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/stargazers","contributors_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/contributors","subscribers_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/subscribers","subscription_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/subscription","commits_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/commits{/sha}","git_commits_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/git/commits{/sha}","comments_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/comments{/number}","issue_comment_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/issues/comments/{number}","contents_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/contents/{+path}","compare_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/merges","archive_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/downloads","issues_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/issues{/number}","pulls_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/pulls{/number}","milestones_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/milestones{/number}","notifications_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/labels{/name}","releases_url":"https://api.github.com/repos/Z-Wave-Me/home-automation/releases{/id}","created_at":"2013-08-19T08:36:54Z","updated_at":"2014-05-05T16:12:11Z","pushed_at":"2014-05-05T16:12:12Z","git_url":"git://github.com/Z-Wave-Me/home-automation.git","ssh_url":"git@github.com:Z-Wave-Me/home-automation.git","clone_url":"https://github.com/Z-Wave-Me/home-automation.git","svn_url":"https://github.com/Z-Wave-Me/home-automation","homepage":null,"size":8266,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":13,"mirror_url":null,"open_issues_count":10,"forks":13,"open_issues":10,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Z-Wave-Me/home-automation/pulls/31"},"html":{"href":"https://github.com/Z-Wave-Me/home-automation/pull/31"},"issue":{"href":"https://api.github.com/repos/Z-Wave-Me/home-automation/issues/31"},"comments":{"href":"https://api.github.com/repos/Z-Wave-Me/home-automation/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/Z-Wave-Me/home-automation/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/Z-Wave-Me/home-automation/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Z-Wave-Me/home-automation/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/Z-Wave-Me/home-automation/statuses/c068081abe9305ba815a5ec60865526585d3cbf1"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":1,"review_comments":2,"commits":1,"additions":216,"deletions":40,"changed_files":4}}