{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/pulls/comments/200015270","pull_request_review_id":134245494,"id":200015270,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDAxNTI3MA==","diff_hunk":"@@ -0,0 +1,25 @@\n+import { Kubectl } from './kubectl';\n+import * as kubectlUtils from './kubectlUtils';\n+import * as explorer from './explorer';\n+\n+export enum EventDisplayMode {\n+    Show,\n+    Follow\n+}\n+\n+export async function getEvents(kubectl: Kubectl, displayMode: EventDisplayMode, explorerNode?: explorer.ResourceNode) {\n+    let eventsNS;\n+\n+    if (explorerNode) {\n+        eventsNS = explorerNode.id;\n+    } else {\n+        eventsNS = await kubectlUtils.currentNamespace(kubectl);\n+    }\n+\n+    let cmd = ` get events --namespace ${eventsNS}`;\n+    if (EventDisplayMode.Follow === displayMode) {\n+        cmd += ' -w';\n+    }\n+\n+    kubectl.invokeInNewTerminal(cmd, 'Kubernetes Events');","path":"src/kubeEvents.ts","position":24,"original_position":24,"commit_id":"ce027cdc24683d65396c145216f205e7b10c35a0","original_commit_id":"ce027cdc24683d65396c145216f205e7b10c35a0","user":{"login":"kameshsampath","id":947745,"node_id":"MDQ6VXNlcjk0Nzc0NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/947745?v=4","gravatar_id":"","url":"https://api.github.com/users/kameshsampath","html_url":"https://github.com/kameshsampath","followers_url":"https://api.github.com/users/kameshsampath/followers","following_url":"https://api.github.com/users/kameshsampath/following{/other_user}","gists_url":"https://api.github.com/users/kameshsampath/gists{/gist_id}","starred_url":"https://api.github.com/users/kameshsampath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kameshsampath/subscriptions","organizations_url":"https://api.github.com/users/kameshsampath/orgs","repos_url":"https://api.github.com/users/kameshsampath/repos","events_url":"https://api.github.com/users/kameshsampath/events{/privacy}","received_events_url":"https://api.github.com/users/kameshsampath/received_events","type":"User","site_admin":false},"body":"i get you now, sorry I should have handled that way. ","created_at":"2018-07-04T06:00:15Z","updated_at":"2018-07-04T06:00:15Z","html_url":"https://github.com/Azure/vscode-kubernetes-tools/pull/269#discussion_r200015270","pull_request_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/pulls/269","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/pulls/comments/200015270"},"html":{"href":"https://github.com/Azure/vscode-kubernetes-tools/pull/269#discussion_r200015270"},"pull_request":{"href":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/pulls/269"}},"in_reply_to_id":199979953},"pull_request":{"url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/pulls/269","id":198463514,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4NDYzNTE0","html_url":"https://github.com/Azure/vscode-kubernetes-tools/pull/269","diff_url":"https://github.com/Azure/vscode-kubernetes-tools/pull/269.diff","patch_url":"https://github.com/Azure/vscode-kubernetes-tools/pull/269.patch","issue_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/issues/269","number":269,"state":"open","locked":false,"title":"Implementing Show/Follow events at Namespace level","user":{"login":"kameshsampath","id":947745,"node_id":"MDQ6VXNlcjk0Nzc0NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/947745?v=4","gravatar_id":"","url":"https://api.github.com/users/kameshsampath","html_url":"https://github.com/kameshsampath","followers_url":"https://api.github.com/users/kameshsampath/followers","following_url":"https://api.github.com/users/kameshsampath/following{/other_user}","gists_url":"https://api.github.com/users/kameshsampath/gists{/gist_id}","starred_url":"https://api.github.com/users/kameshsampath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kameshsampath/subscriptions","organizations_url":"https://api.github.com/users/kameshsampath/orgs","repos_url":"https://api.github.com/users/kameshsampath/repos","events_url":"https://api.github.com/users/kameshsampath/events{/privacy}","received_events_url":"https://api.github.com/users/kameshsampath/received_events","type":"User","site_admin":false},"body":"Resolves Issue#268\r\n\r\nThis allows the user to show or follow Kubernetes events via `kubectl get events ` \r\n\r\nSigned-off-by: Kamesh Sampath <kamesh.sampath@hotmail.com>","created_at":"2018-06-30T06:54:26Z","updated_at":"2018-07-04T06:00:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dfa6602085860516c7df9baac54efc80c6cb5958","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/pulls/269/commits","review_comments_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/pulls/269/comments","review_comment_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/issues/269/comments","statuses_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/statuses/ce027cdc24683d65396c145216f205e7b10c35a0","head":{"label":"kameshsampath:issue-268","ref":"issue-268","sha":"ce027cdc24683d65396c145216f205e7b10c35a0","user":{"login":"kameshsampath","id":947745,"node_id":"MDQ6VXNlcjk0Nzc0NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/947745?v=4","gravatar_id":"","url":"https://api.github.com/users/kameshsampath","html_url":"https://github.com/kameshsampath","followers_url":"https://api.github.com/users/kameshsampath/followers","following_url":"https://api.github.com/users/kameshsampath/following{/other_user}","gists_url":"https://api.github.com/users/kameshsampath/gists{/gist_id}","starred_url":"https://api.github.com/users/kameshsampath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kameshsampath/subscriptions","organizations_url":"https://api.github.com/users/kameshsampath/orgs","repos_url":"https://api.github.com/users/kameshsampath/repos","events_url":"https://api.github.com/users/kameshsampath/events{/privacy}","received_events_url":"https://api.github.com/users/kameshsampath/received_events","type":"User","site_admin":false},"repo":{"id":138458884,"node_id":"MDEwOlJlcG9zaXRvcnkxMzg0NTg4ODQ=","name":"vscode-kubernetes-tools","full_name":"kameshsampath/vscode-kubernetes-tools","owner":{"login":"kameshsampath","id":947745,"node_id":"MDQ6VXNlcjk0Nzc0NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/947745?v=4","gravatar_id":"","url":"https://api.github.com/users/kameshsampath","html_url":"https://github.com/kameshsampath","followers_url":"https://api.github.com/users/kameshsampath/followers","following_url":"https://api.github.com/users/kameshsampath/following{/other_user}","gists_url":"https://api.github.com/users/kameshsampath/gists{/gist_id}","starred_url":"https://api.github.com/users/kameshsampath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kameshsampath/subscriptions","organizations_url":"https://api.github.com/users/kameshsampath/orgs","repos_url":"https://api.github.com/users/kameshsampath/repos","events_url":"https://api.github.com/users/kameshsampath/events{/privacy}","received_events_url":"https://api.github.com/users/kameshsampath/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kameshsampath/vscode-kubernetes-tools","description":"Kubernetes extension for Visual Studio Code","fork":true,"url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools","forks_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/forks","keys_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/teams","hooks_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/hooks","issue_events_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/issues/events{/number}","events_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/events","assignees_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/assignees{/user}","branches_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/branches{/branch}","tags_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/tags","blobs_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/languages","stargazers_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/stargazers","contributors_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/contributors","subscribers_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/subscribers","subscription_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/subscription","commits_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/contents/{+path}","compare_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/merges","archive_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/downloads","issues_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/issues{/number}","pulls_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/labels{/name}","releases_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/releases{/id}","deployments_url":"https://api.github.com/repos/kameshsampath/vscode-kubernetes-tools/deployments","created_at":"2018-06-24T06:25:52Z","updated_at":"2018-07-04T05:52:04Z","pushed_at":"2018-07-04T05:52:03Z","git_url":"git://github.com/kameshsampath/vscode-kubernetes-tools.git","ssh_url":"git@github.com:kameshsampath/vscode-kubernetes-tools.git","clone_url":"https://github.com/kameshsampath/vscode-kubernetes-tools.git","svn_url":"https://github.com/kameshsampath/vscode-kubernetes-tools","homepage":null,"size":4138,"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":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Azure:master","ref":"master","sha":"6414a1f2cc4fe297bcd744eef3fe0877729b17c4","user":{"login":"Azure","id":6844498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NDQ0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":98263285,"node_id":"MDEwOlJlcG9zaXRvcnk5ODI2MzI4NQ==","name":"vscode-kubernetes-tools","full_name":"Azure/vscode-kubernetes-tools","owner":{"login":"Azure","id":6844498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NDQ0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/vscode-kubernetes-tools","description":"Kubernetes extension for Visual Studio Code","fork":false,"url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools","forks_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/forks","keys_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/teams","hooks_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/hooks","issue_events_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/events","assignees_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/tags","blobs_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/languages","stargazers_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/stargazers","contributors_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/contributors","subscribers_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/subscribers","subscription_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/subscription","commits_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/merges","archive_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/downloads","issues_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/labels{/name}","releases_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/deployments","created_at":"2017-07-25T04:12:07Z","updated_at":"2018-07-04T02:15:50Z","pushed_at":"2018-07-04T05:04:16Z","git_url":"git://github.com/Azure/vscode-kubernetes-tools.git","ssh_url":"git@github.com:Azure/vscode-kubernetes-tools.git","clone_url":"https://github.com/Azure/vscode-kubernetes-tools.git","svn_url":"https://github.com/Azure/vscode-kubernetes-tools","homepage":null,"size":4033,"stargazers_count":94,"watchers_count":94,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"archived":false,"open_issues_count":47,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":24,"open_issues":47,"watchers":94,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/pulls/269"},"html":{"href":"https://github.com/Azure/vscode-kubernetes-tools/pull/269"},"issue":{"href":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/issues/269"},"comments":{"href":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/issues/269/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/pulls/269/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/pulls/269/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/vscode-kubernetes-tools/statuses/ce027cdc24683d65396c145216f205e7b10c35a0"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"kameshsampath"}}