{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/pulls/1","id":35089460,"html_url":"https://github.com/wjbeckett/hubot-zendesk/pull/1","diff_url":"https://github.com/wjbeckett/hubot-zendesk/pull/1.diff","patch_url":"https://github.com/wjbeckett/hubot-zendesk/pull/1.patch","issue_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/issues/1","number":1,"state":"closed","locked":false,"title":"Namespace commands with `zendesk` or `zd`","user":{"login":"stephenyeargin","id":80459,"avatar_url":"https://avatars.githubusercontent.com/u/80459?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenyeargin","html_url":"https://github.com/stephenyeargin","followers_url":"https://api.github.com/users/stephenyeargin/followers","following_url":"https://api.github.com/users/stephenyeargin/following{/other_user}","gists_url":"https://api.github.com/users/stephenyeargin/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenyeargin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenyeargin/subscriptions","organizations_url":"https://api.github.com/users/stephenyeargin/orgs","repos_url":"https://api.github.com/users/stephenyeargin/repos","events_url":"https://api.github.com/users/stephenyeargin/events{/privacy}","received_events_url":"https://api.github.com/users/stephenyeargin/received_events","type":"User","site_admin":false},"body":"We run multiple :hubot: packages and have found it eaiser to look up the commands and run them in a non-conflicting way if we add a keyword describing the service to the front of it. So for example:\r\n\r\n`hubot tickets`\r\n\r\nbecomes:\r\n\r\n`hubot zendesk tickets`\r\n\r\nWith the use of an alias, such as `!`, it shortens it up nicer to where the command is more directly relatable:\r\n\r\n`!zendesk tickets`\r\n\r\nAt any rate, this PR is a suggestion. It obviously breaks userspace, but it will not effect anyoen that used the `npm install hubot-zendesk --save` method, as that will lock it down to a particular version.\r\n\r\n**Other changes:**\r\n\r\n- Wired up the test suite so you could hook it into Travis easily (`npm test`)\r\n- Removed the redundant note about adding it to package.json. Running the `--save` method described above already does that for you.\r\n- Adjusted some code formatting in the README","created_at":"2015-05-10T21:53:13Z","updated_at":"2015-05-10T22:01:09Z","closed_at":"2015-05-10T22:01:09Z","merged_at":"2015-05-10T22:01:09Z","merge_commit_sha":"cfe45213628816cf05a71522f749651416d7a9cc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/pulls/1/commits","review_comments_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/pulls/1/comments","review_comment_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/issues/1/comments","statuses_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/statuses/8ba7d5b36cb274a1e0d308db6504f5741c852111","head":{"label":"raventools:namespace-commands","ref":"namespace-commands","sha":"8ba7d5b36cb274a1e0d308db6504f5741c852111","user":{"login":"raventools","id":2432699,"avatar_url":"https://avatars.githubusercontent.com/u/2432699?v=3","gravatar_id":"","url":"https://api.github.com/users/raventools","html_url":"https://github.com/raventools","followers_url":"https://api.github.com/users/raventools/followers","following_url":"https://api.github.com/users/raventools/following{/other_user}","gists_url":"https://api.github.com/users/raventools/gists{/gist_id}","starred_url":"https://api.github.com/users/raventools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raventools/subscriptions","organizations_url":"https://api.github.com/users/raventools/orgs","repos_url":"https://api.github.com/users/raventools/repos","events_url":"https://api.github.com/users/raventools/events{/privacy}","received_events_url":"https://api.github.com/users/raventools/received_events","type":"Organization","site_admin":false},"repo":{"id":35388778,"name":"hubot-zendesk","full_name":"raventools/hubot-zendesk","owner":{"login":"raventools","id":2432699,"avatar_url":"https://avatars.githubusercontent.com/u/2432699?v=3","gravatar_id":"","url":"https://api.github.com/users/raventools","html_url":"https://github.com/raventools","followers_url":"https://api.github.com/users/raventools/followers","following_url":"https://api.github.com/users/raventools/following{/other_user}","gists_url":"https://api.github.com/users/raventools/gists{/gist_id}","starred_url":"https://api.github.com/users/raventools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raventools/subscriptions","organizations_url":"https://api.github.com/users/raventools/orgs","repos_url":"https://api.github.com/users/raventools/repos","events_url":"https://api.github.com/users/raventools/events{/privacy}","received_events_url":"https://api.github.com/users/raventools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/raventools/hubot-zendesk","description":"port of hubot-scripts zendesk.coffee","fork":true,"url":"https://api.github.com/repos/raventools/hubot-zendesk","forks_url":"https://api.github.com/repos/raventools/hubot-zendesk/forks","keys_url":"https://api.github.com/repos/raventools/hubot-zendesk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raventools/hubot-zendesk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raventools/hubot-zendesk/teams","hooks_url":"https://api.github.com/repos/raventools/hubot-zendesk/hooks","issue_events_url":"https://api.github.com/repos/raventools/hubot-zendesk/issues/events{/number}","events_url":"https://api.github.com/repos/raventools/hubot-zendesk/events","assignees_url":"https://api.github.com/repos/raventools/hubot-zendesk/assignees{/user}","branches_url":"https://api.github.com/repos/raventools/hubot-zendesk/branches{/branch}","tags_url":"https://api.github.com/repos/raventools/hubot-zendesk/tags","blobs_url":"https://api.github.com/repos/raventools/hubot-zendesk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raventools/hubot-zendesk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raventools/hubot-zendesk/git/refs{/sha}","trees_url":"https://api.github.com/repos/raventools/hubot-zendesk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raventools/hubot-zendesk/statuses/{sha}","languages_url":"https://api.github.com/repos/raventools/hubot-zendesk/languages","stargazers_url":"https://api.github.com/repos/raventools/hubot-zendesk/stargazers","contributors_url":"https://api.github.com/repos/raventools/hubot-zendesk/contributors","subscribers_url":"https://api.github.com/repos/raventools/hubot-zendesk/subscribers","subscription_url":"https://api.github.com/repos/raventools/hubot-zendesk/subscription","commits_url":"https://api.github.com/repos/raventools/hubot-zendesk/commits{/sha}","git_commits_url":"https://api.github.com/repos/raventools/hubot-zendesk/git/commits{/sha}","comments_url":"https://api.github.com/repos/raventools/hubot-zendesk/comments{/number}","issue_comment_url":"https://api.github.com/repos/raventools/hubot-zendesk/issues/comments{/number}","contents_url":"https://api.github.com/repos/raventools/hubot-zendesk/contents/{+path}","compare_url":"https://api.github.com/repos/raventools/hubot-zendesk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raventools/hubot-zendesk/merges","archive_url":"https://api.github.com/repos/raventools/hubot-zendesk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raventools/hubot-zendesk/downloads","issues_url":"https://api.github.com/repos/raventools/hubot-zendesk/issues{/number}","pulls_url":"https://api.github.com/repos/raventools/hubot-zendesk/pulls{/number}","milestones_url":"https://api.github.com/repos/raventools/hubot-zendesk/milestones{/number}","notifications_url":"https://api.github.com/repos/raventools/hubot-zendesk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raventools/hubot-zendesk/labels{/name}","releases_url":"https://api.github.com/repos/raventools/hubot-zendesk/releases{/id}","created_at":"2015-05-10T21:29:39Z","updated_at":"2015-05-10T21:29:40Z","pushed_at":"2015-05-10T21:52:42Z","git_url":"git://github.com/raventools/hubot-zendesk.git","ssh_url":"git@github.com:raventools/hubot-zendesk.git","clone_url":"https://github.com/raventools/hubot-zendesk.git","svn_url":"https://github.com/raventools/hubot-zendesk","homepage":null,"size":143,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"wjbeckett:master","ref":"master","sha":"72e5cec1303dc7d2dee418737e4909e62e8c963f","user":{"login":"wjbeckett","id":2252680,"avatar_url":"https://avatars.githubusercontent.com/u/2252680?v=3","gravatar_id":"","url":"https://api.github.com/users/wjbeckett","html_url":"https://github.com/wjbeckett","followers_url":"https://api.github.com/users/wjbeckett/followers","following_url":"https://api.github.com/users/wjbeckett/following{/other_user}","gists_url":"https://api.github.com/users/wjbeckett/gists{/gist_id}","starred_url":"https://api.github.com/users/wjbeckett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjbeckett/subscriptions","organizations_url":"https://api.github.com/users/wjbeckett/orgs","repos_url":"https://api.github.com/users/wjbeckett/repos","events_url":"https://api.github.com/users/wjbeckett/events{/privacy}","received_events_url":"https://api.github.com/users/wjbeckett/received_events","type":"User","site_admin":false},"repo":{"id":31942654,"name":"hubot-zendesk","full_name":"wjbeckett/hubot-zendesk","owner":{"login":"wjbeckett","id":2252680,"avatar_url":"https://avatars.githubusercontent.com/u/2252680?v=3","gravatar_id":"","url":"https://api.github.com/users/wjbeckett","html_url":"https://github.com/wjbeckett","followers_url":"https://api.github.com/users/wjbeckett/followers","following_url":"https://api.github.com/users/wjbeckett/following{/other_user}","gists_url":"https://api.github.com/users/wjbeckett/gists{/gist_id}","starred_url":"https://api.github.com/users/wjbeckett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjbeckett/subscriptions","organizations_url":"https://api.github.com/users/wjbeckett/orgs","repos_url":"https://api.github.com/users/wjbeckett/repos","events_url":"https://api.github.com/users/wjbeckett/events{/privacy}","received_events_url":"https://api.github.com/users/wjbeckett/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wjbeckett/hubot-zendesk","description":"port of hubot-scripts zendesk.coffee","fork":false,"url":"https://api.github.com/repos/wjbeckett/hubot-zendesk","forks_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/forks","keys_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/teams","hooks_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/hooks","issue_events_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/issues/events{/number}","events_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/events","assignees_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/assignees{/user}","branches_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/branches{/branch}","tags_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/tags","blobs_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/git/refs{/sha}","trees_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/statuses/{sha}","languages_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/languages","stargazers_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/stargazers","contributors_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/contributors","subscribers_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/subscribers","subscription_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/subscription","commits_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/commits{/sha}","git_commits_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/git/commits{/sha}","comments_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/comments{/number}","issue_comment_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/issues/comments{/number}","contents_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/contents/{+path}","compare_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/merges","archive_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/downloads","issues_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/issues{/number}","pulls_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/pulls{/number}","milestones_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/milestones{/number}","notifications_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/labels{/name}","releases_url":"https://api.github.com/repos/wjbeckett/hubot-zendesk/releases{/id}","created_at":"2015-03-10T06:51:46Z","updated_at":"2015-03-11T00:14:46Z","pushed_at":"2015-05-10T22:01:09Z","git_url":"git://github.com/wjbeckett/hubot-zendesk.git","ssh_url":"git@github.com:wjbeckett/hubot-zendesk.git","clone_url":"https://github.com/wjbeckett/hubot-zendesk.git","svn_url":"https://github.com/wjbeckett/hubot-zendesk","homepage":null,"size":136,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wjbeckett/hubot-zendesk/pulls/1"},"html":{"href":"https://github.com/wjbeckett/hubot-zendesk/pull/1"},"issue":{"href":"https://api.github.com/repos/wjbeckett/hubot-zendesk/issues/1"},"comments":{"href":"https://api.github.com/repos/wjbeckett/hubot-zendesk/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/wjbeckett/hubot-zendesk/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/wjbeckett/hubot-zendesk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wjbeckett/hubot-zendesk/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/wjbeckett/hubot-zendesk/statuses/8ba7d5b36cb274a1e0d308db6504f5741c852111"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"wjbeckett","id":2252680,"avatar_url":"https://avatars.githubusercontent.com/u/2252680?v=3","gravatar_id":"","url":"https://api.github.com/users/wjbeckett","html_url":"https://github.com/wjbeckett","followers_url":"https://api.github.com/users/wjbeckett/followers","following_url":"https://api.github.com/users/wjbeckett/following{/other_user}","gists_url":"https://api.github.com/users/wjbeckett/gists{/gist_id}","starred_url":"https://api.github.com/users/wjbeckett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjbeckett/subscriptions","organizations_url":"https://api.github.com/users/wjbeckett/orgs","repos_url":"https://api.github.com/users/wjbeckett/repos","events_url":"https://api.github.com/users/wjbeckett/events{/privacy}","received_events_url":"https://api.github.com/users/wjbeckett/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":72,"deletions":52,"changed_files":3}}