{"action":"created","issue":{"url":"https://api.github.com/repos/pivotal-cf/go-pivnet/issues/2","repository_url":"https://api.github.com/repos/pivotal-cf/go-pivnet","labels_url":"https://api.github.com/repos/pivotal-cf/go-pivnet/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/pivotal-cf/go-pivnet/issues/2/comments","events_url":"https://api.github.com/repos/pivotal-cf/go-pivnet/issues/2/events","html_url":"https://github.com/pivotal-cf/go-pivnet/pull/2","id":183332219,"number":2,"title":"Downloadfile retryable #132198409","user":{"login":"crawsible","id":6677155,"avatar_url":"https://avatars.githubusercontent.com/u/6677155?v=3","gravatar_id":"","url":"https://api.github.com/users/crawsible","html_url":"https://github.com/crawsible","followers_url":"https://api.github.com/users/crawsible/followers","following_url":"https://api.github.com/users/crawsible/following{/other_user}","gists_url":"https://api.github.com/users/crawsible/gists{/gist_id}","starred_url":"https://api.github.com/users/crawsible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crawsible/subscriptions","organizations_url":"https://api.github.com/users/crawsible/orgs","repos_url":"https://api.github.com/users/crawsible/repos","events_url":"https://api.github.com/users/crawsible/events{/privacy}","received_events_url":"https://api.github.com/users/crawsible/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-17T06:04:30Z","updated_at":"2016-10-17T06:04:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pivotal-cf/go-pivnet/pulls/2","html_url":"https://github.com/pivotal-cf/go-pivnet/pull/2","diff_url":"https://github.com/pivotal-cf/go-pivnet/pull/2.diff","patch_url":"https://github.com/pivotal-cf/go-pivnet/pull/2.patch"},"body":"Hiya!\r\n\r\nThese commits are the go-pivnet side of https://github.com/pivotal-cf/pivnet-resource/issues/38. They:\r\n\r\n1. Change the `ExtendedClient#DownloadFile` method signature and behavior to return a `retryable` boolean, which is `false` in all cases except for a failed `io.Copy` and a successful download.\r\n2. Update the pivnet CLI to retry the `DownloadFile` method if it fails with a `retryable` value of `true`. If any `DownloadFile` calls fail with a false `retryable` value, or if downloads fail three times, the error is passed to the error handler as before.\r\n\r\n- Have you made this pull request to the `develop` branch?\r\nYes.\r\n\r\n- Have you [run the tests locally](https://github.com/pivotal-cf/go-pivnet#running-the-tests)?\r\nYes."},"comment":{"url":"https://api.github.com/repos/pivotal-cf/go-pivnet/issues/comments/254119655","html_url":"https://github.com/pivotal-cf/go-pivnet/pull/2#issuecomment-254119655","issue_url":"https://api.github.com/repos/pivotal-cf/go-pivnet/issues/2","id":254119655,"user":{"login":"cf-gitbot","id":5589368,"avatar_url":"https://avatars.githubusercontent.com/u/5589368?v=3","gravatar_id":"","url":"https://api.github.com/users/cf-gitbot","html_url":"https://github.com/cf-gitbot","followers_url":"https://api.github.com/users/cf-gitbot/followers","following_url":"https://api.github.com/users/cf-gitbot/following{/other_user}","gists_url":"https://api.github.com/users/cf-gitbot/gists{/gist_id}","starred_url":"https://api.github.com/users/cf-gitbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cf-gitbot/subscriptions","organizations_url":"https://api.github.com/users/cf-gitbot/orgs","repos_url":"https://api.github.com/users/cf-gitbot/repos","events_url":"https://api.github.com/users/cf-gitbot/events{/privacy}","received_events_url":"https://api.github.com/users/cf-gitbot/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T06:04:32Z","updated_at":"2016-10-17T06:04:32Z","body":"We have created an issue in Pivotal Tracker to manage this: \n\nhttps://www.pivotaltracker.com/story/show/132552969 \n\nThe labels on this github issue will be updated when the story is started."}}
{"actor":{"display_login":"cf-gitbot"}}