{"action":"opened","number":4,"pull_request":{"url":"https://api.github.com/repos/balderdashy/sails-generate-controller/pulls/4","id":84081289,"html_url":"https://github.com/balderdashy/sails-generate-controller/pull/4","diff_url":"https://github.com/balderdashy/sails-generate-controller/pull/4.diff","patch_url":"https://github.com/balderdashy/sails-generate-controller/pull/4.patch","issue_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/issues/4","number":4,"state":"open","locked":false,"title":"Fixed bug #3826","user":{"login":"1001v","id":7795325,"avatar_url":"https://avatars.githubusercontent.com/u/7795325?v=3","gravatar_id":"","url":"https://api.github.com/users/1001v","html_url":"https://github.com/1001v","followers_url":"https://api.github.com/users/1001v/followers","following_url":"https://api.github.com/users/1001v/following{/other_user}","gists_url":"https://api.github.com/users/1001v/gists{/gist_id}","starred_url":"https://api.github.com/users/1001v/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1001v/subscriptions","organizations_url":"https://api.github.com/users/1001v/orgs","repos_url":"https://api.github.com/users/1001v/repos","events_url":"https://api.github.com/users/1001v/events{/privacy}","received_events_url":"https://api.github.com/users/1001v/received_events","type":"User","site_admin":false},"body":"Hi there. Here is fix of [issue #3826 from sails main repo](https://github.com/balderdashy/sails/issues/3826).\r\nI also fixed case, when user provides only controller path without name like this:\r\n`sails generate controller shop/`\r\nGenerator used to create **api/controllers/Shop/Controller.js**, now the invalid usage message will be shown.\r\nThis fork passes all [sails tests](https://github.com/balderdashy/sails/tree/master/test).","created_at":"2016-09-06T08:36:46Z","updated_at":"2016-09-06T08:36:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/pulls/4/commits","review_comments_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/pulls/4/comments","review_comment_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/pulls/comments{/number}","comments_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/issues/4/comments","statuses_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/statuses/8ae558a643917d90bb202bbaac55805edaa30a5c","head":{"label":"1001v:master","ref":"master","sha":"8ae558a643917d90bb202bbaac55805edaa30a5c","user":{"login":"1001v","id":7795325,"avatar_url":"https://avatars.githubusercontent.com/u/7795325?v=3","gravatar_id":"","url":"https://api.github.com/users/1001v","html_url":"https://github.com/1001v","followers_url":"https://api.github.com/users/1001v/followers","following_url":"https://api.github.com/users/1001v/following{/other_user}","gists_url":"https://api.github.com/users/1001v/gists{/gist_id}","starred_url":"https://api.github.com/users/1001v/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1001v/subscriptions","organizations_url":"https://api.github.com/users/1001v/orgs","repos_url":"https://api.github.com/users/1001v/repos","events_url":"https://api.github.com/users/1001v/events{/privacy}","received_events_url":"https://api.github.com/users/1001v/received_events","type":"User","site_admin":false},"repo":{"id":67487882,"name":"sails-generate-controller","full_name":"1001v/sails-generate-controller","owner":{"login":"1001v","id":7795325,"avatar_url":"https://avatars.githubusercontent.com/u/7795325?v=3","gravatar_id":"","url":"https://api.github.com/users/1001v","html_url":"https://github.com/1001v","followers_url":"https://api.github.com/users/1001v/followers","following_url":"https://api.github.com/users/1001v/following{/other_user}","gists_url":"https://api.github.com/users/1001v/gists{/gist_id}","starred_url":"https://api.github.com/users/1001v/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1001v/subscriptions","organizations_url":"https://api.github.com/users/1001v/orgs","repos_url":"https://api.github.com/users/1001v/repos","events_url":"https://api.github.com/users/1001v/events{/privacy}","received_events_url":"https://api.github.com/users/1001v/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/1001v/sails-generate-controller","description":"Generate a controller in a Sails app.","fork":true,"url":"https://api.github.com/repos/1001v/sails-generate-controller","forks_url":"https://api.github.com/repos/1001v/sails-generate-controller/forks","keys_url":"https://api.github.com/repos/1001v/sails-generate-controller/keys{/key_id}","collaborators_url":"https://api.github.com/repos/1001v/sails-generate-controller/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/1001v/sails-generate-controller/teams","hooks_url":"https://api.github.com/repos/1001v/sails-generate-controller/hooks","issue_events_url":"https://api.github.com/repos/1001v/sails-generate-controller/issues/events{/number}","events_url":"https://api.github.com/repos/1001v/sails-generate-controller/events","assignees_url":"https://api.github.com/repos/1001v/sails-generate-controller/assignees{/user}","branches_url":"https://api.github.com/repos/1001v/sails-generate-controller/branches{/branch}","tags_url":"https://api.github.com/repos/1001v/sails-generate-controller/tags","blobs_url":"https://api.github.com/repos/1001v/sails-generate-controller/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/1001v/sails-generate-controller/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/1001v/sails-generate-controller/git/refs{/sha}","trees_url":"https://api.github.com/repos/1001v/sails-generate-controller/git/trees{/sha}","statuses_url":"https://api.github.com/repos/1001v/sails-generate-controller/statuses/{sha}","languages_url":"https://api.github.com/repos/1001v/sails-generate-controller/languages","stargazers_url":"https://api.github.com/repos/1001v/sails-generate-controller/stargazers","contributors_url":"https://api.github.com/repos/1001v/sails-generate-controller/contributors","subscribers_url":"https://api.github.com/repos/1001v/sails-generate-controller/subscribers","subscription_url":"https://api.github.com/repos/1001v/sails-generate-controller/subscription","commits_url":"https://api.github.com/repos/1001v/sails-generate-controller/commits{/sha}","git_commits_url":"https://api.github.com/repos/1001v/sails-generate-controller/git/commits{/sha}","comments_url":"https://api.github.com/repos/1001v/sails-generate-controller/comments{/number}","issue_comment_url":"https://api.github.com/repos/1001v/sails-generate-controller/issues/comments{/number}","contents_url":"https://api.github.com/repos/1001v/sails-generate-controller/contents/{+path}","compare_url":"https://api.github.com/repos/1001v/sails-generate-controller/compare/{base}...{head}","merges_url":"https://api.github.com/repos/1001v/sails-generate-controller/merges","archive_url":"https://api.github.com/repos/1001v/sails-generate-controller/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/1001v/sails-generate-controller/downloads","issues_url":"https://api.github.com/repos/1001v/sails-generate-controller/issues{/number}","pulls_url":"https://api.github.com/repos/1001v/sails-generate-controller/pulls{/number}","milestones_url":"https://api.github.com/repos/1001v/sails-generate-controller/milestones{/number}","notifications_url":"https://api.github.com/repos/1001v/sails-generate-controller/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/1001v/sails-generate-controller/labels{/name}","releases_url":"https://api.github.com/repos/1001v/sails-generate-controller/releases{/id}","deployments_url":"https://api.github.com/repos/1001v/sails-generate-controller/deployments","created_at":"2016-09-06T08:13:14Z","updated_at":"2016-09-06T08:13:15Z","pushed_at":"2016-09-06T08:25:13Z","git_url":"git://github.com/1001v/sails-generate-controller.git","ssh_url":"git@github.com:1001v/sails-generate-controller.git","clone_url":"https://github.com/1001v/sails-generate-controller.git","svn_url":"https://github.com/1001v/sails-generate-controller","homepage":null,"size":28,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"balderdashy:master","ref":"master","sha":"53ef3148b2ad569e5179b29168fd9cbebf765ef6","user":{"login":"balderdashy","id":1445252,"avatar_url":"https://avatars.githubusercontent.com/u/1445252?v=3","gravatar_id":"","url":"https://api.github.com/users/balderdashy","html_url":"https://github.com/balderdashy","followers_url":"https://api.github.com/users/balderdashy/followers","following_url":"https://api.github.com/users/balderdashy/following{/other_user}","gists_url":"https://api.github.com/users/balderdashy/gists{/gist_id}","starred_url":"https://api.github.com/users/balderdashy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balderdashy/subscriptions","organizations_url":"https://api.github.com/users/balderdashy/orgs","repos_url":"https://api.github.com/users/balderdashy/repos","events_url":"https://api.github.com/users/balderdashy/events{/privacy}","received_events_url":"https://api.github.com/users/balderdashy/received_events","type":"Organization","site_admin":false},"repo":{"id":15836740,"name":"sails-generate-controller","full_name":"balderdashy/sails-generate-controller","owner":{"login":"balderdashy","id":1445252,"avatar_url":"https://avatars.githubusercontent.com/u/1445252?v=3","gravatar_id":"","url":"https://api.github.com/users/balderdashy","html_url":"https://github.com/balderdashy","followers_url":"https://api.github.com/users/balderdashy/followers","following_url":"https://api.github.com/users/balderdashy/following{/other_user}","gists_url":"https://api.github.com/users/balderdashy/gists{/gist_id}","starred_url":"https://api.github.com/users/balderdashy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balderdashy/subscriptions","organizations_url":"https://api.github.com/users/balderdashy/orgs","repos_url":"https://api.github.com/users/balderdashy/repos","events_url":"https://api.github.com/users/balderdashy/events{/privacy}","received_events_url":"https://api.github.com/users/balderdashy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/balderdashy/sails-generate-controller","description":"Generate a controller in a Sails app.","fork":false,"url":"https://api.github.com/repos/balderdashy/sails-generate-controller","forks_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/forks","keys_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/keys{/key_id}","collaborators_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/teams","hooks_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/hooks","issue_events_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/issues/events{/number}","events_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/events","assignees_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/assignees{/user}","branches_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/branches{/branch}","tags_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/tags","blobs_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/git/refs{/sha}","trees_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/git/trees{/sha}","statuses_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/statuses/{sha}","languages_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/languages","stargazers_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/stargazers","contributors_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/contributors","subscribers_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/subscribers","subscription_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/subscription","commits_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/commits{/sha}","git_commits_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/git/commits{/sha}","comments_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/comments{/number}","issue_comment_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/issues/comments{/number}","contents_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/contents/{+path}","compare_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/compare/{base}...{head}","merges_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/merges","archive_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/downloads","issues_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/issues{/number}","pulls_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/pulls{/number}","milestones_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/milestones{/number}","notifications_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/labels{/name}","releases_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/releases{/id}","deployments_url":"https://api.github.com/repos/balderdashy/sails-generate-controller/deployments","created_at":"2014-01-12T04:58:57Z","updated_at":"2016-04-03T19:34:08Z","pushed_at":"2016-02-28T15:42:58Z","git_url":"git://github.com/balderdashy/sails-generate-controller.git","ssh_url":"git@github.com:balderdashy/sails-generate-controller.git","clone_url":"https://github.com/balderdashy/sails-generate-controller.git","svn_url":"https://github.com/balderdashy/sails-generate-controller","homepage":null,"size":28,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":2,"forks":6,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/balderdashy/sails-generate-controller/pulls/4"},"html":{"href":"https://github.com/balderdashy/sails-generate-controller/pull/4"},"issue":{"href":"https://api.github.com/repos/balderdashy/sails-generate-controller/issues/4"},"comments":{"href":"https://api.github.com/repos/balderdashy/sails-generate-controller/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/balderdashy/sails-generate-controller/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/balderdashy/sails-generate-controller/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/balderdashy/sails-generate-controller/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/balderdashy/sails-generate-controller/statuses/8ae558a643917d90bb202bbaac55805edaa30a5c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":3,"changed_files":1}}
{"actor":{"display_login":"1001v"}}