{"action":"created","comment":{"url":"https://api.github.com/repos/banzaicloud/pipeline/pulls/comments/176375376","pull_request_review_id":106063089,"id":176375376,"diff_hunk":"@@ -40,18 +48,55 @@ type DroneUser struct {\n \tSynced int64  `gorm:\"column:user_synced\"`\n }\n \n+type UserOrganization struct {","path":"auth/user.go","position":41,"original_position":41,"commit_id":"578e91041baa32e8e8cdd5bbe74093f8e4d241fc","original_commit_id":"578e91041baa32e8e8cdd5bbe74093f8e4d241fc","user":{"login":"baluchicken","id":14196407,"avatar_url":"https://avatars0.githubusercontent.com/u/14196407?v=4","gravatar_id":"","url":"https://api.github.com/users/baluchicken","html_url":"https://github.com/baluchicken","followers_url":"https://api.github.com/users/baluchicken/followers","following_url":"https://api.github.com/users/baluchicken/following{/other_user}","gists_url":"https://api.github.com/users/baluchicken/gists{/gist_id}","starred_url":"https://api.github.com/users/baluchicken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baluchicken/subscriptions","organizations_url":"https://api.github.com/users/baluchicken/orgs","repos_url":"https://api.github.com/users/baluchicken/repos","events_url":"https://api.github.com/users/baluchicken/events{/privacy}","received_events_url":"https://api.github.com/users/baluchicken/received_events","type":"User","site_admin":false},"body":"Doc is missing","created_at":"2018-03-22T10:44:04Z","updated_at":"2018-03-22T10:46:58Z","html_url":"https://github.com/banzaicloud/pipeline/pull/255#discussion_r176375376","pull_request_url":"https://api.github.com/repos/banzaicloud/pipeline/pulls/255","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/banzaicloud/pipeline/pulls/comments/176375376"},"html":{"href":"https://github.com/banzaicloud/pipeline/pull/255#discussion_r176375376"},"pull_request":{"href":"https://api.github.com/repos/banzaicloud/pipeline/pulls/255"}}},"pull_request":{"url":"https://api.github.com/repos/banzaicloud/pipeline/pulls/255","id":174047525,"html_url":"https://github.com/banzaicloud/pipeline/pull/255","diff_url":"https://github.com/banzaicloud/pipeline/pull/255.diff","patch_url":"https://github.com/banzaicloud/pipeline/pull/255.patch","issue_url":"https://api.github.com/repos/banzaicloud/pipeline/issues/255","number":255,"state":"open","locked":false,"title":"Organizations","user":{"login":"bonifaido","id":23779,"avatar_url":"https://avatars0.githubusercontent.com/u/23779?v=4","gravatar_id":"","url":"https://api.github.com/users/bonifaido","html_url":"https://github.com/bonifaido","followers_url":"https://api.github.com/users/bonifaido/followers","following_url":"https://api.github.com/users/bonifaido/following{/other_user}","gists_url":"https://api.github.com/users/bonifaido/gists{/gist_id}","starred_url":"https://api.github.com/users/bonifaido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bonifaido/subscriptions","organizations_url":"https://api.github.com/users/bonifaido/orgs","repos_url":"https://api.github.com/users/bonifaido/repos","events_url":"https://api.github.com/users/bonifaido/events{/privacy}","received_events_url":"https://api.github.com/users/bonifaido/received_events","type":"User","site_admin":false},"body":"This PR will introduce the basic organisation handling of Pipeline. It includes:\r\n- New API endpoints with orgs/:orgId:\r\n- Default organisation for each user (Github name)\r\n- Secret handling (AWS, AKS, GKE) with organisation scope","created_at":"2018-03-09T16:24:17Z","updated_at":"2018-03-22T10:46:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7b9b375010132ff9d3bb559b34cea4f3b0f581f1","assignee":null,"assignees":[],"requested_reviewers":[{"login":"stoader","id":6655123,"avatar_url":"https://avatars3.githubusercontent.com/u/6655123?v=4","gravatar_id":"","url":"https://api.github.com/users/stoader","html_url":"https://github.com/stoader","followers_url":"https://api.github.com/users/stoader/followers","following_url":"https://api.github.com/users/stoader/following{/other_user}","gists_url":"https://api.github.com/users/stoader/gists{/gist_id}","starred_url":"https://api.github.com/users/stoader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stoader/subscriptions","organizations_url":"https://api.github.com/users/stoader/orgs","repos_url":"https://api.github.com/users/stoader/repos","events_url":"https://api.github.com/users/stoader/events{/privacy}","received_events_url":"https://api.github.com/users/stoader/received_events","type":"User","site_admin":false},{"login":"colin014","id":6968817,"avatar_url":"https://avatars3.githubusercontent.com/u/6968817?v=4","gravatar_id":"","url":"https://api.github.com/users/colin014","html_url":"https://github.com/colin014","followers_url":"https://api.github.com/users/colin014/followers","following_url":"https://api.github.com/users/colin014/following{/other_user}","gists_url":"https://api.github.com/users/colin014/gists{/gist_id}","starred_url":"https://api.github.com/users/colin014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colin014/subscriptions","organizations_url":"https://api.github.com/users/colin014/orgs","repos_url":"https://api.github.com/users/colin014/repos","events_url":"https://api.github.com/users/colin014/events{/privacy}","received_events_url":"https://api.github.com/users/colin014/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/banzaicloud/pipeline/pulls/255/commits","review_comments_url":"https://api.github.com/repos/banzaicloud/pipeline/pulls/255/comments","review_comment_url":"https://api.github.com/repos/banzaicloud/pipeline/pulls/comments{/number}","comments_url":"https://api.github.com/repos/banzaicloud/pipeline/issues/255/comments","statuses_url":"https://api.github.com/repos/banzaicloud/pipeline/statuses/578e91041baa32e8e8cdd5bbe74093f8e4d241fc","head":{"label":"banzaicloud:organizations","ref":"organizations","sha":"578e91041baa32e8e8cdd5bbe74093f8e4d241fc","user":{"login":"banzaicloud","id":32848483,"avatar_url":"https://avatars2.githubusercontent.com/u/32848483?v=4","gravatar_id":"","url":"https://api.github.com/users/banzaicloud","html_url":"https://github.com/banzaicloud","followers_url":"https://api.github.com/users/banzaicloud/followers","following_url":"https://api.github.com/users/banzaicloud/following{/other_user}","gists_url":"https://api.github.com/users/banzaicloud/gists{/gist_id}","starred_url":"https://api.github.com/users/banzaicloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/banzaicloud/subscriptions","organizations_url":"https://api.github.com/users/banzaicloud/orgs","repos_url":"https://api.github.com/users/banzaicloud/repos","events_url":"https://api.github.com/users/banzaicloud/events{/privacy}","received_events_url":"https://api.github.com/users/banzaicloud/received_events","type":"Organization","site_admin":false},"repo":{"id":108758373,"name":"pipeline","full_name":"banzaicloud/pipeline","owner":{"login":"banzaicloud","id":32848483,"avatar_url":"https://avatars2.githubusercontent.com/u/32848483?v=4","gravatar_id":"","url":"https://api.github.com/users/banzaicloud","html_url":"https://github.com/banzaicloud","followers_url":"https://api.github.com/users/banzaicloud/followers","following_url":"https://api.github.com/users/banzaicloud/following{/other_user}","gists_url":"https://api.github.com/users/banzaicloud/gists{/gist_id}","starred_url":"https://api.github.com/users/banzaicloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/banzaicloud/subscriptions","organizations_url":"https://api.github.com/users/banzaicloud/orgs","repos_url":"https://api.github.com/users/banzaicloud/repos","events_url":"https://api.github.com/users/banzaicloud/events{/privacy}","received_events_url":"https://api.github.com/users/banzaicloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/banzaicloud/pipeline","description":"REST API to provision or reuse managed Kubernetes clusters in the cloud and deploy cloud native apps","fork":false,"url":"https://api.github.com/repos/banzaicloud/pipeline","forks_url":"https://api.github.com/repos/banzaicloud/pipeline/forks","keys_url":"https://api.github.com/repos/banzaicloud/pipeline/keys{/key_id}","collaborators_url":"https://api.github.com/repos/banzaicloud/pipeline/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/banzaicloud/pipeline/teams","hooks_url":"https://api.github.com/repos/banzaicloud/pipeline/hooks","issue_events_url":"https://api.github.com/repos/banzaicloud/pipeline/issues/events{/number}","events_url":"https://api.github.com/repos/banzaicloud/pipeline/events","assignees_url":"https://api.github.com/repos/banzaicloud/pipeline/assignees{/user}","branches_url":"https://api.github.com/repos/banzaicloud/pipeline/branches{/branch}","tags_url":"https://api.github.com/repos/banzaicloud/pipeline/tags","blobs_url":"https://api.github.com/repos/banzaicloud/pipeline/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/banzaicloud/pipeline/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/banzaicloud/pipeline/git/refs{/sha}","trees_url":"https://api.github.com/repos/banzaicloud/pipeline/git/trees{/sha}","statuses_url":"https://api.github.com/repos/banzaicloud/pipeline/statuses/{sha}","languages_url":"https://api.github.com/repos/banzaicloud/pipeline/languages","stargazers_url":"https://api.github.com/repos/banzaicloud/pipeline/stargazers","contributors_url":"https://api.github.com/repos/banzaicloud/pipeline/contributors","subscribers_url":"https://api.github.com/repos/banzaicloud/pipeline/subscribers","subscription_url":"https://api.github.com/repos/banzaicloud/pipeline/subscription","commits_url":"https://api.github.com/repos/banzaicloud/pipeline/commits{/sha}","git_commits_url":"https://api.github.com/repos/banzaicloud/pipeline/git/commits{/sha}","comments_url":"https://api.github.com/repos/banzaicloud/pipeline/comments{/number}","issue_comment_url":"https://api.github.com/repos/banzaicloud/pipeline/issues/comments{/number}","contents_url":"https://api.github.com/repos/banzaicloud/pipeline/contents/{+path}","compare_url":"https://api.github.com/repos/banzaicloud/pipeline/compare/{base}...{head}","merges_url":"https://api.github.com/repos/banzaicloud/pipeline/merges","archive_url":"https://api.github.com/repos/banzaicloud/pipeline/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/banzaicloud/pipeline/downloads","issues_url":"https://api.github.com/repos/banzaicloud/pipeline/issues{/number}","pulls_url":"https://api.github.com/repos/banzaicloud/pipeline/pulls{/number}","milestones_url":"https://api.github.com/repos/banzaicloud/pipeline/milestones{/number}","notifications_url":"https://api.github.com/repos/banzaicloud/pipeline/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/banzaicloud/pipeline/labels{/name}","releases_url":"https://api.github.com/repos/banzaicloud/pipeline/releases{/id}","deployments_url":"https://api.github.com/repos/banzaicloud/pipeline/deployments","created_at":"2017-10-29T18:07:56Z","updated_at":"2018-03-22T09:57:24Z","pushed_at":"2018-03-22T10:39:34Z","git_url":"git://github.com/banzaicloud/pipeline.git","ssh_url":"git@github.com:banzaicloud/pipeline.git","clone_url":"https://github.com/banzaicloud/pipeline.git","svn_url":"https://github.com/banzaicloud/pipeline","homepage":"","size":67954,"stargazers_count":295,"watchers_count":295,"language":"Go","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":8,"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":24,"open_issues":8,"watchers":295,"default_branch":"master"}},"base":{"label":"banzaicloud:master","ref":"master","sha":"02e6eab302c8460fdacbd2584e6e9e1284abba1b","user":{"login":"banzaicloud","id":32848483,"avatar_url":"https://avatars2.githubusercontent.com/u/32848483?v=4","gravatar_id":"","url":"https://api.github.com/users/banzaicloud","html_url":"https://github.com/banzaicloud","followers_url":"https://api.github.com/users/banzaicloud/followers","following_url":"https://api.github.com/users/banzaicloud/following{/other_user}","gists_url":"https://api.github.com/users/banzaicloud/gists{/gist_id}","starred_url":"https://api.github.com/users/banzaicloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/banzaicloud/subscriptions","organizations_url":"https://api.github.com/users/banzaicloud/orgs","repos_url":"https://api.github.com/users/banzaicloud/repos","events_url":"https://api.github.com/users/banzaicloud/events{/privacy}","received_events_url":"https://api.github.com/users/banzaicloud/received_events","type":"Organization","site_admin":false},"repo":{"id":108758373,"name":"pipeline","full_name":"banzaicloud/pipeline","owner":{"login":"banzaicloud","id":32848483,"avatar_url":"https://avatars2.githubusercontent.com/u/32848483?v=4","gravatar_id":"","url":"https://api.github.com/users/banzaicloud","html_url":"https://github.com/banzaicloud","followers_url":"https://api.github.com/users/banzaicloud/followers","following_url":"https://api.github.com/users/banzaicloud/following{/other_user}","gists_url":"https://api.github.com/users/banzaicloud/gists{/gist_id}","starred_url":"https://api.github.com/users/banzaicloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/banzaicloud/subscriptions","organizations_url":"https://api.github.com/users/banzaicloud/orgs","repos_url":"https://api.github.com/users/banzaicloud/repos","events_url":"https://api.github.com/users/banzaicloud/events{/privacy}","received_events_url":"https://api.github.com/users/banzaicloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/banzaicloud/pipeline","description":"REST API to provision or reuse managed Kubernetes clusters in the cloud and deploy cloud native apps","fork":false,"url":"https://api.github.com/repos/banzaicloud/pipeline","forks_url":"https://api.github.com/repos/banzaicloud/pipeline/forks","keys_url":"https://api.github.com/repos/banzaicloud/pipeline/keys{/key_id}","collaborators_url":"https://api.github.com/repos/banzaicloud/pipeline/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/banzaicloud/pipeline/teams","hooks_url":"https://api.github.com/repos/banzaicloud/pipeline/hooks","issue_events_url":"https://api.github.com/repos/banzaicloud/pipeline/issues/events{/number}","events_url":"https://api.github.com/repos/banzaicloud/pipeline/events","assignees_url":"https://api.github.com/repos/banzaicloud/pipeline/assignees{/user}","branches_url":"https://api.github.com/repos/banzaicloud/pipeline/branches{/branch}","tags_url":"https://api.github.com/repos/banzaicloud/pipeline/tags","blobs_url":"https://api.github.com/repos/banzaicloud/pipeline/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/banzaicloud/pipeline/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/banzaicloud/pipeline/git/refs{/sha}","trees_url":"https://api.github.com/repos/banzaicloud/pipeline/git/trees{/sha}","statuses_url":"https://api.github.com/repos/banzaicloud/pipeline/statuses/{sha}","languages_url":"https://api.github.com/repos/banzaicloud/pipeline/languages","stargazers_url":"https://api.github.com/repos/banzaicloud/pipeline/stargazers","contributors_url":"https://api.github.com/repos/banzaicloud/pipeline/contributors","subscribers_url":"https://api.github.com/repos/banzaicloud/pipeline/subscribers","subscription_url":"https://api.github.com/repos/banzaicloud/pipeline/subscription","commits_url":"https://api.github.com/repos/banzaicloud/pipeline/commits{/sha}","git_commits_url":"https://api.github.com/repos/banzaicloud/pipeline/git/commits{/sha}","comments_url":"https://api.github.com/repos/banzaicloud/pipeline/comments{/number}","issue_comment_url":"https://api.github.com/repos/banzaicloud/pipeline/issues/comments{/number}","contents_url":"https://api.github.com/repos/banzaicloud/pipeline/contents/{+path}","compare_url":"https://api.github.com/repos/banzaicloud/pipeline/compare/{base}...{head}","merges_url":"https://api.github.com/repos/banzaicloud/pipeline/merges","archive_url":"https://api.github.com/repos/banzaicloud/pipeline/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/banzaicloud/pipeline/downloads","issues_url":"https://api.github.com/repos/banzaicloud/pipeline/issues{/number}","pulls_url":"https://api.github.com/repos/banzaicloud/pipeline/pulls{/number}","milestones_url":"https://api.github.com/repos/banzaicloud/pipeline/milestones{/number}","notifications_url":"https://api.github.com/repos/banzaicloud/pipeline/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/banzaicloud/pipeline/labels{/name}","releases_url":"https://api.github.com/repos/banzaicloud/pipeline/releases{/id}","deployments_url":"https://api.github.com/repos/banzaicloud/pipeline/deployments","created_at":"2017-10-29T18:07:56Z","updated_at":"2018-03-22T09:57:24Z","pushed_at":"2018-03-22T10:39:34Z","git_url":"git://github.com/banzaicloud/pipeline.git","ssh_url":"git@github.com:banzaicloud/pipeline.git","clone_url":"https://github.com/banzaicloud/pipeline.git","svn_url":"https://github.com/banzaicloud/pipeline","homepage":"","size":67954,"stargazers_count":295,"watchers_count":295,"language":"Go","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":8,"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":24,"open_issues":8,"watchers":295,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/banzaicloud/pipeline/pulls/255"},"html":{"href":"https://github.com/banzaicloud/pipeline/pull/255"},"issue":{"href":"https://api.github.com/repos/banzaicloud/pipeline/issues/255"},"comments":{"href":"https://api.github.com/repos/banzaicloud/pipeline/issues/255/comments"},"review_comments":{"href":"https://api.github.com/repos/banzaicloud/pipeline/pulls/255/comments"},"review_comment":{"href":"https://api.github.com/repos/banzaicloud/pipeline/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/banzaicloud/pipeline/pulls/255/commits"},"statuses":{"href":"https://api.github.com/repos/banzaicloud/pipeline/statuses/578e91041baa32e8e8cdd5bbe74093f8e4d241fc"}},"author_association":"OWNER"}}
{"actor":{"display_login":"baluchicken"}}