{"action":"created","issue":{"url":"https://api.github.com/repos/atom/open-on-github/issues/27","labels_url":"https://api.github.com/repos/atom/open-on-github/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/atom/open-on-github/issues/27/comments","events_url":"https://api.github.com/repos/atom/open-on-github/issues/27/events","html_url":"https://github.com/atom/open-on-github/issues/27","id":37533136,"number":27,"title":"default to master when open an unpublished branch","user":{"login":"DepthDeluxe","id":4984331,"avatar_url":"https://avatars.githubusercontent.com/u/4984331?v=3","gravatar_id":"","url":"https://api.github.com/users/DepthDeluxe","html_url":"https://github.com/DepthDeluxe","followers_url":"https://api.github.com/users/DepthDeluxe/followers","following_url":"https://api.github.com/users/DepthDeluxe/following{/other_user}","gists_url":"https://api.github.com/users/DepthDeluxe/gists{/gist_id}","starred_url":"https://api.github.com/users/DepthDeluxe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DepthDeluxe/subscriptions","organizations_url":"https://api.github.com/users/DepthDeluxe/orgs","repos_url":"https://api.github.com/users/DepthDeluxe/repos","events_url":"https://api.github.com/users/DepthDeluxe/events{/privacy}","received_events_url":"https://api.github.com/users/DepthDeluxe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/open-on-github/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-07-10T05:36:01Z","updated_at":"2015-04-23T12:57:37Z","closed_at":null,"body":"After using this plugin for a little while, it has started to bother me that I can't open files that are in unpublished repositories.  The plugin generates the URL for where the branch should be but GitHub returns a 404 (obviously).  It would be nice for this plugin to default to opening on the master branch if a user is currently in one that's unpublished.\r\n\r\nA quick and dirty way to do this would be to check the list of available branches to see if `$BRANCH` has a corresponding `remotes/origin/$BRANCH` in the branch list."},"comment":{"url":"https://api.github.com/repos/atom/open-on-github/issues/comments/95576522","html_url":"https://github.com/atom/open-on-github/issues/27#issuecomment-95576522","issue_url":"https://api.github.com/repos/atom/open-on-github/issues/27","id":95576522,"user":{"login":"kalimar","id":1248672,"avatar_url":"https://avatars.githubusercontent.com/u/1248672?v=3","gravatar_id":"","url":"https://api.github.com/users/kalimar","html_url":"https://github.com/kalimar","followers_url":"https://api.github.com/users/kalimar/followers","following_url":"https://api.github.com/users/kalimar/following{/other_user}","gists_url":"https://api.github.com/users/kalimar/gists{/gist_id}","starred_url":"https://api.github.com/users/kalimar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalimar/subscriptions","organizations_url":"https://api.github.com/users/kalimar/orgs","repos_url":"https://api.github.com/users/kalimar/repos","events_url":"https://api.github.com/users/kalimar/events{/privacy}","received_events_url":"https://api.github.com/users/kalimar/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T12:57:37Z","updated_at":"2015-04-23T12:57:37Z","body":":+1:"}}