{"action":"created","issue":{"url":"https://api.github.com/repos/zapier/zapier-platform-cli/issues/283","repository_url":"https://api.github.com/repos/zapier/zapier-platform-cli","labels_url":"https://api.github.com/repos/zapier/zapier-platform-cli/issues/283/labels{/name}","comments_url":"https://api.github.com/repos/zapier/zapier-platform-cli/issues/283/comments","events_url":"https://api.github.com/repos/zapier/zapier-platform-cli/issues/283/events","html_url":"https://github.com/zapier/zapier-platform-cli/pull/283","id":308922131,"number":283,"title":"Fix issue where calls to utils.printData hangs","user":{"login":"codebycaleb","id":17135295,"avatar_url":"https://avatars2.githubusercontent.com/u/17135295?v=4","gravatar_id":"","url":"https://api.github.com/users/codebycaleb","html_url":"https://github.com/codebycaleb","followers_url":"https://api.github.com/users/codebycaleb/followers","following_url":"https://api.github.com/users/codebycaleb/following{/other_user}","gists_url":"https://api.github.com/users/codebycaleb/gists{/gist_id}","starred_url":"https://api.github.com/users/codebycaleb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codebycaleb/subscriptions","organizations_url":"https://api.github.com/users/codebycaleb/orgs","repos_url":"https://api.github.com/users/codebycaleb/repos","events_url":"https://api.github.com/users/codebycaleb/events{/privacy}","received_events_url":"https://api.github.com/users/codebycaleb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-27T11:05:23Z","updated_at":"2018-03-27T19:30:04Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/zapier/zapier-platform-cli/pulls/283","html_url":"https://github.com/zapier/zapier-platform-cli/pull/283","diff_url":"https://github.com/zapier/zapier-platform-cli/pull/283.diff","patch_url":"https://github.com/zapier/zapier-platform-cli/pull/283.patch"},"body":"Resolves #279 \r\n\r\nWhen calls to `utils.printData` were made on a headless machine (such as a CI) or a \"skinny\" terminal (with a column width less than a certain amount of columns - 15 would always do it), the call would get stuck in a while loop. To make a long story short, this loop was lopping off text based on how many columns we had calculated were available for use. But when the calculated width was non-positive, the text-lopping never ended because we were saying ~'drop the first -6 characters of \"example\"'.\r\n\r\nNow, when the calculated width is non-positive, the entire while-loop is avoided by directly returning the `makePlain` call.\r\n\r\nAs a bonus, this should fix an old test that was marked skipped. :)"},"comment":{"url":"https://api.github.com/repos/zapier/zapier-platform-cli/issues/comments/376646477","html_url":"https://github.com/zapier/zapier-platform-cli/pull/283#issuecomment-376646477","issue_url":"https://api.github.com/repos/zapier/zapier-platform-cli/issues/283","id":376646477,"user":{"login":"codebycaleb","id":17135295,"avatar_url":"https://avatars2.githubusercontent.com/u/17135295?v=4","gravatar_id":"","url":"https://api.github.com/users/codebycaleb","html_url":"https://github.com/codebycaleb","followers_url":"https://api.github.com/users/codebycaleb/followers","following_url":"https://api.github.com/users/codebycaleb/following{/other_user}","gists_url":"https://api.github.com/users/codebycaleb/gists{/gist_id}","starred_url":"https://api.github.com/users/codebycaleb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codebycaleb/subscriptions","organizations_url":"https://api.github.com/users/codebycaleb/orgs","repos_url":"https://api.github.com/users/codebycaleb/repos","events_url":"https://api.github.com/users/codebycaleb/events{/privacy}","received_events_url":"https://api.github.com/users/codebycaleb/received_events","type":"User","site_admin":false},"created_at":"2018-03-27T19:30:04Z","updated_at":"2018-03-27T19:30:04Z","author_association":"CONTRIBUTOR","body":"D'oh! I saw the comment but I didn't realize it meant Jira. Got it for the future. Thanks!"}}
{"actor":{"display_login":"codebycaleb"}}