{"action":"closed","issue":{"url":"https://api.github.com/repos/iFixit/git-scripts/issues/98","labels_url":"https://api.github.com/repos/iFixit/git-scripts/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/iFixit/git-scripts/issues/98/comments","events_url":"https://api.github.com/repos/iFixit/git-scripts/issues/98/events","html_url":"https://github.com/iFixit/git-scripts/issues/98","id":18880235,"number":98,"title":"Switching doesn't check for pulls when using numbers.","user":{"login":"brotatos","id":1428272,"avatar_url":"https://avatars.githubusercontent.com/u/1428272?v=3","gravatar_id":"","url":"https://api.github.com/users/brotatos","html_url":"https://github.com/brotatos","followers_url":"https://api.github.com/users/brotatos/followers","following_url":"https://api.github.com/users/brotatos/following{/other_user}","gists_url":"https://api.github.com/users/brotatos/gists{/gist_id}","starred_url":"https://api.github.com/users/brotatos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brotatos/subscriptions","organizations_url":"https://api.github.com/users/brotatos/orgs","repos_url":"https://api.github.com/users/brotatos/repos","events_url":"https://api.github.com/users/brotatos/events{/privacy}","received_events_url":"https://api.github.com/users/brotatos/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/iFixit/git-scripts/labels/r-All","name":"r-All","color":"009800"}],"state":"closed","locked":false,"assignee":{"login":"marczych","id":1094445,"avatar_url":"https://avatars.githubusercontent.com/u/1094445?v=3","gravatar_id":"","url":"https://api.github.com/users/marczych","html_url":"https://github.com/marczych","followers_url":"https://api.github.com/users/marczych/followers","following_url":"https://api.github.com/users/marczych/following{/other_user}","gists_url":"https://api.github.com/users/marczych/gists{/gist_id}","starred_url":"https://api.github.com/users/marczych/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marczych/subscriptions","organizations_url":"https://api.github.com/users/marczych/orgs","repos_url":"https://api.github.com/users/marczych/repos","events_url":"https://api.github.com/users/marczych/events{/privacy}","received_events_url":"https://api.github.com/users/marczych/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2013-09-02T21:44:29Z","updated_at":"2015-10-19T23:22:47Z","closed_at":"2015-10-19T23:22:47Z","body":"When doing a `feature` or `hotfix` switch, the number isn't checked and simply allows the github api to error out (with a 404). I'd rather print a helpful message to the dev when this occurs.\r\n```bash\r\n> feature switch -n 9001                                                        \r\n================================================================================\r\nGithub API Error                                                                \r\nGET https://api.github.com/repos/iFixit/git-scripts/pulls/9001: 404: Not Found  \r\n```"}}