{"action":"created","comment":{"url":"https://api.github.com/repos/fastlane/ci/pulls/comments/182521006","pull_request_review_id":113333179,"id":182521006,"diff_hunk":"@@ -170,6 +263,33 @@ def remote_file_a_json_array?(file_path)\n     # @!group String Helpers\n     #####################################################\n \n+    # The login of the fastlane.ci bot account\n+    #\n+    # @return [String]\n+    def bot_user_login\n+      github_action(bot_user_client) do\n+        return bot_user_client.login","path":"app/services/configuration_repository_service.rb","position":200,"original_position":200,"commit_id":"fbfdae166a13b4e3e42d480a6b90750bc0e25f4c","original_commit_id":"fbfdae166a13b4e3e42d480a6b90750bc0e25f4c","user":{"login":"taquitos","id":1304821,"avatar_url":"https://avatars2.githubusercontent.com/u/1304821?v=4","gravatar_id":"","url":"https://api.github.com/users/taquitos","html_url":"https://github.com/taquitos","followers_url":"https://api.github.com/users/taquitos/followers","following_url":"https://api.github.com/users/taquitos/following{/other_user}","gists_url":"https://api.github.com/users/taquitos/gists{/gist_id}","starred_url":"https://api.github.com/users/taquitos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taquitos/subscriptions","organizations_url":"https://api.github.com/users/taquitos/orgs","repos_url":"https://api.github.com/users/taquitos/repos","events_url":"https://api.github.com/users/taquitos/events{/privacy}","received_events_url":"https://api.github.com/users/taquitos/received_events","type":"User","site_admin":false},"body":"Oh yeah, I think we need to use `next bot_user_client.login`","created_at":"2018-04-18T18:12:40Z","updated_at":"2018-04-18T18:12:40Z","html_url":"https://github.com/fastlane/ci/pull/661#discussion_r182521006","pull_request_url":"https://api.github.com/repos/fastlane/ci/pulls/661","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/fastlane/ci/pulls/comments/182521006"},"html":{"href":"https://github.com/fastlane/ci/pull/661#discussion_r182521006"},"pull_request":{"href":"https://api.github.com/repos/fastlane/ci/pulls/661"}},"in_reply_to_id":182520390},"pull_request":{"url":"https://api.github.com/repos/fastlane/ci/pulls/661","id":181344059,"html_url":"https://github.com/fastlane/ci/pull/661","diff_url":"https://github.com/fastlane/ci/pull/661.diff","patch_url":"https://github.com/fastlane/ci/pull/661.patch","issue_url":"https://api.github.com/repos/fastlane/ci/issues/661","number":661,"state":"open","locked":false,"title":"Fixes Onboarding Bugs","user":{"login":"AndrewMcBurney","id":8942499,"avatar_url":"https://avatars3.githubusercontent.com/u/8942499?v=4","gravatar_id":"","url":"https://api.github.com/users/AndrewMcBurney","html_url":"https://github.com/AndrewMcBurney","followers_url":"https://api.github.com/users/AndrewMcBurney/followers","following_url":"https://api.github.com/users/AndrewMcBurney/following{/other_user}","gists_url":"https://api.github.com/users/AndrewMcBurney/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewMcBurney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewMcBurney/subscriptions","organizations_url":"https://api.github.com/users/AndrewMcBurney/orgs","repos_url":"https://api.github.com/users/AndrewMcBurney/repos","events_url":"https://api.github.com/users/AndrewMcBurney/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewMcBurney/received_events","type":"User","site_admin":false},"body":"Closes #640, #607, #673 \r\n\r\n### Goals\r\nFrom [this comment](https://github.com/fastlane/ci/issues/640#issuecomment-380949627):\r\n\r\n- [x] Add bot user API Token as a required environment variable\r\n- [x] Document the need for having an API Token for the bot user\r\n- [x] Create the repo if it doesn't exist, using the user's credentials\r\n- [x] Use https://developer.github.com/v3/repos/collaborators/#add-user-as-a-collaborator to grant the bot account access\r\n- [x] Then https://developer.github.com/v3/repos/invitations/#accept-a-repository-invitation from the bot account\r\n- [x] Clone the repo using the bot account\r\n- [x] Fixes session-based flash messages\r\n\r\n### Changes\r\n\r\n- Added methods for inviting the bot user to the configuration repository, and for accepting an invitation to the configuration repository.\r\n- Removes the `FASTLANE_CI_USER` and `FASTLANE_CI_INITIAL_CLONE_EMAIL` environment variables, since we can obtain those values through the API tokens.\r\n- Adds the `FASTLANE_CI_INITIAL_ONBOARDING_USER_API_TOKEN` variable which is used for creating the private remote configuration repository, and inviting the bot user to the repository so it may perform actions on it.\r\n- Adds styled session-based flash messages","created_at":"2018-04-12T22:39:17Z","updated_at":"2018-04-18T18:12:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f568d835b8216c47ae8aaa25169e5f9a6291fad4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/fastlane/ci/pulls/661/commits","review_comments_url":"https://api.github.com/repos/fastlane/ci/pulls/661/comments","review_comment_url":"https://api.github.com/repos/fastlane/ci/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fastlane/ci/issues/661/comments","statuses_url":"https://api.github.com/repos/fastlane/ci/statuses/fbfdae166a13b4e3e42d480a6b90750bc0e25f4c","head":{"label":"AndrewMcBurney:updated_onboarding","ref":"updated_onboarding","sha":"fbfdae166a13b4e3e42d480a6b90750bc0e25f4c","user":{"login":"AndrewMcBurney","id":8942499,"avatar_url":"https://avatars3.githubusercontent.com/u/8942499?v=4","gravatar_id":"","url":"https://api.github.com/users/AndrewMcBurney","html_url":"https://github.com/AndrewMcBurney","followers_url":"https://api.github.com/users/AndrewMcBurney/followers","following_url":"https://api.github.com/users/AndrewMcBurney/following{/other_user}","gists_url":"https://api.github.com/users/AndrewMcBurney/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewMcBurney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewMcBurney/subscriptions","organizations_url":"https://api.github.com/users/AndrewMcBurney/orgs","repos_url":"https://api.github.com/users/AndrewMcBurney/repos","events_url":"https://api.github.com/users/AndrewMcBurney/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewMcBurney/received_events","type":"User","site_admin":false},"repo":{"id":121562368,"name":"ci","full_name":"AndrewMcBurney/ci","owner":{"login":"AndrewMcBurney","id":8942499,"avatar_url":"https://avatars3.githubusercontent.com/u/8942499?v=4","gravatar_id":"","url":"https://api.github.com/users/AndrewMcBurney","html_url":"https://github.com/AndrewMcBurney","followers_url":"https://api.github.com/users/AndrewMcBurney/followers","following_url":"https://api.github.com/users/AndrewMcBurney/following{/other_user}","gists_url":"https://api.github.com/users/AndrewMcBurney/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewMcBurney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewMcBurney/subscriptions","organizations_url":"https://api.github.com/users/AndrewMcBurney/orgs","repos_url":"https://api.github.com/users/AndrewMcBurney/repos","events_url":"https://api.github.com/users/AndrewMcBurney/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewMcBurney/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AndrewMcBurney/ci","description":"Open source, self hosted, mobile optimized CI powered by fastlane","fork":true,"url":"https://api.github.com/repos/AndrewMcBurney/ci","forks_url":"https://api.github.com/repos/AndrewMcBurney/ci/forks","keys_url":"https://api.github.com/repos/AndrewMcBurney/ci/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AndrewMcBurney/ci/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AndrewMcBurney/ci/teams","hooks_url":"https://api.github.com/repos/AndrewMcBurney/ci/hooks","issue_events_url":"https://api.github.com/repos/AndrewMcBurney/ci/issues/events{/number}","events_url":"https://api.github.com/repos/AndrewMcBurney/ci/events","assignees_url":"https://api.github.com/repos/AndrewMcBurney/ci/assignees{/user}","branches_url":"https://api.github.com/repos/AndrewMcBurney/ci/branches{/branch}","tags_url":"https://api.github.com/repos/AndrewMcBurney/ci/tags","blobs_url":"https://api.github.com/repos/AndrewMcBurney/ci/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AndrewMcBurney/ci/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AndrewMcBurney/ci/git/refs{/sha}","trees_url":"https://api.github.com/repos/AndrewMcBurney/ci/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AndrewMcBurney/ci/statuses/{sha}","languages_url":"https://api.github.com/repos/AndrewMcBurney/ci/languages","stargazers_url":"https://api.github.com/repos/AndrewMcBurney/ci/stargazers","contributors_url":"https://api.github.com/repos/AndrewMcBurney/ci/contributors","subscribers_url":"https://api.github.com/repos/AndrewMcBurney/ci/subscribers","subscription_url":"https://api.github.com/repos/AndrewMcBurney/ci/subscription","commits_url":"https://api.github.com/repos/AndrewMcBurney/ci/commits{/sha}","git_commits_url":"https://api.github.com/repos/AndrewMcBurney/ci/git/commits{/sha}","comments_url":"https://api.github.com/repos/AndrewMcBurney/ci/comments{/number}","issue_comment_url":"https://api.github.com/repos/AndrewMcBurney/ci/issues/comments{/number}","contents_url":"https://api.github.com/repos/AndrewMcBurney/ci/contents/{+path}","compare_url":"https://api.github.com/repos/AndrewMcBurney/ci/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AndrewMcBurney/ci/merges","archive_url":"https://api.github.com/repos/AndrewMcBurney/ci/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AndrewMcBurney/ci/downloads","issues_url":"https://api.github.com/repos/AndrewMcBurney/ci/issues{/number}","pulls_url":"https://api.github.com/repos/AndrewMcBurney/ci/pulls{/number}","milestones_url":"https://api.github.com/repos/AndrewMcBurney/ci/milestones{/number}","notifications_url":"https://api.github.com/repos/AndrewMcBurney/ci/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AndrewMcBurney/ci/labels{/name}","releases_url":"https://api.github.com/repos/AndrewMcBurney/ci/releases{/id}","deployments_url":"https://api.github.com/repos/AndrewMcBurney/ci/deployments","created_at":"2018-02-14T21:18:20Z","updated_at":"2018-02-14T21:18:22Z","pushed_at":"2018-04-15T17:26:09Z","git_url":"git://github.com/AndrewMcBurney/ci.git","ssh_url":"git@github.com:AndrewMcBurney/ci.git","clone_url":"https://github.com/AndrewMcBurney/ci.git","svn_url":"https://github.com/AndrewMcBurney/ci","homepage":"https://fastlane.tools","size":2507,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fastlane:master","ref":"master","sha":"c74bd97a166b65c5348c27286bfaed9bb9fec962","user":{"login":"fastlane","id":11098337,"avatar_url":"https://avatars2.githubusercontent.com/u/11098337?v=4","gravatar_id":"","url":"https://api.github.com/users/fastlane","html_url":"https://github.com/fastlane","followers_url":"https://api.github.com/users/fastlane/followers","following_url":"https://api.github.com/users/fastlane/following{/other_user}","gists_url":"https://api.github.com/users/fastlane/gists{/gist_id}","starred_url":"https://api.github.com/users/fastlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastlane/subscriptions","organizations_url":"https://api.github.com/users/fastlane/orgs","repos_url":"https://api.github.com/users/fastlane/repos","events_url":"https://api.github.com/users/fastlane/events{/privacy}","received_events_url":"https://api.github.com/users/fastlane/received_events","type":"Organization","site_admin":false},"repo":{"id":114287404,"name":"ci","full_name":"fastlane/ci","owner":{"login":"fastlane","id":11098337,"avatar_url":"https://avatars2.githubusercontent.com/u/11098337?v=4","gravatar_id":"","url":"https://api.github.com/users/fastlane","html_url":"https://github.com/fastlane","followers_url":"https://api.github.com/users/fastlane/followers","following_url":"https://api.github.com/users/fastlane/following{/other_user}","gists_url":"https://api.github.com/users/fastlane/gists{/gist_id}","starred_url":"https://api.github.com/users/fastlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastlane/subscriptions","organizations_url":"https://api.github.com/users/fastlane/orgs","repos_url":"https://api.github.com/users/fastlane/repos","events_url":"https://api.github.com/users/fastlane/events{/privacy}","received_events_url":"https://api.github.com/users/fastlane/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fastlane/ci","description":"Open source, self hosted, mobile optimized CI powered by fastlane","fork":false,"url":"https://api.github.com/repos/fastlane/ci","forks_url":"https://api.github.com/repos/fastlane/ci/forks","keys_url":"https://api.github.com/repos/fastlane/ci/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fastlane/ci/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fastlane/ci/teams","hooks_url":"https://api.github.com/repos/fastlane/ci/hooks","issue_events_url":"https://api.github.com/repos/fastlane/ci/issues/events{/number}","events_url":"https://api.github.com/repos/fastlane/ci/events","assignees_url":"https://api.github.com/repos/fastlane/ci/assignees{/user}","branches_url":"https://api.github.com/repos/fastlane/ci/branches{/branch}","tags_url":"https://api.github.com/repos/fastlane/ci/tags","blobs_url":"https://api.github.com/repos/fastlane/ci/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fastlane/ci/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fastlane/ci/git/refs{/sha}","trees_url":"https://api.github.com/repos/fastlane/ci/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fastlane/ci/statuses/{sha}","languages_url":"https://api.github.com/repos/fastlane/ci/languages","stargazers_url":"https://api.github.com/repos/fastlane/ci/stargazers","contributors_url":"https://api.github.com/repos/fastlane/ci/contributors","subscribers_url":"https://api.github.com/repos/fastlane/ci/subscribers","subscription_url":"https://api.github.com/repos/fastlane/ci/subscription","commits_url":"https://api.github.com/repos/fastlane/ci/commits{/sha}","git_commits_url":"https://api.github.com/repos/fastlane/ci/git/commits{/sha}","comments_url":"https://api.github.com/repos/fastlane/ci/comments{/number}","issue_comment_url":"https://api.github.com/repos/fastlane/ci/issues/comments{/number}","contents_url":"https://api.github.com/repos/fastlane/ci/contents/{+path}","compare_url":"https://api.github.com/repos/fastlane/ci/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fastlane/ci/merges","archive_url":"https://api.github.com/repos/fastlane/ci/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fastlane/ci/downloads","issues_url":"https://api.github.com/repos/fastlane/ci/issues{/number}","pulls_url":"https://api.github.com/repos/fastlane/ci/pulls{/number}","milestones_url":"https://api.github.com/repos/fastlane/ci/milestones{/number}","notifications_url":"https://api.github.com/repos/fastlane/ci/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fastlane/ci/labels{/name}","releases_url":"https://api.github.com/repos/fastlane/ci/releases{/id}","deployments_url":"https://api.github.com/repos/fastlane/ci/deployments","created_at":"2017-12-14T19:17:22Z","updated_at":"2018-04-18T17:14:40Z","pushed_at":"2018-04-18T17:14:38Z","git_url":"git://github.com/fastlane/ci.git","ssh_url":"git@github.com:fastlane/ci.git","clone_url":"https://github.com/fastlane/ci.git","svn_url":"https://github.com/fastlane/ci","homepage":"https://fastlane.tools","size":2374,"stargazers_count":1821,"watchers_count":1821,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":60,"mirror_url":null,"archived":false,"open_issues_count":81,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":60,"open_issues":81,"watchers":1821,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fastlane/ci/pulls/661"},"html":{"href":"https://github.com/fastlane/ci/pull/661"},"issue":{"href":"https://api.github.com/repos/fastlane/ci/issues/661"},"comments":{"href":"https://api.github.com/repos/fastlane/ci/issues/661/comments"},"review_comments":{"href":"https://api.github.com/repos/fastlane/ci/pulls/661/comments"},"review_comment":{"href":"https://api.github.com/repos/fastlane/ci/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fastlane/ci/pulls/661/commits"},"statuses":{"href":"https://api.github.com/repos/fastlane/ci/statuses/fbfdae166a13b4e3e42d480a6b90750bc0e25f4c"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"taquitos"}}