{"action":"closed","number":2637,"pull_request":{"url":"https://api.github.com/repos/ocaml/opam/pulls/2637","id":80809452,"html_url":"https://github.com/ocaml/opam/pull/2637","diff_url":"https://github.com/ocaml/opam/pull/2637.diff","patch_url":"https://github.com/ocaml/opam/pull/2637.patch","issue_url":"https://api.github.com/repos/ocaml/opam/issues/2637","number":2637,"state":"closed","locked":false,"title":"'opam switch' interface cleanup (script-breaking changes)","user":{"login":"AltGr","id":807966,"avatar_url":"https://avatars.githubusercontent.com/u/807966?v=3","gravatar_id":"","url":"https://api.github.com/users/AltGr","html_url":"https://github.com/AltGr","followers_url":"https://api.github.com/users/AltGr/followers","following_url":"https://api.github.com/users/AltGr/following{/other_user}","gists_url":"https://api.github.com/users/AltGr/gists{/gist_id}","starred_url":"https://api.github.com/users/AltGr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AltGr/subscriptions","organizations_url":"https://api.github.com/users/AltGr/orgs","repos_url":"https://api.github.com/users/AltGr/repos","events_url":"https://api.github.com/users/AltGr/events{/privacy}","received_events_url":"https://api.github.com/users/AltGr/received_events","type":"User","site_admin":false},"body":"This will likely break some scripts.\n\n'opam switch foo' or 'opam switch set foo' will NO LONGER try and install\n'foo', it can now only switch to an existing switch\n\n'opam switch create SWITCH [COMPILER]' is now preferred over 'opam switch\ninstall'; '--alias-of' is no longer allowed or necessary, since the\npositional argument is used instead; '--empty' and '--package' give the\nfull extent of possibilities.","created_at":"2016-08-10T14:58:10Z","updated_at":"2016-08-11T10:09:18Z","closed_at":"2016-08-11T10:09:18Z","merged_at":"2016-08-11T10:09:18Z","merge_commit_sha":"3adb4c57ebbfaa4d86b632af93504859a7d1203e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ocaml/opam/pulls/2637/commits","review_comments_url":"https://api.github.com/repos/ocaml/opam/pulls/2637/comments","review_comment_url":"https://api.github.com/repos/ocaml/opam/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ocaml/opam/issues/2637/comments","statuses_url":"https://api.github.com/repos/ocaml/opam/statuses/e6457bff295c2b23bcb96e615377ff0becad4af9","head":{"label":"OCamlPro:opam-switch-cleanup","ref":"opam-switch-cleanup","sha":"e6457bff295c2b23bcb96e615377ff0becad4af9","user":{"login":"OCamlPro","id":665790,"avatar_url":"https://avatars.githubusercontent.com/u/665790?v=3","gravatar_id":"","url":"https://api.github.com/users/OCamlPro","html_url":"https://github.com/OCamlPro","followers_url":"https://api.github.com/users/OCamlPro/followers","following_url":"https://api.github.com/users/OCamlPro/following{/other_user}","gists_url":"https://api.github.com/users/OCamlPro/gists{/gist_id}","starred_url":"https://api.github.com/users/OCamlPro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OCamlPro/subscriptions","organizations_url":"https://api.github.com/users/OCamlPro/orgs","repos_url":"https://api.github.com/users/OCamlPro/repos","events_url":"https://api.github.com/users/OCamlPro/events{/privacy}","received_events_url":"https://api.github.com/users/OCamlPro/received_events","type":"Organization","site_admin":false},"repo":{"id":16695473,"name":"opam","full_name":"OCamlPro/opam","owner":{"login":"OCamlPro","id":665790,"avatar_url":"https://avatars.githubusercontent.com/u/665790?v=3","gravatar_id":"","url":"https://api.github.com/users/OCamlPro","html_url":"https://github.com/OCamlPro","followers_url":"https://api.github.com/users/OCamlPro/followers","following_url":"https://api.github.com/users/OCamlPro/following{/other_user}","gists_url":"https://api.github.com/users/OCamlPro/gists{/gist_id}","starred_url":"https://api.github.com/users/OCamlPro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OCamlPro/subscriptions","organizations_url":"https://api.github.com/users/OCamlPro/orgs","repos_url":"https://api.github.com/users/OCamlPro/repos","events_url":"https://api.github.com/users/OCamlPro/events{/privacy}","received_events_url":"https://api.github.com/users/OCamlPro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OCamlPro/opam","description":"OPAM is a source-based package manager for OCaml. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow.","fork":true,"url":"https://api.github.com/repos/OCamlPro/opam","forks_url":"https://api.github.com/repos/OCamlPro/opam/forks","keys_url":"https://api.github.com/repos/OCamlPro/opam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCamlPro/opam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCamlPro/opam/teams","hooks_url":"https://api.github.com/repos/OCamlPro/opam/hooks","issue_events_url":"https://api.github.com/repos/OCamlPro/opam/issues/events{/number}","events_url":"https://api.github.com/repos/OCamlPro/opam/events","assignees_url":"https://api.github.com/repos/OCamlPro/opam/assignees{/user}","branches_url":"https://api.github.com/repos/OCamlPro/opam/branches{/branch}","tags_url":"https://api.github.com/repos/OCamlPro/opam/tags","blobs_url":"https://api.github.com/repos/OCamlPro/opam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCamlPro/opam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCamlPro/opam/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCamlPro/opam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCamlPro/opam/statuses/{sha}","languages_url":"https://api.github.com/repos/OCamlPro/opam/languages","stargazers_url":"https://api.github.com/repos/OCamlPro/opam/stargazers","contributors_url":"https://api.github.com/repos/OCamlPro/opam/contributors","subscribers_url":"https://api.github.com/repos/OCamlPro/opam/subscribers","subscription_url":"https://api.github.com/repos/OCamlPro/opam/subscription","commits_url":"https://api.github.com/repos/OCamlPro/opam/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCamlPro/opam/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCamlPro/opam/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCamlPro/opam/issues/comments{/number}","contents_url":"https://api.github.com/repos/OCamlPro/opam/contents/{+path}","compare_url":"https://api.github.com/repos/OCamlPro/opam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCamlPro/opam/merges","archive_url":"https://api.github.com/repos/OCamlPro/opam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCamlPro/opam/downloads","issues_url":"https://api.github.com/repos/OCamlPro/opam/issues{/number}","pulls_url":"https://api.github.com/repos/OCamlPro/opam/pulls{/number}","milestones_url":"https://api.github.com/repos/OCamlPro/opam/milestones{/number}","notifications_url":"https://api.github.com/repos/OCamlPro/opam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCamlPro/opam/labels{/name}","releases_url":"https://api.github.com/repos/OCamlPro/opam/releases{/id}","deployments_url":"https://api.github.com/repos/OCamlPro/opam/deployments","created_at":"2014-02-10T13:05:29Z","updated_at":"2016-06-09T17:27:32Z","pushed_at":"2016-08-11T08:21:50Z","git_url":"git://github.com/OCamlPro/opam.git","ssh_url":"git@github.com:OCamlPro/opam.git","clone_url":"https://github.com/OCamlPro/opam.git","svn_url":"https://github.com/OCamlPro/opam","homepage":"http://opam.ocaml.org","size":32046,"stargazers_count":13,"watchers_count":13,"language":"OCaml","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":0,"forks":3,"open_issues":0,"watchers":13,"default_branch":"master"}},"base":{"label":"ocaml:master","ref":"master","sha":"8009312f7f858940667b23dfacd0fc7a0e505212","user":{"login":"ocaml","id":1841483,"avatar_url":"https://avatars.githubusercontent.com/u/1841483?v=3","gravatar_id":"","url":"https://api.github.com/users/ocaml","html_url":"https://github.com/ocaml","followers_url":"https://api.github.com/users/ocaml/followers","following_url":"https://api.github.com/users/ocaml/following{/other_user}","gists_url":"https://api.github.com/users/ocaml/gists{/gist_id}","starred_url":"https://api.github.com/users/ocaml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocaml/subscriptions","organizations_url":"https://api.github.com/users/ocaml/orgs","repos_url":"https://api.github.com/users/ocaml/repos","events_url":"https://api.github.com/users/ocaml/events{/privacy}","received_events_url":"https://api.github.com/users/ocaml/received_events","type":"Organization","site_admin":false},"repo":{"id":3473767,"name":"opam","full_name":"ocaml/opam","owner":{"login":"ocaml","id":1841483,"avatar_url":"https://avatars.githubusercontent.com/u/1841483?v=3","gravatar_id":"","url":"https://api.github.com/users/ocaml","html_url":"https://github.com/ocaml","followers_url":"https://api.github.com/users/ocaml/followers","following_url":"https://api.github.com/users/ocaml/following{/other_user}","gists_url":"https://api.github.com/users/ocaml/gists{/gist_id}","starred_url":"https://api.github.com/users/ocaml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocaml/subscriptions","organizations_url":"https://api.github.com/users/ocaml/orgs","repos_url":"https://api.github.com/users/ocaml/repos","events_url":"https://api.github.com/users/ocaml/events{/privacy}","received_events_url":"https://api.github.com/users/ocaml/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ocaml/opam","description":"OPAM is a source-based package manager for OCaml. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow.","fork":false,"url":"https://api.github.com/repos/ocaml/opam","forks_url":"https://api.github.com/repos/ocaml/opam/forks","keys_url":"https://api.github.com/repos/ocaml/opam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ocaml/opam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ocaml/opam/teams","hooks_url":"https://api.github.com/repos/ocaml/opam/hooks","issue_events_url":"https://api.github.com/repos/ocaml/opam/issues/events{/number}","events_url":"https://api.github.com/repos/ocaml/opam/events","assignees_url":"https://api.github.com/repos/ocaml/opam/assignees{/user}","branches_url":"https://api.github.com/repos/ocaml/opam/branches{/branch}","tags_url":"https://api.github.com/repos/ocaml/opam/tags","blobs_url":"https://api.github.com/repos/ocaml/opam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ocaml/opam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ocaml/opam/git/refs{/sha}","trees_url":"https://api.github.com/repos/ocaml/opam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ocaml/opam/statuses/{sha}","languages_url":"https://api.github.com/repos/ocaml/opam/languages","stargazers_url":"https://api.github.com/repos/ocaml/opam/stargazers","contributors_url":"https://api.github.com/repos/ocaml/opam/contributors","subscribers_url":"https://api.github.com/repos/ocaml/opam/subscribers","subscription_url":"https://api.github.com/repos/ocaml/opam/subscription","commits_url":"https://api.github.com/repos/ocaml/opam/commits{/sha}","git_commits_url":"https://api.github.com/repos/ocaml/opam/git/commits{/sha}","comments_url":"https://api.github.com/repos/ocaml/opam/comments{/number}","issue_comment_url":"https://api.github.com/repos/ocaml/opam/issues/comments{/number}","contents_url":"https://api.github.com/repos/ocaml/opam/contents/{+path}","compare_url":"https://api.github.com/repos/ocaml/opam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ocaml/opam/merges","archive_url":"https://api.github.com/repos/ocaml/opam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ocaml/opam/downloads","issues_url":"https://api.github.com/repos/ocaml/opam/issues{/number}","pulls_url":"https://api.github.com/repos/ocaml/opam/pulls{/number}","milestones_url":"https://api.github.com/repos/ocaml/opam/milestones{/number}","notifications_url":"https://api.github.com/repos/ocaml/opam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ocaml/opam/labels{/name}","releases_url":"https://api.github.com/repos/ocaml/opam/releases{/id}","deployments_url":"https://api.github.com/repos/ocaml/opam/deployments","created_at":"2012-02-17T20:55:44Z","updated_at":"2016-08-05T06:54:29Z","pushed_at":"2016-08-11T10:09:19Z","git_url":"git://github.com/ocaml/opam.git","ssh_url":"git@github.com:ocaml/opam.git","clone_url":"https://github.com/ocaml/opam.git","svn_url":"https://github.com/ocaml/opam","homepage":"https://opam.ocaml.org","size":31871,"stargazers_count":433,"watchers_count":433,"language":"OCaml","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":148,"mirror_url":null,"open_issues_count":297,"forks":148,"open_issues":297,"watchers":433,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ocaml/opam/pulls/2637"},"html":{"href":"https://github.com/ocaml/opam/pull/2637"},"issue":{"href":"https://api.github.com/repos/ocaml/opam/issues/2637"},"comments":{"href":"https://api.github.com/repos/ocaml/opam/issues/2637/comments"},"review_comments":{"href":"https://api.github.com/repos/ocaml/opam/pulls/2637/comments"},"review_comment":{"href":"https://api.github.com/repos/ocaml/opam/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ocaml/opam/pulls/2637/commits"},"statuses":{"href":"https://api.github.com/repos/ocaml/opam/statuses/e6457bff295c2b23bcb96e615377ff0becad4af9"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"AltGr","id":807966,"avatar_url":"https://avatars.githubusercontent.com/u/807966?v=3","gravatar_id":"","url":"https://api.github.com/users/AltGr","html_url":"https://github.com/AltGr","followers_url":"https://api.github.com/users/AltGr/followers","following_url":"https://api.github.com/users/AltGr/following{/other_user}","gists_url":"https://api.github.com/users/AltGr/gists{/gist_id}","starred_url":"https://api.github.com/users/AltGr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AltGr/subscriptions","organizations_url":"https://api.github.com/users/AltGr/orgs","repos_url":"https://api.github.com/users/AltGr/repos","events_url":"https://api.github.com/users/AltGr/events{/privacy}","received_events_url":"https://api.github.com/users/AltGr/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":59,"deletions":70,"changed_files":4}}
{"actor":{"display_login":"AltGr"}}