{"action":"created","issue":{"url":"https://api.github.com/repos/exercism/cli/issues/755","repository_url":"https://api.github.com/repos/exercism/cli","labels_url":"https://api.github.com/repos/exercism/cli/issues/755/labels{/name}","comments_url":"https://api.github.com/repos/exercism/cli/issues/755/comments","events_url":"https://api.github.com/repos/exercism/cli/issues/755/events","html_url":"https://github.com/exercism/cli/pull/755","id":374369443,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2MDg2NjQ5","number":755,"title":"Refactor extract download logic","user":{"login":"jdsutherland","id":5385846,"node_id":"MDQ6VXNlcjUzODU4NDY=","avatar_url":"https://avatars3.githubusercontent.com/u/5385846?v=4","gravatar_id":"","url":"https://api.github.com/users/jdsutherland","html_url":"https://github.com/jdsutherland","followers_url":"https://api.github.com/users/jdsutherland/followers","following_url":"https://api.github.com/users/jdsutherland/following{/other_user}","gists_url":"https://api.github.com/users/jdsutherland/gists{/gist_id}","starred_url":"https://api.github.com/users/jdsutherland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdsutherland/subscriptions","organizations_url":"https://api.github.com/users/jdsutherland/orgs","repos_url":"https://api.github.com/users/jdsutherland/repos","events_url":"https://api.github.com/users/jdsutherland/events{/privacy}","received_events_url":"https://api.github.com/users/jdsutherland/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-26T12:50:29Z","updated_at":"2018-10-26T13:09:02Z","closed_at":"2018-10-26T13:09:02Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/exercism/cli/pulls/755","html_url":"https://github.com/exercism/cli/pull/755","diff_url":"https://github.com/exercism/cli/pull/755.diff","patch_url":"https://github.com/exercism/cli/pull/755.patch"},"body":"This change was motivated by #744, where the new `doctor` command needs to download missing metadata for exercises in the workspace. `cmd/download` contained the logic for this but to be usable it needed refactoring. Due to the overlapping need for downloading metadata, it makes sense to extract it outside of an individual command and split the download logic into separate functions.\r\n\r\nPreviously, cmd/download runDownload contained all the logic for getting\r\na downloadPayload, writing metadata, and writing solution files.\r\n\r\nThese changes separate and extract this logic outside\r\ncmd/download for use by future commands."},"comment":{"url":"https://api.github.com/repos/exercism/cli/issues/comments/433401587","html_url":"https://github.com/exercism/cli/pull/755#issuecomment-433401587","issue_url":"https://api.github.com/repos/exercism/cli/issues/755","id":433401587,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzQwMTU4Nw==","user":{"login":"jdsutherland","id":5385846,"node_id":"MDQ6VXNlcjUzODU4NDY=","avatar_url":"https://avatars3.githubusercontent.com/u/5385846?v=4","gravatar_id":"","url":"https://api.github.com/users/jdsutherland","html_url":"https://github.com/jdsutherland","followers_url":"https://api.github.com/users/jdsutherland/followers","following_url":"https://api.github.com/users/jdsutherland/following{/other_user}","gists_url":"https://api.github.com/users/jdsutherland/gists{/gist_id}","starred_url":"https://api.github.com/users/jdsutherland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdsutherland/subscriptions","organizations_url":"https://api.github.com/users/jdsutherland/orgs","repos_url":"https://api.github.com/users/jdsutherland/repos","events_url":"https://api.github.com/users/jdsutherland/events{/privacy}","received_events_url":"https://api.github.com/users/jdsutherland/received_events","type":"User","site_admin":false},"created_at":"2018-10-26T13:09:02Z","updated_at":"2018-10-26T13:09:02Z","author_association":"CONTRIBUTOR","body":"I think the diffs are a bit hard to read so I decided to reorganize the commits using a new branch. I'm closing this and making another PR using the new target."}}
{"actor":{"display_login":"jdsutherland"}}