{"action":"created","issue":{"url":"https://api.github.com/repos/arabold/serverless-autoprune-plugin/issues/3","repository_url":"https://api.github.com/repos/arabold/serverless-autoprune-plugin","labels_url":"https://api.github.com/repos/arabold/serverless-autoprune-plugin/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/arabold/serverless-autoprune-plugin/issues/3/comments","events_url":"https://api.github.com/repos/arabold/serverless-autoprune-plugin/issues/3/events","html_url":"https://github.com/arabold/serverless-autoprune-plugin/issues/3","id":158384825,"number":3,"title":"Pruning all versions (--number=0) does not work","user":{"login":"HyperBrain","id":5524702,"avatar_url":"https://avatars.githubusercontent.com/u/5524702?v=3","gravatar_id":"","url":"https://api.github.com/users/HyperBrain","html_url":"https://github.com/HyperBrain","followers_url":"https://api.github.com/users/HyperBrain/followers","following_url":"https://api.github.com/users/HyperBrain/following{/other_user}","gists_url":"https://api.github.com/users/HyperBrain/gists{/gist_id}","starred_url":"https://api.github.com/users/HyperBrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HyperBrain/subscriptions","organizations_url":"https://api.github.com/users/HyperBrain/orgs","repos_url":"https://api.github.com/users/HyperBrain/repos","events_url":"https://api.github.com/users/HyperBrain/events{/privacy}","received_events_url":"https://api.github.com/users/HyperBrain/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/arabold/serverless-autoprune-plugin/labels/bug","name":"bug","color":"ee0701"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-03T14:50:35Z","updated_at":"2016-06-27T20:58:38Z","closed_at":null,"body":"### Problem\r\nWhen I try to prune all tagged versions with `sls function prune myFunction -n 0` the prune runs, but deletes all but 3 versions (the default value). The switch is simply ignored.\r\nSpecifying any value higher than 0 works correctly.\r\n\r\n### Expected behavior\r\nSpecifying `-n 0` should remove all not tagged versions."},"comment":{"url":"https://api.github.com/repos/arabold/serverless-autoprune-plugin/issues/comments/228873443","html_url":"https://github.com/arabold/serverless-autoprune-plugin/issues/3#issuecomment-228873443","issue_url":"https://api.github.com/repos/arabold/serverless-autoprune-plugin/issues/3","id":228873443,"user":{"login":"stevecaldwell77","id":479049,"avatar_url":"https://avatars.githubusercontent.com/u/479049?v=3","gravatar_id":"","url":"https://api.github.com/users/stevecaldwell77","html_url":"https://github.com/stevecaldwell77","followers_url":"https://api.github.com/users/stevecaldwell77/followers","following_url":"https://api.github.com/users/stevecaldwell77/following{/other_user}","gists_url":"https://api.github.com/users/stevecaldwell77/gists{/gist_id}","starred_url":"https://api.github.com/users/stevecaldwell77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevecaldwell77/subscriptions","organizations_url":"https://api.github.com/users/stevecaldwell77/orgs","repos_url":"https://api.github.com/users/stevecaldwell77/repos","events_url":"https://api.github.com/users/stevecaldwell77/events{/privacy}","received_events_url":"https://api.github.com/users/stevecaldwell77/received_events","type":"User","site_admin":false},"created_at":"2016-06-27T20:58:38Z","updated_at":"2016-06-27T20:58:38Z","body":"I created a PR that fixes this over in the serverless repo:\r\n\r\nhttps://github.com/serverless/serverless/pull/1421"}}
{"actor":{"display_login":"stevecaldwell77"}}