{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes-client/haskell/pulls/comments/181554425","pull_request_review_id":112209719,"id":181554425,"diff_hunk":"@@ -0,0 +1,29 @@\n+{-# LANGUAGE OverloadedStrings   #-}\n+{-# LANGUAGE ScopedTypeVariables #-}\n+\n+import           Data.Aeson            (decode, encode, parseJSON, toJSON)\n+import           Data.Maybe            (fromJust)\n+import           Data.Yaml             (decodeFile)\n+import           Kubernetes.KubeConfig (AuthInfo (..), Cluster (..), Config,\n+                                        Context (..), getAuthInfo, getCluster,\n+                                        getContext)\n+import           Test.Hspec\n+\n+main :: IO ()\n+main = do\n+  config :: Config <- fromJust <$> decodeFile \"test/testdata/kubeconfig.yaml\"\n+  hspec $ do\n+    describe \"FromJSON and ToJSON instances\" $ do\n+      it \"roundtrip successfully\" $ do","path":"kubeconfig/test/Spec.hs","position":17,"original_position":17,"commit_id":"872a352cba72b817f00561ff1a37ec5d686324b2","original_commit_id":"28e567da155e39273a947544aac763d8594fd1a6","user":{"login":"greenrd","id":164965,"avatar_url":"https://avatars3.githubusercontent.com/u/164965?v=4","gravatar_id":"","url":"https://api.github.com/users/greenrd","html_url":"https://github.com/greenrd","followers_url":"https://api.github.com/users/greenrd/followers","following_url":"https://api.github.com/users/greenrd/following{/other_user}","gists_url":"https://api.github.com/users/greenrd/gists{/gist_id}","starred_url":"https://api.github.com/users/greenrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greenrd/subscriptions","organizations_url":"https://api.github.com/users/greenrd/orgs","repos_url":"https://api.github.com/users/greenrd/repos","events_url":"https://api.github.com/users/greenrd/events{/privacy}","received_events_url":"https://api.github.com/users/greenrd/received_events","type":"User","site_admin":false},"body":"nit: should be _roundtrips_","created_at":"2018-04-14T14:54:30Z","updated_at":"2018-04-14T14:58:36Z","html_url":"https://github.com/kubernetes-client/haskell/pull/15#discussion_r181554425","pull_request_url":"https://api.github.com/repos/kubernetes-client/haskell/pulls/15","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/kubernetes-client/haskell/pulls/comments/181554425"},"html":{"href":"https://github.com/kubernetes-client/haskell/pull/15#discussion_r181554425"},"pull_request":{"href":"https://api.github.com/repos/kubernetes-client/haskell/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes-client/haskell/pulls/15","id":172165788,"html_url":"https://github.com/kubernetes-client/haskell/pull/15","diff_url":"https://github.com/kubernetes-client/haskell/pull/15.diff","patch_url":"https://github.com/kubernetes-client/haskell/pull/15.patch","issue_url":"https://api.github.com/repos/kubernetes-client/haskell/issues/15","number":15,"state":"open","locked":false,"title":"adding a package for working with kubeconfig files","user":{"login":"guoshimin","id":11787293,"avatar_url":"https://avatars2.githubusercontent.com/u/11787293?v=4","gravatar_id":"","url":"https://api.github.com/users/guoshimin","html_url":"https://github.com/guoshimin","followers_url":"https://api.github.com/users/guoshimin/followers","following_url":"https://api.github.com/users/guoshimin/following{/other_user}","gists_url":"https://api.github.com/users/guoshimin/gists{/gist_id}","starred_url":"https://api.github.com/users/guoshimin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guoshimin/subscriptions","organizations_url":"https://api.github.com/users/guoshimin/orgs","repos_url":"https://api.github.com/users/guoshimin/repos","events_url":"https://api.github.com/users/guoshimin/events{/privacy}","received_events_url":"https://api.github.com/users/guoshimin/received_events","type":"User","site_admin":false},"body":"It's a step towards fixing #2.\r\n\r\nCurrently it doesn't do much beyond marshaling/unmarshaling kubeconfigs.","created_at":"2018-03-01T07:56:04Z","updated_at":"2018-04-14T14:58:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e6875304ff9185ee5dabc7b8df0656d5e64136af","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes-client/haskell/pulls/15/commits","review_comments_url":"https://api.github.com/repos/kubernetes-client/haskell/pulls/15/comments","review_comment_url":"https://api.github.com/repos/kubernetes-client/haskell/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes-client/haskell/issues/15/comments","statuses_url":"https://api.github.com/repos/kubernetes-client/haskell/statuses/872a352cba72b817f00561ff1a37ec5d686324b2","head":{"label":"guoshimin:kubeconfig","ref":"kubeconfig","sha":"872a352cba72b817f00561ff1a37ec5d686324b2","user":{"login":"guoshimin","id":11787293,"avatar_url":"https://avatars2.githubusercontent.com/u/11787293?v=4","gravatar_id":"","url":"https://api.github.com/users/guoshimin","html_url":"https://github.com/guoshimin","followers_url":"https://api.github.com/users/guoshimin/followers","following_url":"https://api.github.com/users/guoshimin/following{/other_user}","gists_url":"https://api.github.com/users/guoshimin/gists{/gist_id}","starred_url":"https://api.github.com/users/guoshimin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guoshimin/subscriptions","organizations_url":"https://api.github.com/users/guoshimin/orgs","repos_url":"https://api.github.com/users/guoshimin/repos","events_url":"https://api.github.com/users/guoshimin/events{/privacy}","received_events_url":"https://api.github.com/users/guoshimin/received_events","type":"User","site_admin":false},"repo":{"id":117063131,"name":"kubernetes-client-haskell","full_name":"guoshimin/kubernetes-client-haskell","owner":{"login":"guoshimin","id":11787293,"avatar_url":"https://avatars2.githubusercontent.com/u/11787293?v=4","gravatar_id":"","url":"https://api.github.com/users/guoshimin","html_url":"https://github.com/guoshimin","followers_url":"https://api.github.com/users/guoshimin/followers","following_url":"https://api.github.com/users/guoshimin/following{/other_user}","gists_url":"https://api.github.com/users/guoshimin/gists{/gist_id}","starred_url":"https://api.github.com/users/guoshimin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guoshimin/subscriptions","organizations_url":"https://api.github.com/users/guoshimin/orgs","repos_url":"https://api.github.com/users/guoshimin/repos","events_url":"https://api.github.com/users/guoshimin/events{/privacy}","received_events_url":"https://api.github.com/users/guoshimin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/guoshimin/kubernetes-client-haskell","description":"Haskell client for the kubernetes API. A work in progress.","fork":true,"url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell","forks_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/forks","keys_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/teams","hooks_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/hooks","issue_events_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/issues/events{/number}","events_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/events","assignees_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/assignees{/user}","branches_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/branches{/branch}","tags_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/tags","blobs_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/git/refs{/sha}","trees_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/statuses/{sha}","languages_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/languages","stargazers_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/stargazers","contributors_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/contributors","subscribers_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/subscribers","subscription_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/subscription","commits_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/commits{/sha}","git_commits_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/git/commits{/sha}","comments_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/comments{/number}","issue_comment_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/issues/comments{/number}","contents_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/contents/{+path}","compare_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/merges","archive_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/downloads","issues_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/issues{/number}","pulls_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/pulls{/number}","milestones_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/milestones{/number}","notifications_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/labels{/name}","releases_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/releases{/id}","deployments_url":"https://api.github.com/repos/guoshimin/kubernetes-client-haskell/deployments","created_at":"2018-01-11T07:01:46Z","updated_at":"2018-01-11T07:02:16Z","pushed_at":"2018-04-12T05:33:10Z","git_url":"git://github.com/guoshimin/kubernetes-client-haskell.git","ssh_url":"git@github.com:guoshimin/kubernetes-client-haskell.git","clone_url":"https://github.com/guoshimin/kubernetes-client-haskell.git","svn_url":"https://github.com/guoshimin/kubernetes-client-haskell","homepage":null,"size":1430,"stargazers_count":0,"watchers_count":0,"language":"Haskell","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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kubernetes-client:master","ref":"master","sha":"dee2a3226abc345ff6e4d53bcca635d661dede4c","user":{"login":"kubernetes-client","id":26615988,"avatar_url":"https://avatars3.githubusercontent.com/u/26615988?v=4","gravatar_id":"","url":"https://api.github.com/users/kubernetes-client","html_url":"https://github.com/kubernetes-client","followers_url":"https://api.github.com/users/kubernetes-client/followers","following_url":"https://api.github.com/users/kubernetes-client/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes-client/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes-client/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes-client/subscriptions","organizations_url":"https://api.github.com/users/kubernetes-client/orgs","repos_url":"https://api.github.com/users/kubernetes-client/repos","events_url":"https://api.github.com/users/kubernetes-client/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes-client/received_events","type":"Organization","site_admin":false},"repo":{"id":115049880,"name":"haskell","full_name":"kubernetes-client/haskell","owner":{"login":"kubernetes-client","id":26615988,"avatar_url":"https://avatars3.githubusercontent.com/u/26615988?v=4","gravatar_id":"","url":"https://api.github.com/users/kubernetes-client","html_url":"https://github.com/kubernetes-client","followers_url":"https://api.github.com/users/kubernetes-client/followers","following_url":"https://api.github.com/users/kubernetes-client/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes-client/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes-client/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes-client/subscriptions","organizations_url":"https://api.github.com/users/kubernetes-client/orgs","repos_url":"https://api.github.com/users/kubernetes-client/repos","events_url":"https://api.github.com/users/kubernetes-client/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes-client/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kubernetes-client/haskell","description":"Haskell client for the kubernetes API. A work in progress.","fork":false,"url":"https://api.github.com/repos/kubernetes-client/haskell","forks_url":"https://api.github.com/repos/kubernetes-client/haskell/forks","keys_url":"https://api.github.com/repos/kubernetes-client/haskell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubernetes-client/haskell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubernetes-client/haskell/teams","hooks_url":"https://api.github.com/repos/kubernetes-client/haskell/hooks","issue_events_url":"https://api.github.com/repos/kubernetes-client/haskell/issues/events{/number}","events_url":"https://api.github.com/repos/kubernetes-client/haskell/events","assignees_url":"https://api.github.com/repos/kubernetes-client/haskell/assignees{/user}","branches_url":"https://api.github.com/repos/kubernetes-client/haskell/branches{/branch}","tags_url":"https://api.github.com/repos/kubernetes-client/haskell/tags","blobs_url":"https://api.github.com/repos/kubernetes-client/haskell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubernetes-client/haskell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubernetes-client/haskell/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubernetes-client/haskell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubernetes-client/haskell/statuses/{sha}","languages_url":"https://api.github.com/repos/kubernetes-client/haskell/languages","stargazers_url":"https://api.github.com/repos/kubernetes-client/haskell/stargazers","contributors_url":"https://api.github.com/repos/kubernetes-client/haskell/contributors","subscribers_url":"https://api.github.com/repos/kubernetes-client/haskell/subscribers","subscription_url":"https://api.github.com/repos/kubernetes-client/haskell/subscription","commits_url":"https://api.github.com/repos/kubernetes-client/haskell/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubernetes-client/haskell/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubernetes-client/haskell/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubernetes-client/haskell/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubernetes-client/haskell/contents/{+path}","compare_url":"https://api.github.com/repos/kubernetes-client/haskell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubernetes-client/haskell/merges","archive_url":"https://api.github.com/repos/kubernetes-client/haskell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubernetes-client/haskell/downloads","issues_url":"https://api.github.com/repos/kubernetes-client/haskell/issues{/number}","pulls_url":"https://api.github.com/repos/kubernetes-client/haskell/pulls{/number}","milestones_url":"https://api.github.com/repos/kubernetes-client/haskell/milestones{/number}","notifications_url":"https://api.github.com/repos/kubernetes-client/haskell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubernetes-client/haskell/labels{/name}","releases_url":"https://api.github.com/repos/kubernetes-client/haskell/releases{/id}","deployments_url":"https://api.github.com/repos/kubernetes-client/haskell/deployments","created_at":"2017-12-21T21:46:45Z","updated_at":"2018-04-12T13:13:24Z","pushed_at":"2018-04-12T05:33:11Z","git_url":"git://github.com/kubernetes-client/haskell.git","ssh_url":"git@github.com:kubernetes-client/haskell.git","clone_url":"https://github.com/kubernetes-client/haskell.git","svn_url":"https://github.com/kubernetes-client/haskell","homepage":null,"size":1428,"stargazers_count":14,"watchers_count":14,"language":"Haskell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":5,"open_issues":5,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes-client/haskell/pulls/15"},"html":{"href":"https://github.com/kubernetes-client/haskell/pull/15"},"issue":{"href":"https://api.github.com/repos/kubernetes-client/haskell/issues/15"},"comments":{"href":"https://api.github.com/repos/kubernetes-client/haskell/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes-client/haskell/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes-client/haskell/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes-client/haskell/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes-client/haskell/statuses/872a352cba72b817f00561ff1a37ec5d686324b2"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"greenrd"}}