{"action":"created","comment":{"url":"https://api.github.com/repos/acquia/moonshot/pulls/comments/68050406","id":68050406,"diff_hunk":"@@ -138,7 +145,29 @@ def render(placeholder)\n       end\n \n       def log_message\n-        \"Uploading '#{@target_name}' to '#{@bucket}'\"\n+        \"Uploading '#{@target_name}' to '#{@target_bucket}'\"\n+      end\n+\n+      def iam_account\n+        iam_client.list_account_aliases.account_aliases.first\n+      end\n+\n+      def define_bucket\n+        case\n+        # returning already calculated bucket name\n+        when !@target_bucket.nil?","path":"lib/plugins/backup.rb","position":67,"original_position":67,"commit_id":"f1265b8751af4019bbeb0b0bc817e8533bc11ff5","original_commit_id":"f1265b8751af4019bbeb0b0bc817e8533bc11ff5","user":{"login":"gergelyborsothy","id":1119941,"avatar_url":"https://avatars.githubusercontent.com/u/1119941?v=3","gravatar_id":"","url":"https://api.github.com/users/gergelyborsothy","html_url":"https://github.com/gergelyborsothy","followers_url":"https://api.github.com/users/gergelyborsothy/followers","following_url":"https://api.github.com/users/gergelyborsothy/following{/other_user}","gists_url":"https://api.github.com/users/gergelyborsothy/gists{/gist_id}","starred_url":"https://api.github.com/users/gergelyborsothy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gergelyborsothy/subscriptions","organizations_url":"https://api.github.com/users/gergelyborsothy/orgs","repos_url":"https://api.github.com/users/gergelyborsothy/repos","events_url":"https://api.github.com/users/gergelyborsothy/events{/privacy}","received_events_url":"https://api.github.com/users/gergelyborsothy/received_events","type":"User","site_admin":false},"body":"Good call. Fixed","created_at":"2016-06-22T13:17:41Z","updated_at":"2016-06-22T13:17:41Z","html_url":"https://github.com/acquia/moonshot/pull/107#discussion_r68050406","pull_request_url":"https://api.github.com/repos/acquia/moonshot/pulls/107","_links":{"self":{"href":"https://api.github.com/repos/acquia/moonshot/pulls/comments/68050406"},"html":{"href":"https://github.com/acquia/moonshot/pull/107#discussion_r68050406"},"pull_request":{"href":"https://api.github.com/repos/acquia/moonshot/pulls/107"}}},"pull_request":{"url":"https://api.github.com/repos/acquia/moonshot/pulls/107","id":74745965,"html_url":"https://github.com/acquia/moonshot/pull/107","diff_url":"https://github.com/acquia/moonshot/pull/107.diff","patch_url":"https://github.com/acquia/moonshot/pull/107.patch","issue_url":"https://api.github.com/repos/acquia/moonshot/issues/107","number":107,"state":"open","locked":false,"title":"Backup plugin buckets enhancement","user":{"login":"gergelyborsothy","id":1119941,"avatar_url":"https://avatars.githubusercontent.com/u/1119941?v=3","gravatar_id":"","url":"https://api.github.com/users/gergelyborsothy","html_url":"https://github.com/gergelyborsothy","followers_url":"https://api.github.com/users/gergelyborsothy/followers","following_url":"https://api.github.com/users/gergelyborsothy/following{/other_user}","gists_url":"https://api.github.com/users/gergelyborsothy/gists{/gist_id}","starred_url":"https://api.github.com/users/gergelyborsothy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gergelyborsothy/subscriptions","organizations_url":"https://api.github.com/users/gergelyborsothy/orgs","repos_url":"https://api.github.com/users/gergelyborsothy/repos","events_url":"https://api.github.com/users/gergelyborsothy/events{/privacy}","received_events_url":"https://api.github.com/users/gergelyborsothy/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-22T08:52:54Z","updated_at":"2016-06-22T13:17:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e6ca02496a96642f5f0e8aa0eda546f81e2ac4a2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/acquia/moonshot/pulls/107/commits","review_comments_url":"https://api.github.com/repos/acquia/moonshot/pulls/107/comments","review_comment_url":"https://api.github.com/repos/acquia/moonshot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/acquia/moonshot/issues/107/comments","statuses_url":"https://api.github.com/repos/acquia/moonshot/statuses/f1265b8751af4019bbeb0b0bc817e8533bc11ff5","head":{"label":"gergelyborsothy:BackupPluginBuckets","ref":"BackupPluginBuckets","sha":"f1265b8751af4019bbeb0b0bc817e8533bc11ff5","user":{"login":"gergelyborsothy","id":1119941,"avatar_url":"https://avatars.githubusercontent.com/u/1119941?v=3","gravatar_id":"","url":"https://api.github.com/users/gergelyborsothy","html_url":"https://github.com/gergelyborsothy","followers_url":"https://api.github.com/users/gergelyborsothy/followers","following_url":"https://api.github.com/users/gergelyborsothy/following{/other_user}","gists_url":"https://api.github.com/users/gergelyborsothy/gists{/gist_id}","starred_url":"https://api.github.com/users/gergelyborsothy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gergelyborsothy/subscriptions","organizations_url":"https://api.github.com/users/gergelyborsothy/orgs","repos_url":"https://api.github.com/users/gergelyborsothy/repos","events_url":"https://api.github.com/users/gergelyborsothy/events{/privacy}","received_events_url":"https://api.github.com/users/gergelyborsothy/received_events","type":"User","site_admin":false},"repo":{"id":59117799,"name":"moonshot","full_name":"gergelyborsothy/moonshot","owner":{"login":"gergelyborsothy","id":1119941,"avatar_url":"https://avatars.githubusercontent.com/u/1119941?v=3","gravatar_id":"","url":"https://api.github.com/users/gergelyborsothy","html_url":"https://github.com/gergelyborsothy","followers_url":"https://api.github.com/users/gergelyborsothy/followers","following_url":"https://api.github.com/users/gergelyborsothy/following{/other_user}","gists_url":"https://api.github.com/users/gergelyborsothy/gists{/gist_id}","starred_url":"https://api.github.com/users/gergelyborsothy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gergelyborsothy/subscriptions","organizations_url":"https://api.github.com/users/gergelyborsothy/orgs","repos_url":"https://api.github.com/users/gergelyborsothy/repos","events_url":"https://api.github.com/users/gergelyborsothy/events{/privacy}","received_events_url":"https://api.github.com/users/gergelyborsothy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gergelyborsothy/moonshot","description":"Moonshot: Because releasing services shouldn't be a moonshot!","fork":true,"url":"https://api.github.com/repos/gergelyborsothy/moonshot","forks_url":"https://api.github.com/repos/gergelyborsothy/moonshot/forks","keys_url":"https://api.github.com/repos/gergelyborsothy/moonshot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gergelyborsothy/moonshot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gergelyborsothy/moonshot/teams","hooks_url":"https://api.github.com/repos/gergelyborsothy/moonshot/hooks","issue_events_url":"https://api.github.com/repos/gergelyborsothy/moonshot/issues/events{/number}","events_url":"https://api.github.com/repos/gergelyborsothy/moonshot/events","assignees_url":"https://api.github.com/repos/gergelyborsothy/moonshot/assignees{/user}","branches_url":"https://api.github.com/repos/gergelyborsothy/moonshot/branches{/branch}","tags_url":"https://api.github.com/repos/gergelyborsothy/moonshot/tags","blobs_url":"https://api.github.com/repos/gergelyborsothy/moonshot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gergelyborsothy/moonshot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gergelyborsothy/moonshot/git/refs{/sha}","trees_url":"https://api.github.com/repos/gergelyborsothy/moonshot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gergelyborsothy/moonshot/statuses/{sha}","languages_url":"https://api.github.com/repos/gergelyborsothy/moonshot/languages","stargazers_url":"https://api.github.com/repos/gergelyborsothy/moonshot/stargazers","contributors_url":"https://api.github.com/repos/gergelyborsothy/moonshot/contributors","subscribers_url":"https://api.github.com/repos/gergelyborsothy/moonshot/subscribers","subscription_url":"https://api.github.com/repos/gergelyborsothy/moonshot/subscription","commits_url":"https://api.github.com/repos/gergelyborsothy/moonshot/commits{/sha}","git_commits_url":"https://api.github.com/repos/gergelyborsothy/moonshot/git/commits{/sha}","comments_url":"https://api.github.com/repos/gergelyborsothy/moonshot/comments{/number}","issue_comment_url":"https://api.github.com/repos/gergelyborsothy/moonshot/issues/comments{/number}","contents_url":"https://api.github.com/repos/gergelyborsothy/moonshot/contents/{+path}","compare_url":"https://api.github.com/repos/gergelyborsothy/moonshot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gergelyborsothy/moonshot/merges","archive_url":"https://api.github.com/repos/gergelyborsothy/moonshot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gergelyborsothy/moonshot/downloads","issues_url":"https://api.github.com/repos/gergelyborsothy/moonshot/issues{/number}","pulls_url":"https://api.github.com/repos/gergelyborsothy/moonshot/pulls{/number}","milestones_url":"https://api.github.com/repos/gergelyborsothy/moonshot/milestones{/number}","notifications_url":"https://api.github.com/repos/gergelyborsothy/moonshot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gergelyborsothy/moonshot/labels{/name}","releases_url":"https://api.github.com/repos/gergelyborsothy/moonshot/releases{/id}","deployments_url":"https://api.github.com/repos/gergelyborsothy/moonshot/deployments","created_at":"2016-05-18T13:25:25Z","updated_at":"2016-05-18T13:25:26Z","pushed_at":"2016-06-22T08:58:14Z","git_url":"git://github.com/gergelyborsothy/moonshot.git","ssh_url":"git@github.com:gergelyborsothy/moonshot.git","clone_url":"https://github.com/gergelyborsothy/moonshot.git","svn_url":"https://github.com/gergelyborsothy/moonshot","homepage":null,"size":230,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"acquia:master","ref":"master","sha":"be9bfaf479f467e467134d7f369335d43c0d457a","user":{"login":"acquia","id":514789,"avatar_url":"https://avatars.githubusercontent.com/u/514789?v=3","gravatar_id":"","url":"https://api.github.com/users/acquia","html_url":"https://github.com/acquia","followers_url":"https://api.github.com/users/acquia/followers","following_url":"https://api.github.com/users/acquia/following{/other_user}","gists_url":"https://api.github.com/users/acquia/gists{/gist_id}","starred_url":"https://api.github.com/users/acquia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acquia/subscriptions","organizations_url":"https://api.github.com/users/acquia/orgs","repos_url":"https://api.github.com/users/acquia/repos","events_url":"https://api.github.com/users/acquia/events{/privacy}","received_events_url":"https://api.github.com/users/acquia/received_events","type":"Organization","site_admin":false},"repo":{"id":53524088,"name":"moonshot","full_name":"acquia/moonshot","owner":{"login":"acquia","id":514789,"avatar_url":"https://avatars.githubusercontent.com/u/514789?v=3","gravatar_id":"","url":"https://api.github.com/users/acquia","html_url":"https://github.com/acquia","followers_url":"https://api.github.com/users/acquia/followers","following_url":"https://api.github.com/users/acquia/following{/other_user}","gists_url":"https://api.github.com/users/acquia/gists{/gist_id}","starred_url":"https://api.github.com/users/acquia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acquia/subscriptions","organizations_url":"https://api.github.com/users/acquia/orgs","repos_url":"https://api.github.com/users/acquia/repos","events_url":"https://api.github.com/users/acquia/events{/privacy}","received_events_url":"https://api.github.com/users/acquia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/acquia/moonshot","description":"Moonshot: Because releasing services shouldn't be a moonshot!","fork":false,"url":"https://api.github.com/repos/acquia/moonshot","forks_url":"https://api.github.com/repos/acquia/moonshot/forks","keys_url":"https://api.github.com/repos/acquia/moonshot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/acquia/moonshot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/acquia/moonshot/teams","hooks_url":"https://api.github.com/repos/acquia/moonshot/hooks","issue_events_url":"https://api.github.com/repos/acquia/moonshot/issues/events{/number}","events_url":"https://api.github.com/repos/acquia/moonshot/events","assignees_url":"https://api.github.com/repos/acquia/moonshot/assignees{/user}","branches_url":"https://api.github.com/repos/acquia/moonshot/branches{/branch}","tags_url":"https://api.github.com/repos/acquia/moonshot/tags","blobs_url":"https://api.github.com/repos/acquia/moonshot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/acquia/moonshot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/acquia/moonshot/git/refs{/sha}","trees_url":"https://api.github.com/repos/acquia/moonshot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/acquia/moonshot/statuses/{sha}","languages_url":"https://api.github.com/repos/acquia/moonshot/languages","stargazers_url":"https://api.github.com/repos/acquia/moonshot/stargazers","contributors_url":"https://api.github.com/repos/acquia/moonshot/contributors","subscribers_url":"https://api.github.com/repos/acquia/moonshot/subscribers","subscription_url":"https://api.github.com/repos/acquia/moonshot/subscription","commits_url":"https://api.github.com/repos/acquia/moonshot/commits{/sha}","git_commits_url":"https://api.github.com/repos/acquia/moonshot/git/commits{/sha}","comments_url":"https://api.github.com/repos/acquia/moonshot/comments{/number}","issue_comment_url":"https://api.github.com/repos/acquia/moonshot/issues/comments{/number}","contents_url":"https://api.github.com/repos/acquia/moonshot/contents/{+path}","compare_url":"https://api.github.com/repos/acquia/moonshot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/acquia/moonshot/merges","archive_url":"https://api.github.com/repos/acquia/moonshot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/acquia/moonshot/downloads","issues_url":"https://api.github.com/repos/acquia/moonshot/issues{/number}","pulls_url":"https://api.github.com/repos/acquia/moonshot/pulls{/number}","milestones_url":"https://api.github.com/repos/acquia/moonshot/milestones{/number}","notifications_url":"https://api.github.com/repos/acquia/moonshot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/acquia/moonshot/labels{/name}","releases_url":"https://api.github.com/repos/acquia/moonshot/releases{/id}","deployments_url":"https://api.github.com/repos/acquia/moonshot/deployments","created_at":"2016-03-09T19:06:23Z","updated_at":"2016-05-11T19:34:12Z","pushed_at":"2016-06-22T08:58:15Z","git_url":"git://github.com/acquia/moonshot.git","ssh_url":"git@github.com:acquia/moonshot.git","clone_url":"https://github.com/acquia/moonshot.git","svn_url":"https://github.com/acquia/moonshot","homepage":null,"size":248,"stargazers_count":38,"watchers_count":38,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":45,"forks":14,"open_issues":45,"watchers":38,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/acquia/moonshot/pulls/107"},"html":{"href":"https://github.com/acquia/moonshot/pull/107"},"issue":{"href":"https://api.github.com/repos/acquia/moonshot/issues/107"},"comments":{"href":"https://api.github.com/repos/acquia/moonshot/issues/107/comments"},"review_comments":{"href":"https://api.github.com/repos/acquia/moonshot/pulls/107/comments"},"review_comment":{"href":"https://api.github.com/repos/acquia/moonshot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/acquia/moonshot/pulls/107/commits"},"statuses":{"href":"https://api.github.com/repos/acquia/moonshot/statuses/f1265b8751af4019bbeb0b0bc817e8533bc11ff5"}}}}
{"actor":{"display_login":"gergelyborsothy"}}