{"action":"created","comment":{"url":"https://api.github.com/repos/fabric8-services/fabric8-env/pulls/comments/232623811","pull_request_review_id":173858862,"id":232623811,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjYyMzgxMQ==","diff_hunk":"@@ -0,0 +1,63 @@\n+package client\n+\n+import (\n+\t\"context\"\n+\t\"fmt\"\n+\t\"net/http\"\n+\t\"net/url\"\n+\n+\t\"github.com/fabric8-services/fabric8-auth-client/auth\"\n+\tgoaclient \"github.com/goadesign/goa/client\"\n+\t\"github.com/goadesign/goa/middleware/security/jwt\"\n+\terrs \"github.com/pkg/errors\"\n+)\n+\n+func NewAuthClient(hostURL string) (*AuthClient, error) {","path":"client/client.go","position":null,"original_position":15,"commit_id":"b7d10d1b7e3ca260aa4e707b887bd5f11b44340a","original_commit_id":"9cc3834ca9ee8594bec329173a149a80d5f2842c","user":{"login":"nurali-techie","id":35909407,"node_id":"MDQ6VXNlcjM1OTA5NDA3","avatar_url":"https://avatars0.githubusercontent.com/u/35909407?v=4","gravatar_id":"","url":"https://api.github.com/users/nurali-techie","html_url":"https://github.com/nurali-techie","followers_url":"https://api.github.com/users/nurali-techie/followers","following_url":"https://api.github.com/users/nurali-techie/following{/other_user}","gists_url":"https://api.github.com/users/nurali-techie/gists{/gist_id}","starred_url":"https://api.github.com/users/nurali-techie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nurali-techie/subscriptions","organizations_url":"https://api.github.com/users/nurali-techie/orgs","repos_url":"https://api.github.com/users/nurali-techie/repos","events_url":"https://api.github.com/users/nurali-techie/events{/privacy}","received_events_url":"https://api.github.com/users/nurali-techie/received_events","type":"User","site_admin":false},"body":"done [4879a4d](https://github.com/fabric8-services/fabric8-env/pull/14/commits/4879a4d820de1ba0576c9d2df9e96aa3d1ca054a)","created_at":"2018-11-12T11:31:13Z","updated_at":"2018-11-12T11:31:14Z","html_url":"https://github.com/fabric8-services/fabric8-env/pull/14#discussion_r232623811","pull_request_url":"https://api.github.com/repos/fabric8-services/fabric8-env/pulls/14","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/fabric8-services/fabric8-env/pulls/comments/232623811"},"html":{"href":"https://github.com/fabric8-services/fabric8-env/pull/14#discussion_r232623811"},"pull_request":{"href":"https://api.github.com/repos/fabric8-services/fabric8-env/pulls/14"}},"in_reply_to_id":232495073},"pull_request":{"url":"https://api.github.com/repos/fabric8-services/fabric8-env/pulls/14","id":229934506,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5OTM0NTA2","html_url":"https://github.com/fabric8-services/fabric8-env/pull/14","diff_url":"https://github.com/fabric8-services/fabric8-env/pull/14.diff","patch_url":"https://github.com/fabric8-services/fabric8-env/pull/14.patch","issue_url":"https://api.github.com/repos/fabric8-services/fabric8-env/issues/14","number":14,"state":"open","locked":false,"title":"WIP: check user permission in env api","user":{"login":"nurali-techie","id":35909407,"node_id":"MDQ6VXNlcjM1OTA5NDA3","avatar_url":"https://avatars0.githubusercontent.com/u/35909407?v=4","gravatar_id":"","url":"https://api.github.com/users/nurali-techie","html_url":"https://github.com/nurali-techie","followers_url":"https://api.github.com/users/nurali-techie/followers","following_url":"https://api.github.com/users/nurali-techie/following{/other_user}","gists_url":"https://api.github.com/users/nurali-techie/gists{/gist_id}","starred_url":"https://api.github.com/users/nurali-techie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nurali-techie/subscriptions","organizations_url":"https://api.github.com/users/nurali-techie/orgs","repos_url":"https://api.github.com/users/nurali-techie/repos","events_url":"https://api.github.com/users/nurali-techie/events{/privacy}","received_events_url":"https://api.github.com/users/nurali-techie/received_events","type":"User","site_admin":false},"body":"TODO:\r\n- [ ] tests\r\n\r\nFix - https://github.com/fabric8-services/fabric8-env/issues/10","created_at":"2018-11-11T06:39:38Z","updated_at":"2018-11-12T11:31:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5a9a7f5a9947d8780e371737bef12fde80474cea","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/fabric8-services/fabric8-env/pulls/14/commits","review_comments_url":"https://api.github.com/repos/fabric8-services/fabric8-env/pulls/14/comments","review_comment_url":"https://api.github.com/repos/fabric8-services/fabric8-env/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fabric8-services/fabric8-env/issues/14/comments","statuses_url":"https://api.github.com/repos/fabric8-services/fabric8-env/statuses/b7d10d1b7e3ca260aa4e707b887bd5f11b44340a","head":{"label":"nurali-techie:i10","ref":"i10","sha":"b7d10d1b7e3ca260aa4e707b887bd5f11b44340a","user":{"login":"nurali-techie","id":35909407,"node_id":"MDQ6VXNlcjM1OTA5NDA3","avatar_url":"https://avatars0.githubusercontent.com/u/35909407?v=4","gravatar_id":"","url":"https://api.github.com/users/nurali-techie","html_url":"https://github.com/nurali-techie","followers_url":"https://api.github.com/users/nurali-techie/followers","following_url":"https://api.github.com/users/nurali-techie/following{/other_user}","gists_url":"https://api.github.com/users/nurali-techie/gists{/gist_id}","starred_url":"https://api.github.com/users/nurali-techie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nurali-techie/subscriptions","organizations_url":"https://api.github.com/users/nurali-techie/orgs","repos_url":"https://api.github.com/users/nurali-techie/repos","events_url":"https://api.github.com/users/nurali-techie/events{/privacy}","received_events_url":"https://api.github.com/users/nurali-techie/received_events","type":"User","site_admin":false},"repo":{"id":153106105,"node_id":"MDEwOlJlcG9zaXRvcnkxNTMxMDYxMDU=","name":"fabric8-env","full_name":"nurali-techie/fabric8-env","private":false,"owner":{"login":"nurali-techie","id":35909407,"node_id":"MDQ6VXNlcjM1OTA5NDA3","avatar_url":"https://avatars0.githubusercontent.com/u/35909407?v=4","gravatar_id":"","url":"https://api.github.com/users/nurali-techie","html_url":"https://github.com/nurali-techie","followers_url":"https://api.github.com/users/nurali-techie/followers","following_url":"https://api.github.com/users/nurali-techie/following{/other_user}","gists_url":"https://api.github.com/users/nurali-techie/gists{/gist_id}","starred_url":"https://api.github.com/users/nurali-techie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nurali-techie/subscriptions","organizations_url":"https://api.github.com/users/nurali-techie/orgs","repos_url":"https://api.github.com/users/nurali-techie/repos","events_url":"https://api.github.com/users/nurali-techie/events{/privacy}","received_events_url":"https://api.github.com/users/nurali-techie/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nurali-techie/fabric8-env","description":"Environment Service","fork":true,"url":"https://api.github.com/repos/nurali-techie/fabric8-env","forks_url":"https://api.github.com/repos/nurali-techie/fabric8-env/forks","keys_url":"https://api.github.com/repos/nurali-techie/fabric8-env/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nurali-techie/fabric8-env/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nurali-techie/fabric8-env/teams","hooks_url":"https://api.github.com/repos/nurali-techie/fabric8-env/hooks","issue_events_url":"https://api.github.com/repos/nurali-techie/fabric8-env/issues/events{/number}","events_url":"https://api.github.com/repos/nurali-techie/fabric8-env/events","assignees_url":"https://api.github.com/repos/nurali-techie/fabric8-env/assignees{/user}","branches_url":"https://api.github.com/repos/nurali-techie/fabric8-env/branches{/branch}","tags_url":"https://api.github.com/repos/nurali-techie/fabric8-env/tags","blobs_url":"https://api.github.com/repos/nurali-techie/fabric8-env/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nurali-techie/fabric8-env/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nurali-techie/fabric8-env/git/refs{/sha}","trees_url":"https://api.github.com/repos/nurali-techie/fabric8-env/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nurali-techie/fabric8-env/statuses/{sha}","languages_url":"https://api.github.com/repos/nurali-techie/fabric8-env/languages","stargazers_url":"https://api.github.com/repos/nurali-techie/fabric8-env/stargazers","contributors_url":"https://api.github.com/repos/nurali-techie/fabric8-env/contributors","subscribers_url":"https://api.github.com/repos/nurali-techie/fabric8-env/subscribers","subscription_url":"https://api.github.com/repos/nurali-techie/fabric8-env/subscription","commits_url":"https://api.github.com/repos/nurali-techie/fabric8-env/commits{/sha}","git_commits_url":"https://api.github.com/repos/nurali-techie/fabric8-env/git/commits{/sha}","comments_url":"https://api.github.com/repos/nurali-techie/fabric8-env/comments{/number}","issue_comment_url":"https://api.github.com/repos/nurali-techie/fabric8-env/issues/comments{/number}","contents_url":"https://api.github.com/repos/nurali-techie/fabric8-env/contents/{+path}","compare_url":"https://api.github.com/repos/nurali-techie/fabric8-env/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nurali-techie/fabric8-env/merges","archive_url":"https://api.github.com/repos/nurali-techie/fabric8-env/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nurali-techie/fabric8-env/downloads","issues_url":"https://api.github.com/repos/nurali-techie/fabric8-env/issues{/number}","pulls_url":"https://api.github.com/repos/nurali-techie/fabric8-env/pulls{/number}","milestones_url":"https://api.github.com/repos/nurali-techie/fabric8-env/milestones{/number}","notifications_url":"https://api.github.com/repos/nurali-techie/fabric8-env/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nurali-techie/fabric8-env/labels{/name}","releases_url":"https://api.github.com/repos/nurali-techie/fabric8-env/releases{/id}","deployments_url":"https://api.github.com/repos/nurali-techie/fabric8-env/deployments","created_at":"2018-10-15T12:07:10Z","updated_at":"2018-11-09T08:04:06Z","pushed_at":"2018-11-12T11:30:21Z","git_url":"git://github.com/nurali-techie/fabric8-env.git","ssh_url":"git@github.com:nurali-techie/fabric8-env.git","clone_url":"https://github.com/nurali-techie/fabric8-env.git","svn_url":"https://github.com/nurali-techie/fabric8-env","homepage":null,"size":56,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"fabric8-services:master","ref":"master","sha":"a701d97a6d9240ddfbd18ccaa50c2adce6d48429","user":{"login":"fabric8-services","id":29751612,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NzUxNjEy","avatar_url":"https://avatars1.githubusercontent.com/u/29751612?v=4","gravatar_id":"","url":"https://api.github.com/users/fabric8-services","html_url":"https://github.com/fabric8-services","followers_url":"https://api.github.com/users/fabric8-services/followers","following_url":"https://api.github.com/users/fabric8-services/following{/other_user}","gists_url":"https://api.github.com/users/fabric8-services/gists{/gist_id}","starred_url":"https://api.github.com/users/fabric8-services/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabric8-services/subscriptions","organizations_url":"https://api.github.com/users/fabric8-services/orgs","repos_url":"https://api.github.com/users/fabric8-services/repos","events_url":"https://api.github.com/users/fabric8-services/events{/privacy}","received_events_url":"https://api.github.com/users/fabric8-services/received_events","type":"Organization","site_admin":false},"repo":{"id":152724098,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI3MjQwOTg=","name":"fabric8-env","full_name":"fabric8-services/fabric8-env","private":false,"owner":{"login":"fabric8-services","id":29751612,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NzUxNjEy","avatar_url":"https://avatars1.githubusercontent.com/u/29751612?v=4","gravatar_id":"","url":"https://api.github.com/users/fabric8-services","html_url":"https://github.com/fabric8-services","followers_url":"https://api.github.com/users/fabric8-services/followers","following_url":"https://api.github.com/users/fabric8-services/following{/other_user}","gists_url":"https://api.github.com/users/fabric8-services/gists{/gist_id}","starred_url":"https://api.github.com/users/fabric8-services/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabric8-services/subscriptions","organizations_url":"https://api.github.com/users/fabric8-services/orgs","repos_url":"https://api.github.com/users/fabric8-services/repos","events_url":"https://api.github.com/users/fabric8-services/events{/privacy}","received_events_url":"https://api.github.com/users/fabric8-services/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/fabric8-services/fabric8-env","description":"Environment Service","fork":false,"url":"https://api.github.com/repos/fabric8-services/fabric8-env","forks_url":"https://api.github.com/repos/fabric8-services/fabric8-env/forks","keys_url":"https://api.github.com/repos/fabric8-services/fabric8-env/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fabric8-services/fabric8-env/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fabric8-services/fabric8-env/teams","hooks_url":"https://api.github.com/repos/fabric8-services/fabric8-env/hooks","issue_events_url":"https://api.github.com/repos/fabric8-services/fabric8-env/issues/events{/number}","events_url":"https://api.github.com/repos/fabric8-services/fabric8-env/events","assignees_url":"https://api.github.com/repos/fabric8-services/fabric8-env/assignees{/user}","branches_url":"https://api.github.com/repos/fabric8-services/fabric8-env/branches{/branch}","tags_url":"https://api.github.com/repos/fabric8-services/fabric8-env/tags","blobs_url":"https://api.github.com/repos/fabric8-services/fabric8-env/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fabric8-services/fabric8-env/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fabric8-services/fabric8-env/git/refs{/sha}","trees_url":"https://api.github.com/repos/fabric8-services/fabric8-env/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fabric8-services/fabric8-env/statuses/{sha}","languages_url":"https://api.github.com/repos/fabric8-services/fabric8-env/languages","stargazers_url":"https://api.github.com/repos/fabric8-services/fabric8-env/stargazers","contributors_url":"https://api.github.com/repos/fabric8-services/fabric8-env/contributors","subscribers_url":"https://api.github.com/repos/fabric8-services/fabric8-env/subscribers","subscription_url":"https://api.github.com/repos/fabric8-services/fabric8-env/subscription","commits_url":"https://api.github.com/repos/fabric8-services/fabric8-env/commits{/sha}","git_commits_url":"https://api.github.com/repos/fabric8-services/fabric8-env/git/commits{/sha}","comments_url":"https://api.github.com/repos/fabric8-services/fabric8-env/comments{/number}","issue_comment_url":"https://api.github.com/repos/fabric8-services/fabric8-env/issues/comments{/number}","contents_url":"https://api.github.com/repos/fabric8-services/fabric8-env/contents/{+path}","compare_url":"https://api.github.com/repos/fabric8-services/fabric8-env/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fabric8-services/fabric8-env/merges","archive_url":"https://api.github.com/repos/fabric8-services/fabric8-env/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fabric8-services/fabric8-env/downloads","issues_url":"https://api.github.com/repos/fabric8-services/fabric8-env/issues{/number}","pulls_url":"https://api.github.com/repos/fabric8-services/fabric8-env/pulls{/number}","milestones_url":"https://api.github.com/repos/fabric8-services/fabric8-env/milestones{/number}","notifications_url":"https://api.github.com/repos/fabric8-services/fabric8-env/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fabric8-services/fabric8-env/labels{/name}","releases_url":"https://api.github.com/repos/fabric8-services/fabric8-env/releases{/id}","deployments_url":"https://api.github.com/repos/fabric8-services/fabric8-env/deployments","created_at":"2018-10-12T09:07:03Z","updated_at":"2018-11-07T01:54:38Z","pushed_at":"2018-11-12T11:30:23Z","git_url":"git://github.com/fabric8-services/fabric8-env.git","ssh_url":"git@github.com:fabric8-services/fabric8-env.git","clone_url":"https://github.com/fabric8-services/fabric8-env.git","svn_url":"https://github.com/fabric8-services/fabric8-env","homepage":null,"size":50,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":3,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fabric8-services/fabric8-env/pulls/14"},"html":{"href":"https://github.com/fabric8-services/fabric8-env/pull/14"},"issue":{"href":"https://api.github.com/repos/fabric8-services/fabric8-env/issues/14"},"comments":{"href":"https://api.github.com/repos/fabric8-services/fabric8-env/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/fabric8-services/fabric8-env/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/fabric8-services/fabric8-env/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fabric8-services/fabric8-env/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/fabric8-services/fabric8-env/statuses/b7d10d1b7e3ca260aa4e707b887bd5f11b44340a"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"nurali-techie"}}