{"action":"created","issue":{"url":"https://api.github.com/repos/openaustralia/morph/issues/272","labels_url":"https://api.github.com/repos/openaustralia/morph/issues/272/labels{/name}","comments_url":"https://api.github.com/repos/openaustralia/morph/issues/272/comments","events_url":"https://api.github.com/repos/openaustralia/morph/issues/272/events","html_url":"https://github.com/openaustralia/morph/issues/272","id":29871100,"number":272,"title":"Handle repo deletions from GitHub betterer","user":{"login":"henare","id":48945,"avatar_url":"https://avatars.githubusercontent.com/u/48945?v=3","gravatar_id":"","url":"https://api.github.com/users/henare","html_url":"https://github.com/henare","followers_url":"https://api.github.com/users/henare/followers","following_url":"https://api.github.com/users/henare/following{/other_user}","gists_url":"https://api.github.com/users/henare/gists{/gist_id}","starred_url":"https://api.github.com/users/henare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henare/subscriptions","organizations_url":"https://api.github.com/users/henare/orgs","repos_url":"https://api.github.com/users/henare/repos","events_url":"https://api.github.com/users/henare/events{/privacy}","received_events_url":"https://api.github.com/users/henare/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openaustralia/morph/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-03-21T00:38:35Z","updated_at":"2015-03-24T19:35:42Z","closed_at":null,"body":"At the moment you get an odd error from the language interpreter.\r\n\r\nIt would be nice to get a simple error from Morph and other fancy things.\r\n\r\nCan we offer to recreate the repo from our local clone?\r\n\r\nWhat happens when the repo is deleted and a scheduled job runs?"},"comment":{"url":"https://api.github.com/repos/openaustralia/morph/issues/comments/85662572","html_url":"https://github.com/openaustralia/morph/issues/272#issuecomment-85662572","issue_url":"https://api.github.com/repos/openaustralia/morph/issues/272","id":85662572,"user":{"login":"mlandauer","id":2221,"avatar_url":"https://avatars.githubusercontent.com/u/2221?v=3","gravatar_id":"","url":"https://api.github.com/users/mlandauer","html_url":"https://github.com/mlandauer","followers_url":"https://api.github.com/users/mlandauer/followers","following_url":"https://api.github.com/users/mlandauer/following{/other_user}","gists_url":"https://api.github.com/users/mlandauer/gists{/gist_id}","starred_url":"https://api.github.com/users/mlandauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlandauer/subscriptions","organizations_url":"https://api.github.com/users/mlandauer/orgs","repos_url":"https://api.github.com/users/mlandauer/repos","events_url":"https://api.github.com/users/mlandauer/events{/privacy}","received_events_url":"https://api.github.com/users/mlandauer/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T19:35:42Z","updated_at":"2015-03-24T19:35:42Z","body":"I think if someone deletes the github repo we should automatically delete the scraper. It goes along with the principle that the code that is run on morph is just whatever is on github.\r\n\r\nI imagine the easiest way to do this would be to run a rake task via a cron job once a day that just checks for the existence of all the github repos and deletes the scraper if any of the github repos don't exist"}}