{"action":"opened","issue":{"url":"https://api.github.com/repos/driftyco/ionic-app-lib/issues/109","repository_url":"https://api.github.com/repos/driftyco/ionic-app-lib","labels_url":"https://api.github.com/repos/driftyco/ionic-app-lib/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic-app-lib/issues/109/comments","events_url":"https://api.github.com/repos/driftyco/ionic-app-lib/issues/109/events","html_url":"https://github.com/driftyco/ionic-app-lib/issues/109","id":160981080,"number":109,"title":"ionic state save doesn't preserve plugin branches","user":{"login":"djonesdev","id":10342449,"avatar_url":"https://avatars.githubusercontent.com/u/10342449?v=3","gravatar_id":"","url":"https://api.github.com/users/djonesdev","html_url":"https://github.com/djonesdev","followers_url":"https://api.github.com/users/djonesdev/followers","following_url":"https://api.github.com/users/djonesdev/following{/other_user}","gists_url":"https://api.github.com/users/djonesdev/gists{/gist_id}","starred_url":"https://api.github.com/users/djonesdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djonesdev/subscriptions","organizations_url":"https://api.github.com/users/djonesdev/orgs","repos_url":"https://api.github.com/users/djonesdev/repos","events_url":"https://api.github.com/users/djonesdev/events{/privacy}","received_events_url":"https://api.github.com/users/djonesdev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-17T21:47:42Z","updated_at":"2016-06-17T21:47:42Z","closed_at":null,"body":"Running the ``ionic state save`` command doesn't preserve the branch/commit specified by a plugin.\r\n\r\nFor example if my package.json looks like this before running the ``ionic state save``:\r\n\r\n```javascript\r\n\"cordovaPlugins\": [\r\n    \"cordova-plugin-device\",\r\n    {\r\n      \"locator\": \"https://github.com/djonesdev/CordovaCameraPreview#djonesdev\",\r\n      \"id\": \"cordova-plugin-camera-preview\"\r\n    }\r\n  ],\r\n```\r\n\r\nThe ``ionic state restore`` command correctly restores the selected branch (in this case ``djonesdev``).\r\nHowever after running ``ionic state save`` it reverts to this:\r\n\r\n```javascript\r\n\"cordovaPlugins\": [\r\n    \"cordova-plugin-device\",\r\n    {\r\n      \"locator\": \"https://github.com/djonesdev/CordovaCameraPreview\",\r\n      \"id\": \"cordova-plugin-camera-preview\"\r\n    }\r\n  ],\r\n```\r\n"}}
{"actor":{"display_login":"djonesdev"}}