{"action":"created","issue":{"url":"https://api.github.com/repos/bachp/git-mirror/issues/12","repository_url":"https://api.github.com/repos/bachp/git-mirror","labels_url":"https://api.github.com/repos/bachp/git-mirror/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/bachp/git-mirror/issues/12/comments","events_url":"https://api.github.com/repos/bachp/git-mirror/issues/12/events","html_url":"https://github.com/bachp/git-mirror/issues/12","id":320755721,"number":12,"title":"handle the case where source repo deleted","user":{"login":"mhow2","id":9987241,"avatar_url":"https://avatars2.githubusercontent.com/u/9987241?v=4","gravatar_id":"","url":"https://api.github.com/users/mhow2","html_url":"https://github.com/mhow2","followers_url":"https://api.github.com/users/mhow2/followers","following_url":"https://api.github.com/users/mhow2/following{/other_user}","gists_url":"https://api.github.com/users/mhow2/gists{/gist_id}","starred_url":"https://api.github.com/users/mhow2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhow2/subscriptions","organizations_url":"https://api.github.com/users/mhow2/orgs","repos_url":"https://api.github.com/users/mhow2/repos","events_url":"https://api.github.com/users/mhow2/events{/privacy}","received_events_url":"https://api.github.com/users/mhow2/received_events","type":"User","site_admin":false},"labels":[{"id":625230969,"url":"https://api.github.com/repos/bachp/git-mirror/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":625230970,"url":"https://api.github.com/repos/bachp/git-mirror/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-07T10:36:36Z","updated_at":"2018-05-14T18:28:25Z","closed_at":null,"author_association":"NONE","body":"In the context where the tool in ran from a cron job, I'm looking for a way to handle the case where the source repository defined in the `origin` field in Gitlab's project description is not available anymore and do something if so - currently I'm thinking about automatically delete the mirrored repo/project in GitLab.\r\n\r\nIn the current state, if you define `origin` to a (github) repo that does not exist (or not anymore), git ask for authentication - and this is reported as an error by git-mirror (error output).\r\n\r\nActually I could parse the output of the tool but relying on the output format is probably not the best idea in the world if it's going to change :) Would you have an idea ?"},"comment":{"url":"https://api.github.com/repos/bachp/git-mirror/issues/comments/388916631","html_url":"https://github.com/bachp/git-mirror/issues/12#issuecomment-388916631","issue_url":"https://api.github.com/repos/bachp/git-mirror/issues/12","id":388916631,"user":{"login":"bachp","id":333807,"avatar_url":"https://avatars1.githubusercontent.com/u/333807?v=4","gravatar_id":"","url":"https://api.github.com/users/bachp","html_url":"https://github.com/bachp","followers_url":"https://api.github.com/users/bachp/followers","following_url":"https://api.github.com/users/bachp/following{/other_user}","gists_url":"https://api.github.com/users/bachp/gists{/gist_id}","starred_url":"https://api.github.com/users/bachp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bachp/subscriptions","organizations_url":"https://api.github.com/users/bachp/orgs","repos_url":"https://api.github.com/users/bachp/repos","events_url":"https://api.github.com/users/bachp/events{/privacy}","received_events_url":"https://api.github.com/users/bachp/received_events","type":"User","site_admin":false},"created_at":"2018-05-14T18:28:25Z","updated_at":"2018-05-14T18:28:25Z","author_association":"OWNER","body":"As mentioned I don't consider the current out put stable in any way.\r\n\r\nWhat's your opinion about a machine readable JSON report that can optionally be generated?"}}
{"actor":{"display_login":"bachp"}}