{"action":"created","comment":{"url":"https://api.github.com/repos/joinhandshake/seira/pulls/comments/180601220","pull_request_review_id":111050451,"id":180601220,"diff_hunk":"@@ -11,23 +11,23 @@ def rails_env(context:)\n         end\n       end\n \n-      def fetch_pods(filters:, app:)\n-        filter_string = { app: app }.merge(filters).map { |k, v| \"#{k}=#{v}\" }.join(',')\n-        output = Seira::Commands.kubectl(\"get pods -o json --selector=#{filter_string}\", context: { app: app }, return_output: true)\n+      def fetch_pods(filters:, context:)\n+        filter_string = { app: context[:app] }.merge(filters).map { |k, v| \"#{k}=#{v}\" }.join(',')\n+        output = Seira::Commands.kubectl(\"get pods -o json --selector=#{filter_string}\", context: context, return_output: true)\n         JSON.parse(output)['items']\n       end\n \n-      def log_link(context:, app:, query:)\n+      def log_link(context:, query:)\n         link = context[:settings].log_link_format\n         return nil if link.nil?\n-        link.gsub! 'APP', app\n+        link.gsub! 'APP', context[:app]\n         link.gsub! 'CLUSTER', context[:cluster]\n         link.gsub! 'QUERY', query\n         link\n       end\n \n-      def get_secret(app:, key:, context: {})\n-        Secrets.new(app: app, action: 'get', args: [], context: context).get(key)\n+      def get_secret(key:, context: )","path":"lib/helpers.rb","position":26,"original_position":26,"commit_id":"3f94f92ccfa0da315e678aaf474163d6b6d10038","original_commit_id":"3f94f92ccfa0da315e678aaf474163d6b6d10038","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Layout/SpaceInsideParens: Space inside parentheses detected.","created_at":"2018-04-10T23:58:01Z","updated_at":"2018-04-10T23:58:01Z","html_url":"https://github.com/joinhandshake/seira/pull/45#discussion_r180601220","pull_request_url":"https://api.github.com/repos/joinhandshake/seira/pulls/45","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/joinhandshake/seira/pulls/comments/180601220"},"html":{"href":"https://github.com/joinhandshake/seira/pull/45#discussion_r180601220"},"pull_request":{"href":"https://api.github.com/repos/joinhandshake/seira/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/joinhandshake/seira/pulls/45","id":180757178,"html_url":"https://github.com/joinhandshake/seira/pull/45","diff_url":"https://github.com/joinhandshake/seira/pull/45.diff","patch_url":"https://github.com/joinhandshake/seira/pull/45.patch","issue_url":"https://api.github.com/repos/joinhandshake/seira/issues/45","number":45,"state":"open","locked":false,"title":"pass in context to fix the secret writing kubectl call","user":{"login":"sgringwe","id":2362370,"avatar_url":"https://avatars3.githubusercontent.com/u/2362370?v=4","gravatar_id":"","url":"https://api.github.com/users/sgringwe","html_url":"https://github.com/sgringwe","followers_url":"https://api.github.com/users/sgringwe/followers","following_url":"https://api.github.com/users/sgringwe/following{/other_user}","gists_url":"https://api.github.com/users/sgringwe/gists{/gist_id}","starred_url":"https://api.github.com/users/sgringwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgringwe/subscriptions","organizations_url":"https://api.github.com/users/sgringwe/orgs","repos_url":"https://api.github.com/users/sgringwe/repos","events_url":"https://api.github.com/users/sgringwe/events{/privacy}","received_events_url":"https://api.github.com/users/sgringwe/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-10T23:50:59Z","updated_at":"2018-04-10T23:58:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa3501b550ceb387c6aa9ae9145fadd633f25f05","assignee":null,"assignees":[],"requested_reviewers":[{"login":"12eh","id":2467799,"avatar_url":"https://avatars0.githubusercontent.com/u/2467799?v=4","gravatar_id":"","url":"https://api.github.com/users/12eh","html_url":"https://github.com/12eh","followers_url":"https://api.github.com/users/12eh/followers","following_url":"https://api.github.com/users/12eh/following{/other_user}","gists_url":"https://api.github.com/users/12eh/gists{/gist_id}","starred_url":"https://api.github.com/users/12eh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/12eh/subscriptions","organizations_url":"https://api.github.com/users/12eh/orgs","repos_url":"https://api.github.com/users/12eh/repos","events_url":"https://api.github.com/users/12eh/events{/privacy}","received_events_url":"https://api.github.com/users/12eh/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":766768979,"url":"https://api.github.com/repos/joinhandshake/seira/labels/ready%20for%20review","name":"ready for review","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/joinhandshake/seira/pulls/45/commits","review_comments_url":"https://api.github.com/repos/joinhandshake/seira/pulls/45/comments","review_comment_url":"https://api.github.com/repos/joinhandshake/seira/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joinhandshake/seira/issues/45/comments","statuses_url":"https://api.github.com/repos/joinhandshake/seira/statuses/3f94f92ccfa0da315e678aaf474163d6b6d10038","head":{"label":"joinhandshake:fix-db-create-secret","ref":"fix-db-create-secret","sha":"3f94f92ccfa0da315e678aaf474163d6b6d10038","user":{"login":"joinhandshake","id":2332267,"avatar_url":"https://avatars1.githubusercontent.com/u/2332267?v=4","gravatar_id":"","url":"https://api.github.com/users/joinhandshake","html_url":"https://github.com/joinhandshake","followers_url":"https://api.github.com/users/joinhandshake/followers","following_url":"https://api.github.com/users/joinhandshake/following{/other_user}","gists_url":"https://api.github.com/users/joinhandshake/gists{/gist_id}","starred_url":"https://api.github.com/users/joinhandshake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joinhandshake/subscriptions","organizations_url":"https://api.github.com/users/joinhandshake/orgs","repos_url":"https://api.github.com/users/joinhandshake/repos","events_url":"https://api.github.com/users/joinhandshake/events{/privacy}","received_events_url":"https://api.github.com/users/joinhandshake/received_events","type":"Organization","site_admin":false},"repo":{"id":112038127,"name":"seira","full_name":"joinhandshake/seira","owner":{"login":"joinhandshake","id":2332267,"avatar_url":"https://avatars1.githubusercontent.com/u/2332267?v=4","gravatar_id":"","url":"https://api.github.com/users/joinhandshake","html_url":"https://github.com/joinhandshake","followers_url":"https://api.github.com/users/joinhandshake/followers","following_url":"https://api.github.com/users/joinhandshake/following{/other_user}","gists_url":"https://api.github.com/users/joinhandshake/gists{/gist_id}","starred_url":"https://api.github.com/users/joinhandshake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joinhandshake/subscriptions","organizations_url":"https://api.github.com/users/joinhandshake/orgs","repos_url":"https://api.github.com/users/joinhandshake/repos","events_url":"https://api.github.com/users/joinhandshake/events{/privacy}","received_events_url":"https://api.github.com/users/joinhandshake/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/joinhandshake/seira","description":"An opinionated library for using Kubernetes","fork":false,"url":"https://api.github.com/repos/joinhandshake/seira","forks_url":"https://api.github.com/repos/joinhandshake/seira/forks","keys_url":"https://api.github.com/repos/joinhandshake/seira/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joinhandshake/seira/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joinhandshake/seira/teams","hooks_url":"https://api.github.com/repos/joinhandshake/seira/hooks","issue_events_url":"https://api.github.com/repos/joinhandshake/seira/issues/events{/number}","events_url":"https://api.github.com/repos/joinhandshake/seira/events","assignees_url":"https://api.github.com/repos/joinhandshake/seira/assignees{/user}","branches_url":"https://api.github.com/repos/joinhandshake/seira/branches{/branch}","tags_url":"https://api.github.com/repos/joinhandshake/seira/tags","blobs_url":"https://api.github.com/repos/joinhandshake/seira/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joinhandshake/seira/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joinhandshake/seira/git/refs{/sha}","trees_url":"https://api.github.com/repos/joinhandshake/seira/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joinhandshake/seira/statuses/{sha}","languages_url":"https://api.github.com/repos/joinhandshake/seira/languages","stargazers_url":"https://api.github.com/repos/joinhandshake/seira/stargazers","contributors_url":"https://api.github.com/repos/joinhandshake/seira/contributors","subscribers_url":"https://api.github.com/repos/joinhandshake/seira/subscribers","subscription_url":"https://api.github.com/repos/joinhandshake/seira/subscription","commits_url":"https://api.github.com/repos/joinhandshake/seira/commits{/sha}","git_commits_url":"https://api.github.com/repos/joinhandshake/seira/git/commits{/sha}","comments_url":"https://api.github.com/repos/joinhandshake/seira/comments{/number}","issue_comment_url":"https://api.github.com/repos/joinhandshake/seira/issues/comments{/number}","contents_url":"https://api.github.com/repos/joinhandshake/seira/contents/{+path}","compare_url":"https://api.github.com/repos/joinhandshake/seira/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joinhandshake/seira/merges","archive_url":"https://api.github.com/repos/joinhandshake/seira/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joinhandshake/seira/downloads","issues_url":"https://api.github.com/repos/joinhandshake/seira/issues{/number}","pulls_url":"https://api.github.com/repos/joinhandshake/seira/pulls{/number}","milestones_url":"https://api.github.com/repos/joinhandshake/seira/milestones{/number}","notifications_url":"https://api.github.com/repos/joinhandshake/seira/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joinhandshake/seira/labels{/name}","releases_url":"https://api.github.com/repos/joinhandshake/seira/releases{/id}","deployments_url":"https://api.github.com/repos/joinhandshake/seira/deployments","created_at":"2017-11-25T22:16:14Z","updated_at":"2018-04-10T23:25:52Z","pushed_at":"2018-04-10T23:57:53Z","git_url":"git://github.com/joinhandshake/seira.git","ssh_url":"git@github.com:joinhandshake/seira.git","clone_url":"https://github.com/joinhandshake/seira.git","svn_url":"https://github.com/joinhandshake/seira","homepage":null,"size":239,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"joinhandshake:master","ref":"master","sha":"624aa02f1e2a9f43d75d6a6b0f90d728a424fcd1","user":{"login":"joinhandshake","id":2332267,"avatar_url":"https://avatars1.githubusercontent.com/u/2332267?v=4","gravatar_id":"","url":"https://api.github.com/users/joinhandshake","html_url":"https://github.com/joinhandshake","followers_url":"https://api.github.com/users/joinhandshake/followers","following_url":"https://api.github.com/users/joinhandshake/following{/other_user}","gists_url":"https://api.github.com/users/joinhandshake/gists{/gist_id}","starred_url":"https://api.github.com/users/joinhandshake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joinhandshake/subscriptions","organizations_url":"https://api.github.com/users/joinhandshake/orgs","repos_url":"https://api.github.com/users/joinhandshake/repos","events_url":"https://api.github.com/users/joinhandshake/events{/privacy}","received_events_url":"https://api.github.com/users/joinhandshake/received_events","type":"Organization","site_admin":false},"repo":{"id":112038127,"name":"seira","full_name":"joinhandshake/seira","owner":{"login":"joinhandshake","id":2332267,"avatar_url":"https://avatars1.githubusercontent.com/u/2332267?v=4","gravatar_id":"","url":"https://api.github.com/users/joinhandshake","html_url":"https://github.com/joinhandshake","followers_url":"https://api.github.com/users/joinhandshake/followers","following_url":"https://api.github.com/users/joinhandshake/following{/other_user}","gists_url":"https://api.github.com/users/joinhandshake/gists{/gist_id}","starred_url":"https://api.github.com/users/joinhandshake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joinhandshake/subscriptions","organizations_url":"https://api.github.com/users/joinhandshake/orgs","repos_url":"https://api.github.com/users/joinhandshake/repos","events_url":"https://api.github.com/users/joinhandshake/events{/privacy}","received_events_url":"https://api.github.com/users/joinhandshake/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/joinhandshake/seira","description":"An opinionated library for using Kubernetes","fork":false,"url":"https://api.github.com/repos/joinhandshake/seira","forks_url":"https://api.github.com/repos/joinhandshake/seira/forks","keys_url":"https://api.github.com/repos/joinhandshake/seira/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joinhandshake/seira/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joinhandshake/seira/teams","hooks_url":"https://api.github.com/repos/joinhandshake/seira/hooks","issue_events_url":"https://api.github.com/repos/joinhandshake/seira/issues/events{/number}","events_url":"https://api.github.com/repos/joinhandshake/seira/events","assignees_url":"https://api.github.com/repos/joinhandshake/seira/assignees{/user}","branches_url":"https://api.github.com/repos/joinhandshake/seira/branches{/branch}","tags_url":"https://api.github.com/repos/joinhandshake/seira/tags","blobs_url":"https://api.github.com/repos/joinhandshake/seira/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joinhandshake/seira/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joinhandshake/seira/git/refs{/sha}","trees_url":"https://api.github.com/repos/joinhandshake/seira/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joinhandshake/seira/statuses/{sha}","languages_url":"https://api.github.com/repos/joinhandshake/seira/languages","stargazers_url":"https://api.github.com/repos/joinhandshake/seira/stargazers","contributors_url":"https://api.github.com/repos/joinhandshake/seira/contributors","subscribers_url":"https://api.github.com/repos/joinhandshake/seira/subscribers","subscription_url":"https://api.github.com/repos/joinhandshake/seira/subscription","commits_url":"https://api.github.com/repos/joinhandshake/seira/commits{/sha}","git_commits_url":"https://api.github.com/repos/joinhandshake/seira/git/commits{/sha}","comments_url":"https://api.github.com/repos/joinhandshake/seira/comments{/number}","issue_comment_url":"https://api.github.com/repos/joinhandshake/seira/issues/comments{/number}","contents_url":"https://api.github.com/repos/joinhandshake/seira/contents/{+path}","compare_url":"https://api.github.com/repos/joinhandshake/seira/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joinhandshake/seira/merges","archive_url":"https://api.github.com/repos/joinhandshake/seira/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joinhandshake/seira/downloads","issues_url":"https://api.github.com/repos/joinhandshake/seira/issues{/number}","pulls_url":"https://api.github.com/repos/joinhandshake/seira/pulls{/number}","milestones_url":"https://api.github.com/repos/joinhandshake/seira/milestones{/number}","notifications_url":"https://api.github.com/repos/joinhandshake/seira/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joinhandshake/seira/labels{/name}","releases_url":"https://api.github.com/repos/joinhandshake/seira/releases{/id}","deployments_url":"https://api.github.com/repos/joinhandshake/seira/deployments","created_at":"2017-11-25T22:16:14Z","updated_at":"2018-04-10T23:25:52Z","pushed_at":"2018-04-10T23:57:53Z","git_url":"git://github.com/joinhandshake/seira.git","ssh_url":"git@github.com:joinhandshake/seira.git","clone_url":"https://github.com/joinhandshake/seira.git","svn_url":"https://github.com/joinhandshake/seira","homepage":null,"size":239,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/joinhandshake/seira/pulls/45"},"html":{"href":"https://github.com/joinhandshake/seira/pull/45"},"issue":{"href":"https://api.github.com/repos/joinhandshake/seira/issues/45"},"comments":{"href":"https://api.github.com/repos/joinhandshake/seira/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/joinhandshake/seira/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/joinhandshake/seira/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joinhandshake/seira/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/joinhandshake/seira/statuses/3f94f92ccfa0da315e678aaf474163d6b6d10038"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"houndci-bot"}}