{"action":"opened","number":60,"pull_request":{"url":"https://api.github.com/repos/deskpro/deskpro-components/pulls/60","id":130621436,"html_url":"https://github.com/deskpro/deskpro-components/pull/60","diff_url":"https://github.com/deskpro/deskpro-components/pull/60.diff","patch_url":"https://github.com/deskpro/deskpro-components/pull/60.patch","issue_url":"https://api.github.com/repos/deskpro/deskpro-components/issues/60","number":60,"state":"open","locked":false,"title":"Adds component code generator","user":{"login":"headzoo","id":707209,"avatar_url":"https://avatars7.githubusercontent.com/u/707209?v=4","gravatar_id":"","url":"https://api.github.com/users/headzoo","html_url":"https://github.com/headzoo","followers_url":"https://api.github.com/users/headzoo/followers","following_url":"https://api.github.com/users/headzoo/following{/other_user}","gists_url":"https://api.github.com/users/headzoo/gists{/gist_id}","starred_url":"https://api.github.com/users/headzoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/headzoo/subscriptions","organizations_url":"https://api.github.com/users/headzoo/orgs","repos_url":"https://api.github.com/users/headzoo/repos","events_url":"https://api.github.com/users/headzoo/events{/privacy}","received_events_url":"https://api.github.com/users/headzoo/received_events","type":"User","site_admin":false},"body":"I'm getting a little tired of writing boilerplate code to create a new component, so I created a component code generator.\r\n\r\nRun it using the command:\r\n\r\n```\r\nbin/generate Forms/MyComponent\r\n```\r\n\r\nThe generator will:\r\n\r\n* Create a component skeleton file in `src/Components/Forms/MyComponent.jsx`\r\n* Update the manifest file at `src/Components/Forms/index.js`\r\n* Create a story skeleton file in `tests/storybook/components/forms/my_component.jsx`\r\n* Update the storybook manifest file at `tests/storybook/index.js`\r\n","created_at":"2017-07-14T16:05:33Z","updated_at":"2017-07-14T16:05:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/deskpro/deskpro-components/pulls/60/commits","review_comments_url":"https://api.github.com/repos/deskpro/deskpro-components/pulls/60/comments","review_comment_url":"https://api.github.com/repos/deskpro/deskpro-components/pulls/comments{/number}","comments_url":"https://api.github.com/repos/deskpro/deskpro-components/issues/60/comments","statuses_url":"https://api.github.com/repos/deskpro/deskpro-components/statuses/2508749005ba65d18f02eb63e0982ca7df612bf3","head":{"label":"deskpro:component-generator","ref":"component-generator","sha":"2508749005ba65d18f02eb63e0982ca7df612bf3","user":{"login":"deskpro","id":560182,"avatar_url":"https://avatars4.githubusercontent.com/u/560182?v=4","gravatar_id":"","url":"https://api.github.com/users/deskpro","html_url":"https://github.com/deskpro","followers_url":"https://api.github.com/users/deskpro/followers","following_url":"https://api.github.com/users/deskpro/following{/other_user}","gists_url":"https://api.github.com/users/deskpro/gists{/gist_id}","starred_url":"https://api.github.com/users/deskpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deskpro/subscriptions","organizations_url":"https://api.github.com/users/deskpro/orgs","repos_url":"https://api.github.com/users/deskpro/repos","events_url":"https://api.github.com/users/deskpro/events{/privacy}","received_events_url":"https://api.github.com/users/deskpro/received_events","type":"Organization","site_admin":false},"repo":{"id":91003725,"name":"deskpro-components","full_name":"deskpro/deskpro-components","owner":{"login":"deskpro","id":560182,"avatar_url":"https://avatars4.githubusercontent.com/u/560182?v=4","gravatar_id":"","url":"https://api.github.com/users/deskpro","html_url":"https://github.com/deskpro","followers_url":"https://api.github.com/users/deskpro/followers","following_url":"https://api.github.com/users/deskpro/following{/other_user}","gists_url":"https://api.github.com/users/deskpro/gists{/gist_id}","starred_url":"https://api.github.com/users/deskpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deskpro/subscriptions","organizations_url":"https://api.github.com/users/deskpro/orgs","repos_url":"https://api.github.com/users/deskpro/repos","events_url":"https://api.github.com/users/deskpro/events{/privacy}","received_events_url":"https://api.github.com/users/deskpro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/deskpro/deskpro-components","description":null,"fork":false,"url":"https://api.github.com/repos/deskpro/deskpro-components","forks_url":"https://api.github.com/repos/deskpro/deskpro-components/forks","keys_url":"https://api.github.com/repos/deskpro/deskpro-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deskpro/deskpro-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deskpro/deskpro-components/teams","hooks_url":"https://api.github.com/repos/deskpro/deskpro-components/hooks","issue_events_url":"https://api.github.com/repos/deskpro/deskpro-components/issues/events{/number}","events_url":"https://api.github.com/repos/deskpro/deskpro-components/events","assignees_url":"https://api.github.com/repos/deskpro/deskpro-components/assignees{/user}","branches_url":"https://api.github.com/repos/deskpro/deskpro-components/branches{/branch}","tags_url":"https://api.github.com/repos/deskpro/deskpro-components/tags","blobs_url":"https://api.github.com/repos/deskpro/deskpro-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deskpro/deskpro-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deskpro/deskpro-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/deskpro/deskpro-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deskpro/deskpro-components/statuses/{sha}","languages_url":"https://api.github.com/repos/deskpro/deskpro-components/languages","stargazers_url":"https://api.github.com/repos/deskpro/deskpro-components/stargazers","contributors_url":"https://api.github.com/repos/deskpro/deskpro-components/contributors","subscribers_url":"https://api.github.com/repos/deskpro/deskpro-components/subscribers","subscription_url":"https://api.github.com/repos/deskpro/deskpro-components/subscription","commits_url":"https://api.github.com/repos/deskpro/deskpro-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/deskpro/deskpro-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/deskpro/deskpro-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/deskpro/deskpro-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/deskpro/deskpro-components/contents/{+path}","compare_url":"https://api.github.com/repos/deskpro/deskpro-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deskpro/deskpro-components/merges","archive_url":"https://api.github.com/repos/deskpro/deskpro-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deskpro/deskpro-components/downloads","issues_url":"https://api.github.com/repos/deskpro/deskpro-components/issues{/number}","pulls_url":"https://api.github.com/repos/deskpro/deskpro-components/pulls{/number}","milestones_url":"https://api.github.com/repos/deskpro/deskpro-components/milestones{/number}","notifications_url":"https://api.github.com/repos/deskpro/deskpro-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deskpro/deskpro-components/labels{/name}","releases_url":"https://api.github.com/repos/deskpro/deskpro-components/releases{/id}","deployments_url":"https://api.github.com/repos/deskpro/deskpro-components/deployments","created_at":"2017-05-11T17:03:59Z","updated_at":"2017-07-11T09:14:31Z","pushed_at":"2017-07-14T16:02:21Z","git_url":"git://github.com/deskpro/deskpro-components.git","ssh_url":"git@github.com:deskpro/deskpro-components.git","clone_url":"https://github.com/deskpro/deskpro-components.git","svn_url":"https://github.com/deskpro/deskpro-components","homepage":null,"size":2290,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":2,"default_branch":"master"}},"base":{"label":"deskpro:master","ref":"master","sha":"0d8914186f41ff59f3f45e1d93c54dc85488ef04","user":{"login":"deskpro","id":560182,"avatar_url":"https://avatars4.githubusercontent.com/u/560182?v=4","gravatar_id":"","url":"https://api.github.com/users/deskpro","html_url":"https://github.com/deskpro","followers_url":"https://api.github.com/users/deskpro/followers","following_url":"https://api.github.com/users/deskpro/following{/other_user}","gists_url":"https://api.github.com/users/deskpro/gists{/gist_id}","starred_url":"https://api.github.com/users/deskpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deskpro/subscriptions","organizations_url":"https://api.github.com/users/deskpro/orgs","repos_url":"https://api.github.com/users/deskpro/repos","events_url":"https://api.github.com/users/deskpro/events{/privacy}","received_events_url":"https://api.github.com/users/deskpro/received_events","type":"Organization","site_admin":false},"repo":{"id":91003725,"name":"deskpro-components","full_name":"deskpro/deskpro-components","owner":{"login":"deskpro","id":560182,"avatar_url":"https://avatars4.githubusercontent.com/u/560182?v=4","gravatar_id":"","url":"https://api.github.com/users/deskpro","html_url":"https://github.com/deskpro","followers_url":"https://api.github.com/users/deskpro/followers","following_url":"https://api.github.com/users/deskpro/following{/other_user}","gists_url":"https://api.github.com/users/deskpro/gists{/gist_id}","starred_url":"https://api.github.com/users/deskpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deskpro/subscriptions","organizations_url":"https://api.github.com/users/deskpro/orgs","repos_url":"https://api.github.com/users/deskpro/repos","events_url":"https://api.github.com/users/deskpro/events{/privacy}","received_events_url":"https://api.github.com/users/deskpro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/deskpro/deskpro-components","description":null,"fork":false,"url":"https://api.github.com/repos/deskpro/deskpro-components","forks_url":"https://api.github.com/repos/deskpro/deskpro-components/forks","keys_url":"https://api.github.com/repos/deskpro/deskpro-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deskpro/deskpro-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deskpro/deskpro-components/teams","hooks_url":"https://api.github.com/repos/deskpro/deskpro-components/hooks","issue_events_url":"https://api.github.com/repos/deskpro/deskpro-components/issues/events{/number}","events_url":"https://api.github.com/repos/deskpro/deskpro-components/events","assignees_url":"https://api.github.com/repos/deskpro/deskpro-components/assignees{/user}","branches_url":"https://api.github.com/repos/deskpro/deskpro-components/branches{/branch}","tags_url":"https://api.github.com/repos/deskpro/deskpro-components/tags","blobs_url":"https://api.github.com/repos/deskpro/deskpro-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deskpro/deskpro-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deskpro/deskpro-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/deskpro/deskpro-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deskpro/deskpro-components/statuses/{sha}","languages_url":"https://api.github.com/repos/deskpro/deskpro-components/languages","stargazers_url":"https://api.github.com/repos/deskpro/deskpro-components/stargazers","contributors_url":"https://api.github.com/repos/deskpro/deskpro-components/contributors","subscribers_url":"https://api.github.com/repos/deskpro/deskpro-components/subscribers","subscription_url":"https://api.github.com/repos/deskpro/deskpro-components/subscription","commits_url":"https://api.github.com/repos/deskpro/deskpro-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/deskpro/deskpro-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/deskpro/deskpro-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/deskpro/deskpro-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/deskpro/deskpro-components/contents/{+path}","compare_url":"https://api.github.com/repos/deskpro/deskpro-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deskpro/deskpro-components/merges","archive_url":"https://api.github.com/repos/deskpro/deskpro-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deskpro/deskpro-components/downloads","issues_url":"https://api.github.com/repos/deskpro/deskpro-components/issues{/number}","pulls_url":"https://api.github.com/repos/deskpro/deskpro-components/pulls{/number}","milestones_url":"https://api.github.com/repos/deskpro/deskpro-components/milestones{/number}","notifications_url":"https://api.github.com/repos/deskpro/deskpro-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deskpro/deskpro-components/labels{/name}","releases_url":"https://api.github.com/repos/deskpro/deskpro-components/releases{/id}","deployments_url":"https://api.github.com/repos/deskpro/deskpro-components/deployments","created_at":"2017-05-11T17:03:59Z","updated_at":"2017-07-11T09:14:31Z","pushed_at":"2017-07-14T16:02:21Z","git_url":"git://github.com/deskpro/deskpro-components.git","ssh_url":"git@github.com:deskpro/deskpro-components.git","clone_url":"https://github.com/deskpro/deskpro-components.git","svn_url":"https://github.com/deskpro/deskpro-components","homepage":null,"size":2290,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/deskpro/deskpro-components/pulls/60"},"html":{"href":"https://github.com/deskpro/deskpro-components/pull/60"},"issue":{"href":"https://api.github.com/repos/deskpro/deskpro-components/issues/60"},"comments":{"href":"https://api.github.com/repos/deskpro/deskpro-components/issues/60/comments"},"review_comments":{"href":"https://api.github.com/repos/deskpro/deskpro-components/pulls/60/comments"},"review_comment":{"href":"https://api.github.com/repos/deskpro/deskpro-components/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/deskpro/deskpro-components/pulls/60/commits"},"statuses":{"href":"https://api.github.com/repos/deskpro/deskpro-components/statuses/2508749005ba65d18f02eb63e0982ca7df612bf3"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":408,"deletions":2,"changed_files":9}}
{"actor":{"display_login":"headzoo"}}