{"action":"created","comment":{"url":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls/comments/64087113","id":64087113,"diff_hunk":"@@ -121,6 +121,7 @@ module.exports = (app) => {\n    * Groups.\n    */\n   app.post('/groups', aN.authenticateUserByJwt(), required('group'), groups.create); // Create a group. Option `role` to assign the caller directly (default to null).\n+  app.post('/groups/create_from_github_repo', aN.authenticateAppByApiKey, aN.parseJwtNoExpiryCheck, required('payload'), connectedAccounts.createGroupFromGithubRepo)","path":"server/routes.js","position":13,"original_position":13,"commit_id":"4fc1deb960e4cfc385ec82acdb7be1acfb622e7f","original_commit_id":"4fc1deb960e4cfc385ec82acdb7be1acfb622e7f","user":{"login":"asood123","id":6106941,"avatar_url":"https://avatars.githubusercontent.com/u/6106941?v=3","gravatar_id":"","url":"https://api.github.com/users/asood123","html_url":"https://github.com/asood123","followers_url":"https://api.github.com/users/asood123/followers","following_url":"https://api.github.com/users/asood123/following{/other_user}","gists_url":"https://api.github.com/users/asood123/gists{/gist_id}","starred_url":"https://api.github.com/users/asood123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asood123/subscriptions","organizations_url":"https://api.github.com/users/asood123/orgs","repos_url":"https://api.github.com/users/asood123/repos","events_url":"https://api.github.com/users/asood123/events{/privacy}","received_events_url":"https://api.github.com/users/asood123/received_events","type":"User","site_admin":false},"body":"Moved it to groups (which required a little bit of juggling to avoid recursion in our controllers - we need to refactor them). Added an ifParam as described above.","created_at":"2016-05-20T18:31:37Z","updated_at":"2016-05-20T18:31:37Z","html_url":"https://github.com/OpenCollective/opencollective-api/pull/344#discussion_r64087113","pull_request_url":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls/344","_links":{"self":{"href":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls/comments/64087113"},"html":{"href":"https://github.com/OpenCollective/opencollective-api/pull/344#discussion_r64087113"},"pull_request":{"href":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls/344"}}},"pull_request":{"url":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls/344","id":70778195,"html_url":"https://github.com/OpenCollective/opencollective-api/pull/344","diff_url":"https://github.com/OpenCollective/opencollective-api/pull/344.diff","patch_url":"https://github.com/OpenCollective/opencollective-api/pull/344.patch","issue_url":"https://api.github.com/repos/OpenCollective/opencollective-api/issues/344","number":344,"state":"open","locked":false,"title":"GitHub auth flow","user":{"login":"asood123","id":6106941,"avatar_url":"https://avatars.githubusercontent.com/u/6106941?v=3","gravatar_id":"","url":"https://api.github.com/users/asood123","html_url":"https://github.com/asood123","followers_url":"https://api.github.com/users/asood123/followers","following_url":"https://api.github.com/users/asood123/following{/other_user}","gists_url":"https://api.github.com/users/asood123/gists{/gist_id}","starred_url":"https://api.github.com/users/asood123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asood123/subscriptions","organizations_url":"https://api.github.com/users/asood123/orgs","repos_url":"https://api.github.com/users/asood123/repos","events_url":"https://api.github.com/users/asood123/events{/privacy}","received_events_url":"https://api.github.com/users/asood123/received_events","type":"User","site_admin":false},"body":"Still need to add tests for the new call. \r\n\r\nAlso, it's very ugly. Open to suggestions on how to make it cleaner and less error prone.\r\n\r\n@sedubois can you pls review?","created_at":"2016-05-19T22:50:37Z","updated_at":"2016-05-20T18:31:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3632ceceb5241fa6ad056a646673ac8ad94fdb4d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls/344/commits","review_comments_url":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls/344/comments","review_comment_url":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenCollective/opencollective-api/issues/344/comments","statuses_url":"https://api.github.com/repos/OpenCollective/opencollective-api/statuses/4fc1deb960e4cfc385ec82acdb7be1acfb622e7f","head":{"label":"OpenCollective:github-auth-flow","ref":"github-auth-flow","sha":"4fc1deb960e4cfc385ec82acdb7be1acfb622e7f","user":{"login":"OpenCollective","id":13403593,"avatar_url":"https://avatars.githubusercontent.com/u/13403593?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenCollective","html_url":"https://github.com/OpenCollective","followers_url":"https://api.github.com/users/OpenCollective/followers","following_url":"https://api.github.com/users/OpenCollective/following{/other_user}","gists_url":"https://api.github.com/users/OpenCollective/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenCollective/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenCollective/subscriptions","organizations_url":"https://api.github.com/users/OpenCollective/orgs","repos_url":"https://api.github.com/users/OpenCollective/repos","events_url":"https://api.github.com/users/OpenCollective/events{/privacy}","received_events_url":"https://api.github.com/users/OpenCollective/received_events","type":"Organization","site_admin":false},"repo":{"id":35861629,"name":"opencollective-api","full_name":"OpenCollective/opencollective-api","owner":{"login":"OpenCollective","id":13403593,"avatar_url":"https://avatars.githubusercontent.com/u/13403593?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenCollective","html_url":"https://github.com/OpenCollective","followers_url":"https://api.github.com/users/OpenCollective/followers","following_url":"https://api.github.com/users/OpenCollective/following{/other_user}","gists_url":"https://api.github.com/users/OpenCollective/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenCollective/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenCollective/subscriptions","organizations_url":"https://api.github.com/users/OpenCollective/orgs","repos_url":"https://api.github.com/users/OpenCollective/repos","events_url":"https://api.github.com/users/OpenCollective/events{/privacy}","received_events_url":"https://api.github.com/users/OpenCollective/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenCollective/opencollective-api","description":"OpenCollective's API","fork":false,"url":"https://api.github.com/repos/OpenCollective/opencollective-api","forks_url":"https://api.github.com/repos/OpenCollective/opencollective-api/forks","keys_url":"https://api.github.com/repos/OpenCollective/opencollective-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenCollective/opencollective-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenCollective/opencollective-api/teams","hooks_url":"https://api.github.com/repos/OpenCollective/opencollective-api/hooks","issue_events_url":"https://api.github.com/repos/OpenCollective/opencollective-api/issues/events{/number}","events_url":"https://api.github.com/repos/OpenCollective/opencollective-api/events","assignees_url":"https://api.github.com/repos/OpenCollective/opencollective-api/assignees{/user}","branches_url":"https://api.github.com/repos/OpenCollective/opencollective-api/branches{/branch}","tags_url":"https://api.github.com/repos/OpenCollective/opencollective-api/tags","blobs_url":"https://api.github.com/repos/OpenCollective/opencollective-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenCollective/opencollective-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenCollective/opencollective-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenCollective/opencollective-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenCollective/opencollective-api/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenCollective/opencollective-api/languages","stargazers_url":"https://api.github.com/repos/OpenCollective/opencollective-api/stargazers","contributors_url":"https://api.github.com/repos/OpenCollective/opencollective-api/contributors","subscribers_url":"https://api.github.com/repos/OpenCollective/opencollective-api/subscribers","subscription_url":"https://api.github.com/repos/OpenCollective/opencollective-api/subscription","commits_url":"https://api.github.com/repos/OpenCollective/opencollective-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenCollective/opencollective-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenCollective/opencollective-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenCollective/opencollective-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenCollective/opencollective-api/contents/{+path}","compare_url":"https://api.github.com/repos/OpenCollective/opencollective-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenCollective/opencollective-api/merges","archive_url":"https://api.github.com/repos/OpenCollective/opencollective-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenCollective/opencollective-api/downloads","issues_url":"https://api.github.com/repos/OpenCollective/opencollective-api/issues{/number}","pulls_url":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenCollective/opencollective-api/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenCollective/opencollective-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenCollective/opencollective-api/labels{/name}","releases_url":"https://api.github.com/repos/OpenCollective/opencollective-api/releases{/id}","deployments_url":"https://api.github.com/repos/OpenCollective/opencollective-api/deployments","created_at":"2015-05-19T05:40:22Z","updated_at":"2016-05-13T19:58:02Z","pushed_at":"2016-05-19T22:50:37Z","git_url":"git://github.com/OpenCollective/opencollective-api.git","ssh_url":"git@github.com:OpenCollective/opencollective-api.git","clone_url":"https://github.com/OpenCollective/opencollective-api.git","svn_url":"https://github.com/OpenCollective/opencollective-api","homepage":"","size":2242,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":16,"forks":5,"open_issues":16,"watchers":4,"default_branch":"master"}},"base":{"label":"OpenCollective:master","ref":"master","sha":"857ede27c0e0314849d7819d93174d670f5e4e22","user":{"login":"OpenCollective","id":13403593,"avatar_url":"https://avatars.githubusercontent.com/u/13403593?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenCollective","html_url":"https://github.com/OpenCollective","followers_url":"https://api.github.com/users/OpenCollective/followers","following_url":"https://api.github.com/users/OpenCollective/following{/other_user}","gists_url":"https://api.github.com/users/OpenCollective/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenCollective/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenCollective/subscriptions","organizations_url":"https://api.github.com/users/OpenCollective/orgs","repos_url":"https://api.github.com/users/OpenCollective/repos","events_url":"https://api.github.com/users/OpenCollective/events{/privacy}","received_events_url":"https://api.github.com/users/OpenCollective/received_events","type":"Organization","site_admin":false},"repo":{"id":35861629,"name":"opencollective-api","full_name":"OpenCollective/opencollective-api","owner":{"login":"OpenCollective","id":13403593,"avatar_url":"https://avatars.githubusercontent.com/u/13403593?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenCollective","html_url":"https://github.com/OpenCollective","followers_url":"https://api.github.com/users/OpenCollective/followers","following_url":"https://api.github.com/users/OpenCollective/following{/other_user}","gists_url":"https://api.github.com/users/OpenCollective/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenCollective/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenCollective/subscriptions","organizations_url":"https://api.github.com/users/OpenCollective/orgs","repos_url":"https://api.github.com/users/OpenCollective/repos","events_url":"https://api.github.com/users/OpenCollective/events{/privacy}","received_events_url":"https://api.github.com/users/OpenCollective/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenCollective/opencollective-api","description":"OpenCollective's API","fork":false,"url":"https://api.github.com/repos/OpenCollective/opencollective-api","forks_url":"https://api.github.com/repos/OpenCollective/opencollective-api/forks","keys_url":"https://api.github.com/repos/OpenCollective/opencollective-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenCollective/opencollective-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenCollective/opencollective-api/teams","hooks_url":"https://api.github.com/repos/OpenCollective/opencollective-api/hooks","issue_events_url":"https://api.github.com/repos/OpenCollective/opencollective-api/issues/events{/number}","events_url":"https://api.github.com/repos/OpenCollective/opencollective-api/events","assignees_url":"https://api.github.com/repos/OpenCollective/opencollective-api/assignees{/user}","branches_url":"https://api.github.com/repos/OpenCollective/opencollective-api/branches{/branch}","tags_url":"https://api.github.com/repos/OpenCollective/opencollective-api/tags","blobs_url":"https://api.github.com/repos/OpenCollective/opencollective-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenCollective/opencollective-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenCollective/opencollective-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenCollective/opencollective-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenCollective/opencollective-api/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenCollective/opencollective-api/languages","stargazers_url":"https://api.github.com/repos/OpenCollective/opencollective-api/stargazers","contributors_url":"https://api.github.com/repos/OpenCollective/opencollective-api/contributors","subscribers_url":"https://api.github.com/repos/OpenCollective/opencollective-api/subscribers","subscription_url":"https://api.github.com/repos/OpenCollective/opencollective-api/subscription","commits_url":"https://api.github.com/repos/OpenCollective/opencollective-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenCollective/opencollective-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenCollective/opencollective-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenCollective/opencollective-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenCollective/opencollective-api/contents/{+path}","compare_url":"https://api.github.com/repos/OpenCollective/opencollective-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenCollective/opencollective-api/merges","archive_url":"https://api.github.com/repos/OpenCollective/opencollective-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenCollective/opencollective-api/downloads","issues_url":"https://api.github.com/repos/OpenCollective/opencollective-api/issues{/number}","pulls_url":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenCollective/opencollective-api/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenCollective/opencollective-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenCollective/opencollective-api/labels{/name}","releases_url":"https://api.github.com/repos/OpenCollective/opencollective-api/releases{/id}","deployments_url":"https://api.github.com/repos/OpenCollective/opencollective-api/deployments","created_at":"2015-05-19T05:40:22Z","updated_at":"2016-05-13T19:58:02Z","pushed_at":"2016-05-19T22:50:37Z","git_url":"git://github.com/OpenCollective/opencollective-api.git","ssh_url":"git@github.com:OpenCollective/opencollective-api.git","clone_url":"https://github.com/OpenCollective/opencollective-api.git","svn_url":"https://github.com/OpenCollective/opencollective-api","homepage":"","size":2242,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":16,"forks":5,"open_issues":16,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls/344"},"html":{"href":"https://github.com/OpenCollective/opencollective-api/pull/344"},"issue":{"href":"https://api.github.com/repos/OpenCollective/opencollective-api/issues/344"},"comments":{"href":"https://api.github.com/repos/OpenCollective/opencollective-api/issues/344/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls/344/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenCollective/opencollective-api/pulls/344/commits"},"statuses":{"href":"https://api.github.com/repos/OpenCollective/opencollective-api/statuses/4fc1deb960e4cfc385ec82acdb7be1acfb622e7f"}}}}
{"actor":{"display_login":"asood123"}}