{"action":"opened","number":786,"pull_request":{"url":"https://api.github.com/repos/mistio/mist.io/pulls/786","id":72490472,"html_url":"https://github.com/mistio/mist.io/pull/786","diff_url":"https://github.com/mistio/mist.io/pull/786.diff","patch_url":"https://github.com/mistio/mist.io/pull/786.patch","issue_url":"https://api.github.com/repos/mistio/mist.io/issues/786","number":786,"state":"open","locked":false,"title":"Prevent delete not empty team","user":{"login":"johnnyWalnut","id":14013389,"avatar_url":"https://avatars.githubusercontent.com/u/14013389?v=3","gravatar_id":"","url":"https://api.github.com/users/johnnyWalnut","html_url":"https://github.com/johnnyWalnut","followers_url":"https://api.github.com/users/johnnyWalnut/followers","following_url":"https://api.github.com/users/johnnyWalnut/following{/other_user}","gists_url":"https://api.github.com/users/johnnyWalnut/gists{/gist_id}","starred_url":"https://api.github.com/users/johnnyWalnut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnnyWalnut/subscriptions","organizations_url":"https://api.github.com/users/johnnyWalnut/orgs","repos_url":"https://api.github.com/users/johnnyWalnut/repos","events_url":"https://api.github.com/users/johnnyWalnut/events{/privacy}","received_events_url":"https://api.github.com/users/johnnyWalnut/received_events","type":"User","site_admin":false},"body":"when owner delete a team, check if team.members list  is empty\r\notherwise owner we delete teams and members will continue to be in the organization.members list\r\n\r\nadd checks at front/back end \r\n\r\nresolves https://github.com/mistio/mist.core/issues/1649","created_at":"2016-06-03T11:08:49Z","updated_at":"2016-06-03T11:08:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa17f1cbe4505d8264dfc561128bd281e8e17697","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mistio/mist.io/pulls/786/commits","review_comments_url":"https://api.github.com/repos/mistio/mist.io/pulls/786/comments","review_comment_url":"https://api.github.com/repos/mistio/mist.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mistio/mist.io/issues/786/comments","statuses_url":"https://api.github.com/repos/mistio/mist.io/statuses/c2dafb8ca12178d5cbccd307d2cc65d77da27fd2","head":{"label":"mistio:prevent_delete_not_empty_team","ref":"prevent_delete_not_empty_team","sha":"c2dafb8ca12178d5cbccd307d2cc65d77da27fd2","user":{"login":"mistio","id":1569127,"avatar_url":"https://avatars.githubusercontent.com/u/1569127?v=3","gravatar_id":"","url":"https://api.github.com/users/mistio","html_url":"https://github.com/mistio","followers_url":"https://api.github.com/users/mistio/followers","following_url":"https://api.github.com/users/mistio/following{/other_user}","gists_url":"https://api.github.com/users/mistio/gists{/gist_id}","starred_url":"https://api.github.com/users/mistio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mistio/subscriptions","organizations_url":"https://api.github.com/users/mistio/orgs","repos_url":"https://api.github.com/users/mistio/repos","events_url":"https://api.github.com/users/mistio/events{/privacy}","received_events_url":"https://api.github.com/users/mistio/received_events","type":"Organization","site_admin":false},"repo":{"id":5874515,"name":"mist.io","full_name":"mistio/mist.io","owner":{"login":"mistio","id":1569127,"avatar_url":"https://avatars.githubusercontent.com/u/1569127?v=3","gravatar_id":"","url":"https://api.github.com/users/mistio","html_url":"https://github.com/mistio","followers_url":"https://api.github.com/users/mistio/followers","following_url":"https://api.github.com/users/mistio/following{/other_user}","gists_url":"https://api.github.com/users/mistio/gists{/gist_id}","starred_url":"https://api.github.com/users/mistio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mistio/subscriptions","organizations_url":"https://api.github.com/users/mistio/orgs","repos_url":"https://api.github.com/users/mistio/repos","events_url":"https://api.github.com/users/mistio/events{/privacy}","received_events_url":"https://api.github.com/users/mistio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mistio/mist.io","description":"mist.io is an open platform for managing heterogeneous infrastructures","fork":false,"url":"https://api.github.com/repos/mistio/mist.io","forks_url":"https://api.github.com/repos/mistio/mist.io/forks","keys_url":"https://api.github.com/repos/mistio/mist.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mistio/mist.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mistio/mist.io/teams","hooks_url":"https://api.github.com/repos/mistio/mist.io/hooks","issue_events_url":"https://api.github.com/repos/mistio/mist.io/issues/events{/number}","events_url":"https://api.github.com/repos/mistio/mist.io/events","assignees_url":"https://api.github.com/repos/mistio/mist.io/assignees{/user}","branches_url":"https://api.github.com/repos/mistio/mist.io/branches{/branch}","tags_url":"https://api.github.com/repos/mistio/mist.io/tags","blobs_url":"https://api.github.com/repos/mistio/mist.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mistio/mist.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mistio/mist.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/mistio/mist.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mistio/mist.io/statuses/{sha}","languages_url":"https://api.github.com/repos/mistio/mist.io/languages","stargazers_url":"https://api.github.com/repos/mistio/mist.io/stargazers","contributors_url":"https://api.github.com/repos/mistio/mist.io/contributors","subscribers_url":"https://api.github.com/repos/mistio/mist.io/subscribers","subscription_url":"https://api.github.com/repos/mistio/mist.io/subscription","commits_url":"https://api.github.com/repos/mistio/mist.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/mistio/mist.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/mistio/mist.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/mistio/mist.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/mistio/mist.io/contents/{+path}","compare_url":"https://api.github.com/repos/mistio/mist.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mistio/mist.io/merges","archive_url":"https://api.github.com/repos/mistio/mist.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mistio/mist.io/downloads","issues_url":"https://api.github.com/repos/mistio/mist.io/issues{/number}","pulls_url":"https://api.github.com/repos/mistio/mist.io/pulls{/number}","milestones_url":"https://api.github.com/repos/mistio/mist.io/milestones{/number}","notifications_url":"https://api.github.com/repos/mistio/mist.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mistio/mist.io/labels{/name}","releases_url":"https://api.github.com/repos/mistio/mist.io/releases{/id}","deployments_url":"https://api.github.com/repos/mistio/mist.io/deployments","created_at":"2012-09-19T16:11:37Z","updated_at":"2016-06-01T22:54:46Z","pushed_at":"2016-06-03T11:08:49Z","git_url":"git://github.com/mistio/mist.io.git","ssh_url":"git@github.com:mistio/mist.io.git","clone_url":"https://github.com/mistio/mist.io.git","svn_url":"https://github.com/mistio/mist.io","homepage":"https://mist.io","size":67944,"stargazers_count":553,"watchers_count":553,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":99,"mirror_url":null,"open_issues_count":23,"forks":99,"open_issues":23,"watchers":553,"default_branch":"master"}},"base":{"label":"mistio:staging","ref":"staging","sha":"c4c5f98a898f7a27837a932a1293df9dea3866c8","user":{"login":"mistio","id":1569127,"avatar_url":"https://avatars.githubusercontent.com/u/1569127?v=3","gravatar_id":"","url":"https://api.github.com/users/mistio","html_url":"https://github.com/mistio","followers_url":"https://api.github.com/users/mistio/followers","following_url":"https://api.github.com/users/mistio/following{/other_user}","gists_url":"https://api.github.com/users/mistio/gists{/gist_id}","starred_url":"https://api.github.com/users/mistio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mistio/subscriptions","organizations_url":"https://api.github.com/users/mistio/orgs","repos_url":"https://api.github.com/users/mistio/repos","events_url":"https://api.github.com/users/mistio/events{/privacy}","received_events_url":"https://api.github.com/users/mistio/received_events","type":"Organization","site_admin":false},"repo":{"id":5874515,"name":"mist.io","full_name":"mistio/mist.io","owner":{"login":"mistio","id":1569127,"avatar_url":"https://avatars.githubusercontent.com/u/1569127?v=3","gravatar_id":"","url":"https://api.github.com/users/mistio","html_url":"https://github.com/mistio","followers_url":"https://api.github.com/users/mistio/followers","following_url":"https://api.github.com/users/mistio/following{/other_user}","gists_url":"https://api.github.com/users/mistio/gists{/gist_id}","starred_url":"https://api.github.com/users/mistio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mistio/subscriptions","organizations_url":"https://api.github.com/users/mistio/orgs","repos_url":"https://api.github.com/users/mistio/repos","events_url":"https://api.github.com/users/mistio/events{/privacy}","received_events_url":"https://api.github.com/users/mistio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mistio/mist.io","description":"mist.io is an open platform for managing heterogeneous infrastructures","fork":false,"url":"https://api.github.com/repos/mistio/mist.io","forks_url":"https://api.github.com/repos/mistio/mist.io/forks","keys_url":"https://api.github.com/repos/mistio/mist.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mistio/mist.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mistio/mist.io/teams","hooks_url":"https://api.github.com/repos/mistio/mist.io/hooks","issue_events_url":"https://api.github.com/repos/mistio/mist.io/issues/events{/number}","events_url":"https://api.github.com/repos/mistio/mist.io/events","assignees_url":"https://api.github.com/repos/mistio/mist.io/assignees{/user}","branches_url":"https://api.github.com/repos/mistio/mist.io/branches{/branch}","tags_url":"https://api.github.com/repos/mistio/mist.io/tags","blobs_url":"https://api.github.com/repos/mistio/mist.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mistio/mist.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mistio/mist.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/mistio/mist.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mistio/mist.io/statuses/{sha}","languages_url":"https://api.github.com/repos/mistio/mist.io/languages","stargazers_url":"https://api.github.com/repos/mistio/mist.io/stargazers","contributors_url":"https://api.github.com/repos/mistio/mist.io/contributors","subscribers_url":"https://api.github.com/repos/mistio/mist.io/subscribers","subscription_url":"https://api.github.com/repos/mistio/mist.io/subscription","commits_url":"https://api.github.com/repos/mistio/mist.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/mistio/mist.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/mistio/mist.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/mistio/mist.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/mistio/mist.io/contents/{+path}","compare_url":"https://api.github.com/repos/mistio/mist.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mistio/mist.io/merges","archive_url":"https://api.github.com/repos/mistio/mist.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mistio/mist.io/downloads","issues_url":"https://api.github.com/repos/mistio/mist.io/issues{/number}","pulls_url":"https://api.github.com/repos/mistio/mist.io/pulls{/number}","milestones_url":"https://api.github.com/repos/mistio/mist.io/milestones{/number}","notifications_url":"https://api.github.com/repos/mistio/mist.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mistio/mist.io/labels{/name}","releases_url":"https://api.github.com/repos/mistio/mist.io/releases{/id}","deployments_url":"https://api.github.com/repos/mistio/mist.io/deployments","created_at":"2012-09-19T16:11:37Z","updated_at":"2016-06-01T22:54:46Z","pushed_at":"2016-06-03T11:08:49Z","git_url":"git://github.com/mistio/mist.io.git","ssh_url":"git@github.com:mistio/mist.io.git","clone_url":"https://github.com/mistio/mist.io.git","svn_url":"https://github.com/mistio/mist.io","homepage":"https://mist.io","size":67944,"stargazers_count":553,"watchers_count":553,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":99,"mirror_url":null,"open_issues_count":23,"forks":99,"open_issues":23,"watchers":553,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mistio/mist.io/pulls/786"},"html":{"href":"https://github.com/mistio/mist.io/pull/786"},"issue":{"href":"https://api.github.com/repos/mistio/mist.io/issues/786"},"comments":{"href":"https://api.github.com/repos/mistio/mist.io/issues/786/comments"},"review_comments":{"href":"https://api.github.com/repos/mistio/mist.io/pulls/786/comments"},"review_comment":{"href":"https://api.github.com/repos/mistio/mist.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mistio/mist.io/pulls/786/commits"},"statuses":{"href":"https://api.github.com/repos/mistio/mist.io/statuses/c2dafb8ca12178d5cbccd307d2cc65d77da27fd2"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":65,"deletions":37,"changed_files":4}}
{"actor":{"display_login":"johnnyWalnut"}}