{"action":"opened","number":476,"pull_request":{"url":"https://api.github.com/repos/LiskHQ/lisky/pulls/476","id":179718094,"html_url":"https://github.com/LiskHQ/lisky/pull/476","diff_url":"https://github.com/LiskHQ/lisky/pull/476.diff","patch_url":"https://github.com/LiskHQ/lisky/pull/476.patch","issue_url":"https://api.github.com/repos/LiskHQ/lisky/issues/476","number":476,"state":"open","locked":false,"title":"Fix printing the array of objects - Closes #474","user":{"login":"shuse2","id":2367565,"avatar_url":"https://avatars0.githubusercontent.com/u/2367565?v=4","gravatar_id":"","url":"https://api.github.com/users/shuse2","html_url":"https://github.com/shuse2","followers_url":"https://api.github.com/users/shuse2/followers","following_url":"https://api.github.com/users/shuse2/following{/other_user}","gists_url":"https://api.github.com/users/shuse2/gists{/gist_id}","starred_url":"https://api.github.com/users/shuse2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shuse2/subscriptions","organizations_url":"https://api.github.com/users/shuse2/orgs","repos_url":"https://api.github.com/users/shuse2/repos","events_url":"https://api.github.com/users/shuse2/events{/privacy}","received_events_url":"https://api.github.com/users/shuse2/received_events","type":"User","site_admin":false},"body":"### What was the problem?\r\nwhen removing ANSI, it was expecting object, but we were supplying an array.\r\n\r\n### How did I fix it?\r\nCheck if the results are array or an object, and if an array go through removing ANSI process one by one.\r\n\r\n### How to test it?\r\n`lisky> list delegates genesis_1 genesis_5`\r\n### Review checklist\r\n\r\n* The PR solves #474 \r\n* All new code is covered with unit tests\r\n* All new code was formatted with Prettier\r\n* Linting passes\r\n* Tests pass\r\n* Commit messages follow the [commit guidelines](CONTRIBUTING.md#git-commit-messages)\r\n* Documentation has been added/updated\r\n","created_at":"2018-04-05T15:45:19Z","updated_at":"2018-04-05T15:45:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"shuse2","id":2367565,"avatar_url":"https://avatars0.githubusercontent.com/u/2367565?v=4","gravatar_id":"","url":"https://api.github.com/users/shuse2","html_url":"https://github.com/shuse2","followers_url":"https://api.github.com/users/shuse2/followers","following_url":"https://api.github.com/users/shuse2/following{/other_user}","gists_url":"https://api.github.com/users/shuse2/gists{/gist_id}","starred_url":"https://api.github.com/users/shuse2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shuse2/subscriptions","organizations_url":"https://api.github.com/users/shuse2/orgs","repos_url":"https://api.github.com/users/shuse2/repos","events_url":"https://api.github.com/users/shuse2/events{/privacy}","received_events_url":"https://api.github.com/users/shuse2/received_events","type":"User","site_admin":false},"assignees":[{"login":"shuse2","id":2367565,"avatar_url":"https://avatars0.githubusercontent.com/u/2367565?v=4","gravatar_id":"","url":"https://api.github.com/users/shuse2","html_url":"https://github.com/shuse2","followers_url":"https://api.github.com/users/shuse2/followers","following_url":"https://api.github.com/users/shuse2/following{/other_user}","gists_url":"https://api.github.com/users/shuse2/gists{/gist_id}","starred_url":"https://api.github.com/users/shuse2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shuse2/subscriptions","organizations_url":"https://api.github.com/users/shuse2/orgs","repos_url":"https://api.github.com/users/shuse2/repos","events_url":"https://api.github.com/users/shuse2/events{/privacy}","received_events_url":"https://api.github.com/users/shuse2/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":655485687,"url":"https://api.github.com/repos/LiskHQ/lisky/labels/pending%20review","name":"pending review","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/LiskHQ/lisky/pulls/476/commits","review_comments_url":"https://api.github.com/repos/LiskHQ/lisky/pulls/476/comments","review_comment_url":"https://api.github.com/repos/LiskHQ/lisky/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LiskHQ/lisky/issues/476/comments","statuses_url":"https://api.github.com/repos/LiskHQ/lisky/statuses/a165515fc1ac33197f6923f0a4970822ce0f4bbc","head":{"label":"LiskHQ:474-fix_object_print","ref":"474-fix_object_print","sha":"a165515fc1ac33197f6923f0a4970822ce0f4bbc","user":{"login":"LiskHQ","id":16600915,"avatar_url":"https://avatars1.githubusercontent.com/u/16600915?v=4","gravatar_id":"","url":"https://api.github.com/users/LiskHQ","html_url":"https://github.com/LiskHQ","followers_url":"https://api.github.com/users/LiskHQ/followers","following_url":"https://api.github.com/users/LiskHQ/following{/other_user}","gists_url":"https://api.github.com/users/LiskHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/LiskHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiskHQ/subscriptions","organizations_url":"https://api.github.com/users/LiskHQ/orgs","repos_url":"https://api.github.com/users/LiskHQ/repos","events_url":"https://api.github.com/users/LiskHQ/events{/privacy}","received_events_url":"https://api.github.com/users/LiskHQ/received_events","type":"Organization","site_admin":false},"repo":{"id":90610986,"name":"lisky","full_name":"LiskHQ/lisky","owner":{"login":"LiskHQ","id":16600915,"avatar_url":"https://avatars1.githubusercontent.com/u/16600915?v=4","gravatar_id":"","url":"https://api.github.com/users/LiskHQ","html_url":"https://github.com/LiskHQ","followers_url":"https://api.github.com/users/LiskHQ/followers","following_url":"https://api.github.com/users/LiskHQ/following{/other_user}","gists_url":"https://api.github.com/users/LiskHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/LiskHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiskHQ/subscriptions","organizations_url":"https://api.github.com/users/LiskHQ/orgs","repos_url":"https://api.github.com/users/LiskHQ/repos","events_url":"https://api.github.com/users/LiskHQ/events{/privacy}","received_events_url":"https://api.github.com/users/LiskHQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LiskHQ/lisky","description":":cat: A command line interface for Lisk","fork":false,"url":"https://api.github.com/repos/LiskHQ/lisky","forks_url":"https://api.github.com/repos/LiskHQ/lisky/forks","keys_url":"https://api.github.com/repos/LiskHQ/lisky/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LiskHQ/lisky/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LiskHQ/lisky/teams","hooks_url":"https://api.github.com/repos/LiskHQ/lisky/hooks","issue_events_url":"https://api.github.com/repos/LiskHQ/lisky/issues/events{/number}","events_url":"https://api.github.com/repos/LiskHQ/lisky/events","assignees_url":"https://api.github.com/repos/LiskHQ/lisky/assignees{/user}","branches_url":"https://api.github.com/repos/LiskHQ/lisky/branches{/branch}","tags_url":"https://api.github.com/repos/LiskHQ/lisky/tags","blobs_url":"https://api.github.com/repos/LiskHQ/lisky/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LiskHQ/lisky/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LiskHQ/lisky/git/refs{/sha}","trees_url":"https://api.github.com/repos/LiskHQ/lisky/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LiskHQ/lisky/statuses/{sha}","languages_url":"https://api.github.com/repos/LiskHQ/lisky/languages","stargazers_url":"https://api.github.com/repos/LiskHQ/lisky/stargazers","contributors_url":"https://api.github.com/repos/LiskHQ/lisky/contributors","subscribers_url":"https://api.github.com/repos/LiskHQ/lisky/subscribers","subscription_url":"https://api.github.com/repos/LiskHQ/lisky/subscription","commits_url":"https://api.github.com/repos/LiskHQ/lisky/commits{/sha}","git_commits_url":"https://api.github.com/repos/LiskHQ/lisky/git/commits{/sha}","comments_url":"https://api.github.com/repos/LiskHQ/lisky/comments{/number}","issue_comment_url":"https://api.github.com/repos/LiskHQ/lisky/issues/comments{/number}","contents_url":"https://api.github.com/repos/LiskHQ/lisky/contents/{+path}","compare_url":"https://api.github.com/repos/LiskHQ/lisky/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LiskHQ/lisky/merges","archive_url":"https://api.github.com/repos/LiskHQ/lisky/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LiskHQ/lisky/downloads","issues_url":"https://api.github.com/repos/LiskHQ/lisky/issues{/number}","pulls_url":"https://api.github.com/repos/LiskHQ/lisky/pulls{/number}","milestones_url":"https://api.github.com/repos/LiskHQ/lisky/milestones{/number}","notifications_url":"https://api.github.com/repos/LiskHQ/lisky/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LiskHQ/lisky/labels{/name}","releases_url":"https://api.github.com/repos/LiskHQ/lisky/releases{/id}","deployments_url":"https://api.github.com/repos/LiskHQ/lisky/deployments","created_at":"2017-05-08T09:34:56Z","updated_at":"2018-04-05T13:05:39Z","pushed_at":"2018-04-05T15:43:01Z","git_url":"git://github.com/LiskHQ/lisky.git","ssh_url":"git@github.com:LiskHQ/lisky.git","clone_url":"https://github.com/LiskHQ/lisky.git","svn_url":"https://github.com/LiskHQ/lisky","homepage":"","size":2074,"stargazers_count":108,"watchers_count":108,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":24,"mirror_url":null,"archived":false,"open_issues_count":40,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":24,"open_issues":40,"watchers":108,"default_branch":"development"}},"base":{"label":"LiskHQ:1.0.0","ref":"1.0.0","sha":"f5ca8cf3066f0abdbd781c950d906a09bcebd234","user":{"login":"LiskHQ","id":16600915,"avatar_url":"https://avatars1.githubusercontent.com/u/16600915?v=4","gravatar_id":"","url":"https://api.github.com/users/LiskHQ","html_url":"https://github.com/LiskHQ","followers_url":"https://api.github.com/users/LiskHQ/followers","following_url":"https://api.github.com/users/LiskHQ/following{/other_user}","gists_url":"https://api.github.com/users/LiskHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/LiskHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiskHQ/subscriptions","organizations_url":"https://api.github.com/users/LiskHQ/orgs","repos_url":"https://api.github.com/users/LiskHQ/repos","events_url":"https://api.github.com/users/LiskHQ/events{/privacy}","received_events_url":"https://api.github.com/users/LiskHQ/received_events","type":"Organization","site_admin":false},"repo":{"id":90610986,"name":"lisky","full_name":"LiskHQ/lisky","owner":{"login":"LiskHQ","id":16600915,"avatar_url":"https://avatars1.githubusercontent.com/u/16600915?v=4","gravatar_id":"","url":"https://api.github.com/users/LiskHQ","html_url":"https://github.com/LiskHQ","followers_url":"https://api.github.com/users/LiskHQ/followers","following_url":"https://api.github.com/users/LiskHQ/following{/other_user}","gists_url":"https://api.github.com/users/LiskHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/LiskHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiskHQ/subscriptions","organizations_url":"https://api.github.com/users/LiskHQ/orgs","repos_url":"https://api.github.com/users/LiskHQ/repos","events_url":"https://api.github.com/users/LiskHQ/events{/privacy}","received_events_url":"https://api.github.com/users/LiskHQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LiskHQ/lisky","description":":cat: A command line interface for Lisk","fork":false,"url":"https://api.github.com/repos/LiskHQ/lisky","forks_url":"https://api.github.com/repos/LiskHQ/lisky/forks","keys_url":"https://api.github.com/repos/LiskHQ/lisky/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LiskHQ/lisky/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LiskHQ/lisky/teams","hooks_url":"https://api.github.com/repos/LiskHQ/lisky/hooks","issue_events_url":"https://api.github.com/repos/LiskHQ/lisky/issues/events{/number}","events_url":"https://api.github.com/repos/LiskHQ/lisky/events","assignees_url":"https://api.github.com/repos/LiskHQ/lisky/assignees{/user}","branches_url":"https://api.github.com/repos/LiskHQ/lisky/branches{/branch}","tags_url":"https://api.github.com/repos/LiskHQ/lisky/tags","blobs_url":"https://api.github.com/repos/LiskHQ/lisky/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LiskHQ/lisky/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LiskHQ/lisky/git/refs{/sha}","trees_url":"https://api.github.com/repos/LiskHQ/lisky/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LiskHQ/lisky/statuses/{sha}","languages_url":"https://api.github.com/repos/LiskHQ/lisky/languages","stargazers_url":"https://api.github.com/repos/LiskHQ/lisky/stargazers","contributors_url":"https://api.github.com/repos/LiskHQ/lisky/contributors","subscribers_url":"https://api.github.com/repos/LiskHQ/lisky/subscribers","subscription_url":"https://api.github.com/repos/LiskHQ/lisky/subscription","commits_url":"https://api.github.com/repos/LiskHQ/lisky/commits{/sha}","git_commits_url":"https://api.github.com/repos/LiskHQ/lisky/git/commits{/sha}","comments_url":"https://api.github.com/repos/LiskHQ/lisky/comments{/number}","issue_comment_url":"https://api.github.com/repos/LiskHQ/lisky/issues/comments{/number}","contents_url":"https://api.github.com/repos/LiskHQ/lisky/contents/{+path}","compare_url":"https://api.github.com/repos/LiskHQ/lisky/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LiskHQ/lisky/merges","archive_url":"https://api.github.com/repos/LiskHQ/lisky/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LiskHQ/lisky/downloads","issues_url":"https://api.github.com/repos/LiskHQ/lisky/issues{/number}","pulls_url":"https://api.github.com/repos/LiskHQ/lisky/pulls{/number}","milestones_url":"https://api.github.com/repos/LiskHQ/lisky/milestones{/number}","notifications_url":"https://api.github.com/repos/LiskHQ/lisky/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LiskHQ/lisky/labels{/name}","releases_url":"https://api.github.com/repos/LiskHQ/lisky/releases{/id}","deployments_url":"https://api.github.com/repos/LiskHQ/lisky/deployments","created_at":"2017-05-08T09:34:56Z","updated_at":"2018-04-05T13:05:39Z","pushed_at":"2018-04-05T15:43:01Z","git_url":"git://github.com/LiskHQ/lisky.git","ssh_url":"git@github.com:LiskHQ/lisky.git","clone_url":"https://github.com/LiskHQ/lisky.git","svn_url":"https://github.com/LiskHQ/lisky","homepage":"","size":2074,"stargazers_count":108,"watchers_count":108,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":24,"mirror_url":null,"archived":false,"open_issues_count":40,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":24,"open_issues":40,"watchers":108,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/LiskHQ/lisky/pulls/476"},"html":{"href":"https://github.com/LiskHQ/lisky/pull/476"},"issue":{"href":"https://api.github.com/repos/LiskHQ/lisky/issues/476"},"comments":{"href":"https://api.github.com/repos/LiskHQ/lisky/issues/476/comments"},"review_comments":{"href":"https://api.github.com/repos/LiskHQ/lisky/pulls/476/comments"},"review_comment":{"href":"https://api.github.com/repos/LiskHQ/lisky/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LiskHQ/lisky/pulls/476/commits"},"statuses":{"href":"https://api.github.com/repos/LiskHQ/lisky/statuses/a165515fc1ac33197f6923f0a4970822ce0f4bbc"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":190,"deletions":1,"changed_files":5}}
{"actor":{"display_login":"shuse2"}}