payload: {"action":"opened","number":634,"pull_request":{"url":"https://api.github.com/repos/openfaas/faas-cli/pulls/634","id":275178154,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjc1MTc4MTU0","html_url":"https://github.com/openfaas/faas-cli/pull/634","diff_url":"https://github.com/openfaas/faas-cli/pull/634.diff","patch_url":"https://github.com/openfaas/faas-cli/pull/634.patch","issue_url":"https://api.github.com/repos/openfaas/faas-cli/issues/634","number":634,"state":"open","locked":false,"title":"Allow --prefix flag for new command","user":{"login":"alexellis","id":6358735,"node_id":"MDQ6VXNlcjYzNTg3MzU=","avatar_url":"https://avatars1.githubusercontent.com/u/6358735?v=4","gravatar_id":"","url":"https://api.github.com/users/alexellis","html_url":"https://github.com/alexellis","followers_url":"https://api.github.com/users/alexellis/followers","following_url":"https://api.github.com/users/alexellis/following{/other_user}","gists_url":"https://api.github.com/users/alexellis/gists{/gist_id}","starred_url":"https://api.github.com/users/alexellis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexellis/subscriptions","organizations_url":"https://api.github.com/users/alexellis/orgs","repos_url":"https://api.github.com/users/alexellis/repos","events_url":"https://api.github.com/users/alexellis/events{/privacy}","received_events_url":"https://api.github.com/users/alexellis/received_events","type":"User","site_admin":false},"body":"Signed-off-by: Alex Ellis <alexellis2@gmail.com>\r\n\r\n<!--- Provide a general summary of your changes in the Title above -->\r\n\r\n## Description\r\n<!--- Describe your changes in detail -->\r\n\r\nAllow --prefix flag for new command\r\n\r\n## Motivation and Context\r\n<!--- Why is this change required? What problem does it solve? -->\r\n<!--- If it fixes an open issue, please link to the issue here. -->\r\n- [x] I have raised an issue to propose this change ([required](https://github.com/openfaas/faas/blob/master/CONTRIBUTING.md))\r\nAs requested in #550 - this allows a prefix to be supplied\r\nwhen generating new functions.\r\n\r\n## How Has This Been Tested?\r\n<!--- Please describe in detail how you tested your changes. -->\r\n<!--- Include details of your testing environment, and the tests you ran to -->\r\n<!--- see how your change affects other areas of the code, etc. -->\r\n\r\nTested on MacOS with a local build and with 3 additional\r\nunit tests.\r\n\r\n## Types of changes\r\n<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->\r\n- [ ] Bug fix (non-breaking change which fixes an issue)\r\n- [x] New feature (non-breaking change which adds functionality)\r\n- [ ] Breaking change (fix or feature that would cause existing functionality to change)\r\n\r\n## Checklist:\r\n<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->\r\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n- [x] My code follows the code style of this project.\r\n- [x] My change requires a change to the documentation.\r\n- [ ] I have updated the documentation accordingly.\r\n- [x] I've read the [CONTRIBUTION](https://github.com/openfaas/faas/blob/master/CONTRIBUTING.md) guide\r\n- [x] I have signed-off my commits with `git commit -s`\r\n- [x] I have added tests to cover my changes.\r\n- [x] All new and existing tests passed.","created_at":"2019-05-01T22:32:26Z","updated_at":"2019-05-01T22:32:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/openfaas/faas-cli/pulls/634/commits","review_comments_url":"https://api.github.com/repos/openfaas/faas-cli/pulls/634/comments","review_comment_url":"https://api.github.com/repos/openfaas/faas-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openfaas/faas-cli/issues/634/comments","statuses_url":"https://api.github.com/repos/openfaas/faas-cli/statuses/cab38f40eaf0002ce31d699e4403cf3c18744671","head":{"label":"openfaas:alexellis/add_new_prefix","ref":"alexellis/add_new_prefix","sha":"cab38f40eaf0002ce31d699e4403cf3c18744671","user":{"login":"openfaas","id":27013154,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3MDEzMTU0","avatar_url":"https://avatars3.githubusercontent.com/u/27013154?v=4","gravatar_id":"","url":"https://api.github.com/users/openfaas","html_url":"https://github.com/openfaas","followers_url":"https://api.github.com/users/openfaas/followers","following_url":"https://api.github.com/users/openfaas/following{/other_user}","gists_url":"https://api.github.com/users/openfaas/gists{/gist_id}","starred_url":"https://api.github.com/users/openfaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfaas/subscriptions","organizations_url":"https://api.github.com/users/openfaas/orgs","repos_url":"https://api.github.com/users/openfaas/repos","events_url":"https://api.github.com/users/openfaas/events{/privacy}","received_events_url":"https://api.github.com/users/openfaas/received_events","type":"Organization","site_admin":false},"repo":{"id":87833671,"node_id":"MDEwOlJlcG9zaXRvcnk4NzgzMzY3MQ==","name":"faas-cli","full_name":"openfaas/faas-cli","private":false,"owner":{"login":"openfaas","id":27013154,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3MDEzMTU0","avatar_url":"https://avatars3.githubusercontent.com/u/27013154?v=4","gravatar_id":"","url":"https://api.github.com/users/openfaas","html_url":"https://github.com/openfaas","followers_url":"https://api.github.com/users/openfaas/followers","following_url":"https://api.github.com/users/openfaas/following{/other_user}","gists_url":"https://api.github.com/users/openfaas/gists{/gist_id}","starred_url":"https://api.github.com/users/openfaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfaas/subscriptions","organizations_url":"https://api.github.com/users/openfaas/orgs","repos_url":"https://api.github.com/users/openfaas/repos","events_url":"https://api.github.com/users/openfaas/events{/privacy}","received_events_url":"https://api.github.com/users/openfaas/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/openfaas/faas-cli","description":"Official CLI for OpenFaaS","fork":false,"url":"https://api.github.com/repos/openfaas/faas-cli","forks_url":"https://api.github.com/repos/openfaas/faas-cli/forks","keys_url":"https://api.github.com/repos/openfaas/faas-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openfaas/faas-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openfaas/faas-cli/teams","hooks_url":"https://api.github.com/repos/openfaas/faas-cli/hooks","issue_events_url":"https://api.github.com/repos/openfaas/faas-cli/issues/events{/number}","events_url":"https://api.github.com/repos/openfaas/faas-cli/events","assignees_url":"https://api.github.com/repos/openfaas/faas-cli/assignees{/user}","branches_url":"https://api.github.com/repos/openfaas/faas-cli/branches{/branch}","tags_url":"https://api.github.com/repos/openfaas/faas-cli/tags","blobs_url":"https://api.github.com/repos/openfaas/faas-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openfaas/faas-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openfaas/faas-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/openfaas/faas-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openfaas/faas-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/openfaas/faas-cli/languages","stargazers_url":"https://api.github.com/repos/openfaas/faas-cli/stargazers","contributors_url":"https://api.github.com/repos/openfaas/faas-cli/contributors","subscribers_url":"https://api.github.com/repos/openfaas/faas-cli/subscribers","subscription_url":"https://api.github.com/repos/openfaas/faas-cli/subscription","commits_url":"https://api.github.com/repos/openfaas/faas-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/openfaas/faas-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/openfaas/faas-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/openfaas/faas-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/openfaas/faas-cli/contents/{+path}","compare_url":"https://api.github.com/repos/openfaas/faas-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openfaas/faas-cli/merges","archive_url":"https://api.github.com/repos/openfaas/faas-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openfaas/faas-cli/downloads","issues_url":"https://api.github.com/repos/openfaas/faas-cli/issues{/number}","pulls_url":"https://api.github.com/repos/openfaas/faas-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/openfaas/faas-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/openfaas/faas-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openfaas/faas-cli/labels{/name}","releases_url":"https://api.github.com/repos/openfaas/faas-cli/releases{/id}","deployments_url":"https://api.github.com/repos/openfaas/faas-cli/deployments","created_at":"2017-04-10T16:33:04Z","updated_at":"2019-04-30T14:33:37Z","pushed_at":"2019-05-01T22:31:43Z","git_url":"git://github.com/openfaas/faas-cli.git","ssh_url":"git@github.com:openfaas/faas-cli.git","clone_url":"https://github.com/openfaas/faas-cli.git","svn_url":"https://github.com/openfaas/faas-cli","homepage":"https://docs.openfaas.com","size":17554,"stargazers_count":384,"watchers_count":384,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":128,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":45,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":128,"open_issues":45,"watchers":384,"default_branch":"master"}},"base":{"label":"openfaas:master","ref":"master","sha":"62c00fbf9eac1a14b1e3121bacb6d767ebc64fe0","user":{"login":"openfaas","id":27013154,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3MDEzMTU0","avatar_url":"https://avatars3.githubusercontent.com/u/27013154?v=4","gravatar_id":"","url":"https://api.github.com/users/openfaas","html_url":"https://github.com/openfaas","followers_url":"https://api.github.com/users/openfaas/followers","following_url":"https://api.github.com/users/openfaas/following{/other_user}","gists_url":"https://api.github.com/users/openfaas/gists{/gist_id}","starred_url":"https://api.github.com/users/openfaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfaas/subscriptions","organizations_url":"https://api.github.com/users/openfaas/orgs","repos_url":"https://api.github.com/users/openfaas/repos","events_url":"https://api.github.com/users/openfaas/events{/privacy}","received_events_url":"https://api.github.com/users/openfaas/received_events","type":"Organization","site_admin":false},"repo":{"id":87833671,"node_id":"MDEwOlJlcG9zaXRvcnk4NzgzMzY3MQ==","name":"faas-cli","full_name":"openfaas/faas-cli","private":false,"owner":{"login":"openfaas","id":27013154,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3MDEzMTU0","avatar_url":"https://avatars3.githubusercontent.com/u/27013154?v=4","gravatar_id":"","url":"https://api.github.com/users/openfaas","html_url":"https://github.com/openfaas","followers_url":"https://api.github.com/users/openfaas/followers","following_url":"https://api.github.com/users/openfaas/following{/other_user}","gists_url":"https://api.github.com/users/openfaas/gists{/gist_id}","starred_url":"https://api.github.com/users/openfaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfaas/subscriptions","organizations_url":"https://api.github.com/users/openfaas/orgs","repos_url":"https://api.github.com/users/openfaas/repos","events_url":"https://api.github.com/users/openfaas/events{/privacy}","received_events_url":"https://api.github.com/users/openfaas/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/openfaas/faas-cli","description":"Official CLI for OpenFaaS","fork":false,"url":"https://api.github.com/repos/openfaas/faas-cli","forks_url":"https://api.github.com/repos/openfaas/faas-cli/forks","keys_url":"https://api.github.com/repos/openfaas/faas-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openfaas/faas-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openfaas/faas-cli/teams","hooks_url":"https://api.github.com/repos/openfaas/faas-cli/hooks","issue_events_url":"https://api.github.com/repos/openfaas/faas-cli/issues/events{/number}","events_url":"https://api.github.com/repos/openfaas/faas-cli/events","assignees_url":"https://api.github.com/repos/openfaas/faas-cli/assignees{/user}","branches_url":"https://api.github.com/repos/openfaas/faas-cli/branches{/branch}","tags_url":"https://api.github.com/repos/openfaas/faas-cli/tags","blobs_url":"https://api.github.com/repos/openfaas/faas-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openfaas/faas-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openfaas/faas-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/openfaas/faas-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openfaas/faas-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/openfaas/faas-cli/languages","stargazers_url":"https://api.github.com/repos/openfaas/faas-cli/stargazers","contributors_url":"https://api.github.com/repos/openfaas/faas-cli/contributors","subscribers_url":"https://api.github.com/repos/openfaas/faas-cli/subscribers","subscription_url":"https://api.github.com/repos/openfaas/faas-cli/subscription","commits_url":"https://api.github.com/repos/openfaas/faas-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/openfaas/faas-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/openfaas/faas-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/openfaas/faas-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/openfaas/faas-cli/contents/{+path}","compare_url":"https://api.github.com/repos/openfaas/faas-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openfaas/faas-cli/merges","archive_url":"https://api.github.com/repos/openfaas/faas-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openfaas/faas-cli/downloads","issues_url":"https://api.github.com/repos/openfaas/faas-cli/issues{/number}","pulls_url":"https://api.github.com/repos/openfaas/faas-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/openfaas/faas-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/openfaas/faas-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openfaas/faas-cli/labels{/name}","releases_url":"https://api.github.com/repos/openfaas/faas-cli/releases{/id}","deployments_url":"https://api.github.com/repos/openfaas/faas-cli/deployments","created_at":"2017-04-10T16:33:04Z","updated_at":"2019-04-30T14:33:37Z","pushed_at":"2019-05-01T22:31:43Z","git_url":"git://github.com/openfaas/faas-cli.git","ssh_url":"git@github.com:openfaas/faas-cli.git","clone_url":"https://github.com/openfaas/faas-cli.git","svn_url":"https://github.com/openfaas/faas-cli","homepage":"https://docs.openfaas.com","size":17554,"stargazers_count":384,"watchers_count":384,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":128,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":45,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":128,"open_issues":45,"watchers":384,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openfaas/faas-cli/pulls/634"},"html":{"href":"https://github.com/openfaas/faas-cli/pull/634"},"issue":{"href":"https://api.github.com/repos/openfaas/faas-cli/issues/634"},"comments":{"href":"https://api.github.com/repos/openfaas/faas-cli/issues/634/comments"},"review_comments":{"href":"https://api.github.com/repos/openfaas/faas-cli/pulls/634/comments"},"review_comment":{"href":"https://api.github.com/repos/openfaas/faas-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openfaas/faas-cli/pulls/634/commits"},"statuses":{"href":"https://api.github.com/repos/openfaas/faas-cli/statuses/cab38f40eaf0002ce31d699e4403cf3c18744671"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":50,"deletions":2,"changed_files":2}}
other: {"actor":{"display_login":"alexellis"}}