{"action":"created","comment":{"url":"https://api.github.com/repos/andela/bp-esa-backend/pulls/comments/237417126","pull_request_review_id":179707550,"id":237417126,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNzQxNzEyNg==","diff_hunk":"@@ -0,0 +1,34 @@\n+import {removeFromChannel,createPartnerChannels,addToChannel  } from '../../modules/slack/slackIntegration';\n+import response from '../../helpers/response';\n+\n+/**\n+ * @function onboardingSlackAutomation\n+ * @desc combines all onboarding functions\n+ *       into one function.","path":"server/jobs/onboarding/slack.js","position":null,"original_position":7,"commit_id":"a0116354deb6c0f0188f034ba338c3810f5ca36c","original_commit_id":"3c96dced08dd39bd54ff42fac39515358542bed6","user":{"login":"Collins33","id":23402614,"node_id":"MDQ6VXNlcjIzNDAyNjE0","avatar_url":"https://avatars2.githubusercontent.com/u/23402614?v=4","gravatar_id":"","url":"https://api.github.com/users/Collins33","html_url":"https://github.com/Collins33","followers_url":"https://api.github.com/users/Collins33/followers","following_url":"https://api.github.com/users/Collins33/following{/other_user}","gists_url":"https://api.github.com/users/Collins33/gists{/gist_id}","starred_url":"https://api.github.com/users/Collins33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Collins33/subscriptions","organizations_url":"https://api.github.com/users/Collins33/orgs","repos_url":"https://api.github.com/users/Collins33/repos","events_url":"https://api.github.com/users/Collins33/events{/privacy}","received_events_url":"https://api.github.com/users/Collins33/received_events","type":"User","site_admin":false},"body":"I have used a shorter description","created_at":"2018-11-29T09:54:41Z","updated_at":"2018-11-29T09:54:42Z","html_url":"https://github.com/andela/bp-esa-backend/pull/49#discussion_r237417126","pull_request_url":"https://api.github.com/repos/andela/bp-esa-backend/pulls/49","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/andela/bp-esa-backend/pulls/comments/237417126"},"html":{"href":"https://github.com/andela/bp-esa-backend/pull/49#discussion_r237417126"},"pull_request":{"href":"https://api.github.com/repos/andela/bp-esa-backend/pulls/49"}},"in_reply_to_id":237150171},"pull_request":{"url":"https://api.github.com/repos/andela/bp-esa-backend/pulls/49","id":232283251,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyMjgzMjUx","html_url":"https://github.com/andela/bp-esa-backend/pull/49","diff_url":"https://github.com/andela/bp-esa-backend/pull/49.diff","patch_url":"https://github.com/andela/bp-esa-backend/pull/49.patch","issue_url":"https://api.github.com/repos/andela/bp-esa-backend/issues/49","number":49,"state":"open","locked":false,"title":"#161835307 Onboarding slack automation","user":{"login":"Collins33","id":23402614,"node_id":"MDQ6VXNlcjIzNDAyNjE0","avatar_url":"https://avatars2.githubusercontent.com/u/23402614?v=4","gravatar_id":"","url":"https://api.github.com/users/Collins33","html_url":"https://github.com/Collins33","followers_url":"https://api.github.com/users/Collins33/followers","following_url":"https://api.github.com/users/Collins33/following{/other_user}","gists_url":"https://api.github.com/users/Collins33/gists{/gist_id}","starred_url":"https://api.github.com/users/Collins33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Collins33/subscriptions","organizations_url":"https://api.github.com/users/Collins33/orgs","repos_url":"https://api.github.com/users/Collins33/repos","events_url":"https://api.github.com/users/Collins33/events{/privacy}","received_events_url":"https://api.github.com/users/Collins33/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nCreates a function to run onboarding functionality.\r\n\r\n#### Description of Task to be completed?\r\nWhen the function is called, the following occurs:\r\n- The placed developer is removed from the `available-developers`\r\n- `p-partner` and `p-partner-int` slack channels should be created. This happens in the event it's a new partner.\r\n- The fellow will be added to the general channel of the partner created.\r\n\r\n#### How should this be manually tested?\r\n- Clone the repository and checkout to `ft-onboarding-slack-automation`\r\n- Install the dependencies using `npm install`\r\n- invoke the functiononboardingSlackAutomation() and pass the required parameters\r\n- Run the slack module using `npx babel-node server/jobs/onboarding/slack.js`\r\n\r\n#### What are the relevant pivotal tracker stories?\r\n[#161835307](https://www.pivotaltracker.com/story/show/161835307)","created_at":"2018-11-20T11:30:40Z","updated_at":"2018-11-29T09:54:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"284799ed5b090a236890f707d242a17225e6c928","assignee":null,"assignees":[],"requested_reviewers":[{"login":"nzediegwu1","id":29695968,"node_id":"MDQ6VXNlcjI5Njk1OTY4","avatar_url":"https://avatars1.githubusercontent.com/u/29695968?v=4","gravatar_id":"","url":"https://api.github.com/users/nzediegwu1","html_url":"https://github.com/nzediegwu1","followers_url":"https://api.github.com/users/nzediegwu1/followers","following_url":"https://api.github.com/users/nzediegwu1/following{/other_user}","gists_url":"https://api.github.com/users/nzediegwu1/gists{/gist_id}","starred_url":"https://api.github.com/users/nzediegwu1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzediegwu1/subscriptions","organizations_url":"https://api.github.com/users/nzediegwu1/orgs","repos_url":"https://api.github.com/users/nzediegwu1/repos","events_url":"https://api.github.com/users/nzediegwu1/events{/privacy}","received_events_url":"https://api.github.com/users/nzediegwu1/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/bp-esa-backend/pulls/49/commits","review_comments_url":"https://api.github.com/repos/andela/bp-esa-backend/pulls/49/comments","review_comment_url":"https://api.github.com/repos/andela/bp-esa-backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/bp-esa-backend/issues/49/comments","statuses_url":"https://api.github.com/repos/andela/bp-esa-backend/statuses/a0116354deb6c0f0188f034ba338c3810f5ca36c","head":{"label":"andela:ft-onboarding-slack-automation-161835307","ref":"ft-onboarding-slack-automation-161835307","sha":"a0116354deb6c0f0188f034ba338c3810f5ca36c","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":137874379,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc4NzQzNzk=","name":"bp-esa-backend","full_name":"andela/bp-esa-backend","private":false,"owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/andela/bp-esa-backend","description":null,"fork":false,"url":"https://api.github.com/repos/andela/bp-esa-backend","forks_url":"https://api.github.com/repos/andela/bp-esa-backend/forks","keys_url":"https://api.github.com/repos/andela/bp-esa-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/bp-esa-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/bp-esa-backend/teams","hooks_url":"https://api.github.com/repos/andela/bp-esa-backend/hooks","issue_events_url":"https://api.github.com/repos/andela/bp-esa-backend/issues/events{/number}","events_url":"https://api.github.com/repos/andela/bp-esa-backend/events","assignees_url":"https://api.github.com/repos/andela/bp-esa-backend/assignees{/user}","branches_url":"https://api.github.com/repos/andela/bp-esa-backend/branches{/branch}","tags_url":"https://api.github.com/repos/andela/bp-esa-backend/tags","blobs_url":"https://api.github.com/repos/andela/bp-esa-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/bp-esa-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/bp-esa-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/bp-esa-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/bp-esa-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/bp-esa-backend/languages","stargazers_url":"https://api.github.com/repos/andela/bp-esa-backend/stargazers","contributors_url":"https://api.github.com/repos/andela/bp-esa-backend/contributors","subscribers_url":"https://api.github.com/repos/andela/bp-esa-backend/subscribers","subscription_url":"https://api.github.com/repos/andela/bp-esa-backend/subscription","commits_url":"https://api.github.com/repos/andela/bp-esa-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/bp-esa-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/bp-esa-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/bp-esa-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/bp-esa-backend/contents/{+path}","compare_url":"https://api.github.com/repos/andela/bp-esa-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/bp-esa-backend/merges","archive_url":"https://api.github.com/repos/andela/bp-esa-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/bp-esa-backend/downloads","issues_url":"https://api.github.com/repos/andela/bp-esa-backend/issues{/number}","pulls_url":"https://api.github.com/repos/andela/bp-esa-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/bp-esa-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/bp-esa-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/bp-esa-backend/labels{/name}","releases_url":"https://api.github.com/repos/andela/bp-esa-backend/releases{/id}","deployments_url":"https://api.github.com/repos/andela/bp-esa-backend/deployments","created_at":"2018-06-19T10:08:04Z","updated_at":"2018-11-28T15:57:47Z","pushed_at":"2018-11-29T09:52:18Z","git_url":"git://github.com/andela/bp-esa-backend.git","ssh_url":"git@github.com:andela/bp-esa-backend.git","clone_url":"https://github.com/andela/bp-esa-backend.git","svn_url":"https://github.com/andela/bp-esa-backend","homepage":null,"size":306,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":18,"license":null,"forks":0,"open_issues":18,"watchers":1,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"553020089061fd8546ef815c72c7e05efee01525","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":137874379,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc4NzQzNzk=","name":"bp-esa-backend","full_name":"andela/bp-esa-backend","private":false,"owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/andela/bp-esa-backend","description":null,"fork":false,"url":"https://api.github.com/repos/andela/bp-esa-backend","forks_url":"https://api.github.com/repos/andela/bp-esa-backend/forks","keys_url":"https://api.github.com/repos/andela/bp-esa-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/bp-esa-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/bp-esa-backend/teams","hooks_url":"https://api.github.com/repos/andela/bp-esa-backend/hooks","issue_events_url":"https://api.github.com/repos/andela/bp-esa-backend/issues/events{/number}","events_url":"https://api.github.com/repos/andela/bp-esa-backend/events","assignees_url":"https://api.github.com/repos/andela/bp-esa-backend/assignees{/user}","branches_url":"https://api.github.com/repos/andela/bp-esa-backend/branches{/branch}","tags_url":"https://api.github.com/repos/andela/bp-esa-backend/tags","blobs_url":"https://api.github.com/repos/andela/bp-esa-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/bp-esa-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/bp-esa-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/bp-esa-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/bp-esa-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/bp-esa-backend/languages","stargazers_url":"https://api.github.com/repos/andela/bp-esa-backend/stargazers","contributors_url":"https://api.github.com/repos/andela/bp-esa-backend/contributors","subscribers_url":"https://api.github.com/repos/andela/bp-esa-backend/subscribers","subscription_url":"https://api.github.com/repos/andela/bp-esa-backend/subscription","commits_url":"https://api.github.com/repos/andela/bp-esa-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/bp-esa-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/bp-esa-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/bp-esa-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/bp-esa-backend/contents/{+path}","compare_url":"https://api.github.com/repos/andela/bp-esa-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/bp-esa-backend/merges","archive_url":"https://api.github.com/repos/andela/bp-esa-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/bp-esa-backend/downloads","issues_url":"https://api.github.com/repos/andela/bp-esa-backend/issues{/number}","pulls_url":"https://api.github.com/repos/andela/bp-esa-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/bp-esa-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/bp-esa-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/bp-esa-backend/labels{/name}","releases_url":"https://api.github.com/repos/andela/bp-esa-backend/releases{/id}","deployments_url":"https://api.github.com/repos/andela/bp-esa-backend/deployments","created_at":"2018-06-19T10:08:04Z","updated_at":"2018-11-28T15:57:47Z","pushed_at":"2018-11-29T09:52:18Z","git_url":"git://github.com/andela/bp-esa-backend.git","ssh_url":"git@github.com:andela/bp-esa-backend.git","clone_url":"https://github.com/andela/bp-esa-backend.git","svn_url":"https://github.com/andela/bp-esa-backend","homepage":null,"size":306,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":18,"license":null,"forks":0,"open_issues":18,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/bp-esa-backend/pulls/49"},"html":{"href":"https://github.com/andela/bp-esa-backend/pull/49"},"issue":{"href":"https://api.github.com/repos/andela/bp-esa-backend/issues/49"},"comments":{"href":"https://api.github.com/repos/andela/bp-esa-backend/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/bp-esa-backend/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/bp-esa-backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/bp-esa-backend/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/andela/bp-esa-backend/statuses/a0116354deb6c0f0188f034ba338c3810f5ca36c"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Collins33"}}