{"action":"created","comment":{"url":"https://api.github.com/repos/tommy-meacham/auto-assign/pulls/comments/263856248","pull_request_review_id":212372455,"id":263856248,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI2Mzg1NjI0OA==","diff_hunk":"@@ -46,12 +65,18 @@ export async function handlePullRequest (context: Context): Promise<void> {\n     }\n   }\n \n-  if (config.addAssignees && reviewers.length > 0) {\n+  if (config.addAssignees && (reviewers.length > 0 || Object.keys(config.assigneeGroups).length > 0)) {\n     try {\n-      const assignees: string[] = config.assignees ?\n-        chooseUsers(owner, config.assignees, config.numberOfAssignees || config.numberOfReviewers)\n-        :\n-        reviewers\n+      let assignees: string[] = []\n+        if(config.useAssigneeGroups && Object.keys(config.assigneeGroups).length > 0) {\n+            console.log(config.assigneeGroups)","path":"src/handler.ts","position":58,"original_position":58,"commit_id":"7eee5e7b5bc0a30359e8d1e32352f66d0c19c474","original_commit_id":"7eee5e7b5bc0a30359e8d1e32352f66d0c19c474","user":{"login":"ondrej-kocan-ct","id":41289030,"node_id":"MDQ6VXNlcjQxMjg5MDMw","avatar_url":"https://avatars3.githubusercontent.com/u/41289030?v=4","gravatar_id":"","url":"https://api.github.com/users/ondrej-kocan-ct","html_url":"https://github.com/ondrej-kocan-ct","followers_url":"https://api.github.com/users/ondrej-kocan-ct/followers","following_url":"https://api.github.com/users/ondrej-kocan-ct/following{/other_user}","gists_url":"https://api.github.com/users/ondrej-kocan-ct/gists{/gist_id}","starred_url":"https://api.github.com/users/ondrej-kocan-ct/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ondrej-kocan-ct/subscriptions","organizations_url":"https://api.github.com/users/ondrej-kocan-ct/orgs","repos_url":"https://api.github.com/users/ondrej-kocan-ct/repos","events_url":"https://api.github.com/users/ondrej-kocan-ct/events{/privacy}","received_events_url":"https://api.github.com/users/ondrej-kocan-ct/received_events","type":"User","site_admin":false},"body":"What you said","created_at":"2019-03-08T17:13:13Z","updated_at":"2019-03-08T17:15:34Z","html_url":"https://github.com/tommy-meacham/auto-assign/pull/11#discussion_r263856248","pull_request_url":"https://api.github.com/repos/tommy-meacham/auto-assign/pulls/11","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/tommy-meacham/auto-assign/pulls/comments/263856248"},"html":{"href":"https://github.com/tommy-meacham/auto-assign/pull/11#discussion_r263856248"},"pull_request":{"href":"https://api.github.com/repos/tommy-meacham/auto-assign/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/tommy-meacham/auto-assign/pulls/11","id":259536118,"node_id":"MDExOlB1bGxSZXF1ZXN0MjU5NTM2MTE4","html_url":"https://github.com/tommy-meacham/auto-assign/pull/11","diff_url":"https://github.com/tommy-meacham/auto-assign/pull/11.diff","patch_url":"https://github.com/tommy-meacham/auto-assign/pull/11.patch","issue_url":"https://api.github.com/repos/tommy-meacham/auto-assign/issues/11","number":11,"state":"open","locked":false,"title":"Adding group functionality to the auto-assign app","user":{"login":"tommy-meacham","id":10946535,"node_id":"MDQ6VXNlcjEwOTQ2NTM1","avatar_url":"https://avatars3.githubusercontent.com/u/10946535?v=4","gravatar_id":"","url":"https://api.github.com/users/tommy-meacham","html_url":"https://github.com/tommy-meacham","followers_url":"https://api.github.com/users/tommy-meacham/followers","following_url":"https://api.github.com/users/tommy-meacham/following{/other_user}","gists_url":"https://api.github.com/users/tommy-meacham/gists{/gist_id}","starred_url":"https://api.github.com/users/tommy-meacham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tommy-meacham/subscriptions","organizations_url":"https://api.github.com/users/tommy-meacham/orgs","repos_url":"https://api.github.com/users/tommy-meacham/repos","events_url":"https://api.github.com/users/tommy-meacham/events{/privacy}","received_events_url":"https://api.github.com/users/tommy-meacham/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-03-08T16:43:48Z","updated_at":"2019-03-08T17:15:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5537741bd36923357aa16e9a2333dd47b7b9ddec","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/tommy-meacham/auto-assign/pulls/11/commits","review_comments_url":"https://api.github.com/repos/tommy-meacham/auto-assign/pulls/11/comments","review_comment_url":"https://api.github.com/repos/tommy-meacham/auto-assign/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tommy-meacham/auto-assign/issues/11/comments","statuses_url":"https://api.github.com/repos/tommy-meacham/auto-assign/statuses/7eee5e7b5bc0a30359e8d1e32352f66d0c19c474","head":{"label":"tommy-meacham:groups","ref":"groups","sha":"7eee5e7b5bc0a30359e8d1e32352f66d0c19c474","user":{"login":"tommy-meacham","id":10946535,"node_id":"MDQ6VXNlcjEwOTQ2NTM1","avatar_url":"https://avatars3.githubusercontent.com/u/10946535?v=4","gravatar_id":"","url":"https://api.github.com/users/tommy-meacham","html_url":"https://github.com/tommy-meacham","followers_url":"https://api.github.com/users/tommy-meacham/followers","following_url":"https://api.github.com/users/tommy-meacham/following{/other_user}","gists_url":"https://api.github.com/users/tommy-meacham/gists{/gist_id}","starred_url":"https://api.github.com/users/tommy-meacham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tommy-meacham/subscriptions","organizations_url":"https://api.github.com/users/tommy-meacham/orgs","repos_url":"https://api.github.com/users/tommy-meacham/repos","events_url":"https://api.github.com/users/tommy-meacham/events{/privacy}","received_events_url":"https://api.github.com/users/tommy-meacham/received_events","type":"User","site_admin":false},"repo":{"id":172914228,"node_id":"MDEwOlJlcG9zaXRvcnkxNzI5MTQyMjg=","name":"auto-assign","full_name":"tommy-meacham/auto-assign","private":false,"owner":{"login":"tommy-meacham","id":10946535,"node_id":"MDQ6VXNlcjEwOTQ2NTM1","avatar_url":"https://avatars3.githubusercontent.com/u/10946535?v=4","gravatar_id":"","url":"https://api.github.com/users/tommy-meacham","html_url":"https://github.com/tommy-meacham","followers_url":"https://api.github.com/users/tommy-meacham/followers","following_url":"https://api.github.com/users/tommy-meacham/following{/other_user}","gists_url":"https://api.github.com/users/tommy-meacham/gists{/gist_id}","starred_url":"https://api.github.com/users/tommy-meacham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tommy-meacham/subscriptions","organizations_url":"https://api.github.com/users/tommy-meacham/orgs","repos_url":"https://api.github.com/users/tommy-meacham/repos","events_url":"https://api.github.com/users/tommy-meacham/events{/privacy}","received_events_url":"https://api.github.com/users/tommy-meacham/received_events","type":"User","site_admin":false},"html_url":"https://github.com/tommy-meacham/auto-assign","description":"🤖 A Probot app that adds reviewers to pull requests when pull requests are opened.","fork":true,"url":"https://api.github.com/repos/tommy-meacham/auto-assign","forks_url":"https://api.github.com/repos/tommy-meacham/auto-assign/forks","keys_url":"https://api.github.com/repos/tommy-meacham/auto-assign/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tommy-meacham/auto-assign/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tommy-meacham/auto-assign/teams","hooks_url":"https://api.github.com/repos/tommy-meacham/auto-assign/hooks","issue_events_url":"https://api.github.com/repos/tommy-meacham/auto-assign/issues/events{/number}","events_url":"https://api.github.com/repos/tommy-meacham/auto-assign/events","assignees_url":"https://api.github.com/repos/tommy-meacham/auto-assign/assignees{/user}","branches_url":"https://api.github.com/repos/tommy-meacham/auto-assign/branches{/branch}","tags_url":"https://api.github.com/repos/tommy-meacham/auto-assign/tags","blobs_url":"https://api.github.com/repos/tommy-meacham/auto-assign/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tommy-meacham/auto-assign/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tommy-meacham/auto-assign/git/refs{/sha}","trees_url":"https://api.github.com/repos/tommy-meacham/auto-assign/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tommy-meacham/auto-assign/statuses/{sha}","languages_url":"https://api.github.com/repos/tommy-meacham/auto-assign/languages","stargazers_url":"https://api.github.com/repos/tommy-meacham/auto-assign/stargazers","contributors_url":"https://api.github.com/repos/tommy-meacham/auto-assign/contributors","subscribers_url":"https://api.github.com/repos/tommy-meacham/auto-assign/subscribers","subscription_url":"https://api.github.com/repos/tommy-meacham/auto-assign/subscription","commits_url":"https://api.github.com/repos/tommy-meacham/auto-assign/commits{/sha}","git_commits_url":"https://api.github.com/repos/tommy-meacham/auto-assign/git/commits{/sha}","comments_url":"https://api.github.com/repos/tommy-meacham/auto-assign/comments{/number}","issue_comment_url":"https://api.github.com/repos/tommy-meacham/auto-assign/issues/comments{/number}","contents_url":"https://api.github.com/repos/tommy-meacham/auto-assign/contents/{+path}","compare_url":"https://api.github.com/repos/tommy-meacham/auto-assign/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tommy-meacham/auto-assign/merges","archive_url":"https://api.github.com/repos/tommy-meacham/auto-assign/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tommy-meacham/auto-assign/downloads","issues_url":"https://api.github.com/repos/tommy-meacham/auto-assign/issues{/number}","pulls_url":"https://api.github.com/repos/tommy-meacham/auto-assign/pulls{/number}","milestones_url":"https://api.github.com/repos/tommy-meacham/auto-assign/milestones{/number}","notifications_url":"https://api.github.com/repos/tommy-meacham/auto-assign/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tommy-meacham/auto-assign/labels{/name}","releases_url":"https://api.github.com/repos/tommy-meacham/auto-assign/releases{/id}","deployments_url":"https://api.github.com/repos/tommy-meacham/auto-assign/deployments","created_at":"2019-02-27T12:46:31Z","updated_at":"2019-03-06T15:40:03Z","pushed_at":"2019-03-08T16:44:47Z","git_url":"git://github.com/tommy-meacham/auto-assign.git","ssh_url":"git@github.com:tommy-meacham/auto-assign.git","clone_url":"https://github.com/tommy-meacham/auto-assign.git","svn_url":"https://github.com/tommy-meacham/auto-assign","homepage":"https://probot.github.io/apps/auto-assign/","size":738,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"isc","name":"ISC License","spdx_id":"ISC","url":"https://api.github.com/licenses/isc","node_id":"MDc6TGljZW5zZTEw"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"tommy-meacham:master","ref":"master","sha":"6279d3eac2fd0884db637e620ec3ea80fe602934","user":{"login":"tommy-meacham","id":10946535,"node_id":"MDQ6VXNlcjEwOTQ2NTM1","avatar_url":"https://avatars3.githubusercontent.com/u/10946535?v=4","gravatar_id":"","url":"https://api.github.com/users/tommy-meacham","html_url":"https://github.com/tommy-meacham","followers_url":"https://api.github.com/users/tommy-meacham/followers","following_url":"https://api.github.com/users/tommy-meacham/following{/other_user}","gists_url":"https://api.github.com/users/tommy-meacham/gists{/gist_id}","starred_url":"https://api.github.com/users/tommy-meacham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tommy-meacham/subscriptions","organizations_url":"https://api.github.com/users/tommy-meacham/orgs","repos_url":"https://api.github.com/users/tommy-meacham/repos","events_url":"https://api.github.com/users/tommy-meacham/events{/privacy}","received_events_url":"https://api.github.com/users/tommy-meacham/received_events","type":"User","site_admin":false},"repo":{"id":172914228,"node_id":"MDEwOlJlcG9zaXRvcnkxNzI5MTQyMjg=","name":"auto-assign","full_name":"tommy-meacham/auto-assign","private":false,"owner":{"login":"tommy-meacham","id":10946535,"node_id":"MDQ6VXNlcjEwOTQ2NTM1","avatar_url":"https://avatars3.githubusercontent.com/u/10946535?v=4","gravatar_id":"","url":"https://api.github.com/users/tommy-meacham","html_url":"https://github.com/tommy-meacham","followers_url":"https://api.github.com/users/tommy-meacham/followers","following_url":"https://api.github.com/users/tommy-meacham/following{/other_user}","gists_url":"https://api.github.com/users/tommy-meacham/gists{/gist_id}","starred_url":"https://api.github.com/users/tommy-meacham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tommy-meacham/subscriptions","organizations_url":"https://api.github.com/users/tommy-meacham/orgs","repos_url":"https://api.github.com/users/tommy-meacham/repos","events_url":"https://api.github.com/users/tommy-meacham/events{/privacy}","received_events_url":"https://api.github.com/users/tommy-meacham/received_events","type":"User","site_admin":false},"html_url":"https://github.com/tommy-meacham/auto-assign","description":"🤖 A Probot app that adds reviewers to pull requests when pull requests are opened.","fork":true,"url":"https://api.github.com/repos/tommy-meacham/auto-assign","forks_url":"https://api.github.com/repos/tommy-meacham/auto-assign/forks","keys_url":"https://api.github.com/repos/tommy-meacham/auto-assign/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tommy-meacham/auto-assign/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tommy-meacham/auto-assign/teams","hooks_url":"https://api.github.com/repos/tommy-meacham/auto-assign/hooks","issue_events_url":"https://api.github.com/repos/tommy-meacham/auto-assign/issues/events{/number}","events_url":"https://api.github.com/repos/tommy-meacham/auto-assign/events","assignees_url":"https://api.github.com/repos/tommy-meacham/auto-assign/assignees{/user}","branches_url":"https://api.github.com/repos/tommy-meacham/auto-assign/branches{/branch}","tags_url":"https://api.github.com/repos/tommy-meacham/auto-assign/tags","blobs_url":"https://api.github.com/repos/tommy-meacham/auto-assign/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tommy-meacham/auto-assign/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tommy-meacham/auto-assign/git/refs{/sha}","trees_url":"https://api.github.com/repos/tommy-meacham/auto-assign/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tommy-meacham/auto-assign/statuses/{sha}","languages_url":"https://api.github.com/repos/tommy-meacham/auto-assign/languages","stargazers_url":"https://api.github.com/repos/tommy-meacham/auto-assign/stargazers","contributors_url":"https://api.github.com/repos/tommy-meacham/auto-assign/contributors","subscribers_url":"https://api.github.com/repos/tommy-meacham/auto-assign/subscribers","subscription_url":"https://api.github.com/repos/tommy-meacham/auto-assign/subscription","commits_url":"https://api.github.com/repos/tommy-meacham/auto-assign/commits{/sha}","git_commits_url":"https://api.github.com/repos/tommy-meacham/auto-assign/git/commits{/sha}","comments_url":"https://api.github.com/repos/tommy-meacham/auto-assign/comments{/number}","issue_comment_url":"https://api.github.com/repos/tommy-meacham/auto-assign/issues/comments{/number}","contents_url":"https://api.github.com/repos/tommy-meacham/auto-assign/contents/{+path}","compare_url":"https://api.github.com/repos/tommy-meacham/auto-assign/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tommy-meacham/auto-assign/merges","archive_url":"https://api.github.com/repos/tommy-meacham/auto-assign/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tommy-meacham/auto-assign/downloads","issues_url":"https://api.github.com/repos/tommy-meacham/auto-assign/issues{/number}","pulls_url":"https://api.github.com/repos/tommy-meacham/auto-assign/pulls{/number}","milestones_url":"https://api.github.com/repos/tommy-meacham/auto-assign/milestones{/number}","notifications_url":"https://api.github.com/repos/tommy-meacham/auto-assign/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tommy-meacham/auto-assign/labels{/name}","releases_url":"https://api.github.com/repos/tommy-meacham/auto-assign/releases{/id}","deployments_url":"https://api.github.com/repos/tommy-meacham/auto-assign/deployments","created_at":"2019-02-27T12:46:31Z","updated_at":"2019-03-06T15:40:03Z","pushed_at":"2019-03-08T16:44:47Z","git_url":"git://github.com/tommy-meacham/auto-assign.git","ssh_url":"git@github.com:tommy-meacham/auto-assign.git","clone_url":"https://github.com/tommy-meacham/auto-assign.git","svn_url":"https://github.com/tommy-meacham/auto-assign","homepage":"https://probot.github.io/apps/auto-assign/","size":738,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"isc","name":"ISC License","spdx_id":"ISC","url":"https://api.github.com/licenses/isc","node_id":"MDc6TGljZW5zZTEw"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tommy-meacham/auto-assign/pulls/11"},"html":{"href":"https://github.com/tommy-meacham/auto-assign/pull/11"},"issue":{"href":"https://api.github.com/repos/tommy-meacham/auto-assign/issues/11"},"comments":{"href":"https://api.github.com/repos/tommy-meacham/auto-assign/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/tommy-meacham/auto-assign/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/tommy-meacham/auto-assign/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tommy-meacham/auto-assign/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/tommy-meacham/auto-assign/statuses/7eee5e7b5bc0a30359e8d1e32352f66d0c19c474"}},"author_association":"OWNER"}}
{"actor":{"display_login":"ondrej-kocan-ct"}}