{"action":"created","issue":{"url":"https://api.github.com/repos/cattlepi/cattlepi/issues/39","repository_url":"https://api.github.com/repos/cattlepi/cattlepi","labels_url":"https://api.github.com/repos/cattlepi/cattlepi/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/cattlepi/cattlepi/issues/39/comments","events_url":"https://api.github.com/repos/cattlepi/cattlepi/issues/39/events","html_url":"https://github.com/cattlepi/cattlepi/pull/39","id":358275313,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0MDgzOTkx","number":39,"title":"Remove stale images on sd card","user":{"login":"zmrow","id":1527119,"node_id":"MDQ6VXNlcjE1MjcxMTk=","avatar_url":"https://avatars0.githubusercontent.com/u/1527119?v=4","gravatar_id":"","url":"https://api.github.com/users/zmrow","html_url":"https://github.com/zmrow","followers_url":"https://api.github.com/users/zmrow/followers","following_url":"https://api.github.com/users/zmrow/following{/other_user}","gists_url":"https://api.github.com/users/zmrow/gists{/gist_id}","starred_url":"https://api.github.com/users/zmrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zmrow/subscriptions","organizations_url":"https://api.github.com/users/zmrow/orgs","repos_url":"https://api.github.com/users/zmrow/repos","events_url":"https://api.github.com/users/zmrow/events{/privacy}","received_events_url":"https://api.github.com/users/zmrow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-08T08:10:53Z","updated_at":"2018-09-08T16:33:08Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/cattlepi/cattlepi/pulls/39","html_url":"https://github.com/cattlepi/cattlepi/pull/39","diff_url":"https://github.com/cattlepi/cattlepi/pull/39.diff","patch_url":"https://github.com/cattlepi/cattlepi/pull/39.patch"},"body":"This should (finally) fix #5 .  \r\n\r\nLogic pretty much stays the same, except we keep track of the images we want (current or new), and delete everything else in the ```$CATTLEPI_IMAGES_DIR``` at the end.\r\n\r\nThere is a hole where if we find an image, but the md5sum check fails, we will NOT save that images md5sum for safekeeping.  This potentially leaves us without an image?  I feel that this is rather unlikely and if that happens you have issues beyond the scope of this code.  *Perhaps we can log this somewhere though? (Our elsewhere discussed logging location?)*\r\n\r\n***Testing***\r\nIn progress... will update once finished."},"comment":{"url":"https://api.github.com/repos/cattlepi/cattlepi/issues/comments/419655859","html_url":"https://github.com/cattlepi/cattlepi/pull/39#issuecomment-419655859","issue_url":"https://api.github.com/repos/cattlepi/cattlepi/issues/39","id":419655859,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTY1NTg1OQ==","user":{"login":"mirceal","id":9061401,"node_id":"MDQ6VXNlcjkwNjE0MDE=","avatar_url":"https://avatars1.githubusercontent.com/u/9061401?v=4","gravatar_id":"","url":"https://api.github.com/users/mirceal","html_url":"https://github.com/mirceal","followers_url":"https://api.github.com/users/mirceal/followers","following_url":"https://api.github.com/users/mirceal/following{/other_user}","gists_url":"https://api.github.com/users/mirceal/gists{/gist_id}","starred_url":"https://api.github.com/users/mirceal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirceal/subscriptions","organizations_url":"https://api.github.com/users/mirceal/orgs","repos_url":"https://api.github.com/users/mirceal/repos","events_url":"https://api.github.com/users/mirceal/events{/privacy}","received_events_url":"https://api.github.com/users/mirceal/received_events","type":"User","site_admin":false},"created_at":"2018-09-08T16:33:08Z","updated_at":"2018-09-08T16:33:08Z","author_association":"COLLABORATOR","body":"apart from the comment for removing the continue I think this looks good. please test/fix and merge when you are ready"}}
{"actor":{"display_login":"mirceal"}}