{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/mediachain/go-mediachain-client/pulls/1","id":80998559,"html_url":"https://github.com/mediachain/go-mediachain-client/pull/1","diff_url":"https://github.com/mediachain/go-mediachain-client/pull/1.diff","patch_url":"https://github.com/mediachain/go-mediachain-client/pull/1.patch","issue_url":"https://api.github.com/repos/mediachain/go-mediachain-client/issues/1","number":1,"state":"closed","locked":false,"title":"add StringifyRefs function","user":{"login":"yusefnapora","id":678715,"avatar_url":"https://avatars.githubusercontent.com/u/678715?v=3","gravatar_id":"","url":"https://api.github.com/users/yusefnapora","html_url":"https://github.com/yusefnapora","followers_url":"https://api.github.com/users/yusefnapora/followers","following_url":"https://api.github.com/users/yusefnapora/following{/other_user}","gists_url":"https://api.github.com/users/yusefnapora/gists{/gist_id}","starred_url":"https://api.github.com/users/yusefnapora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yusefnapora/subscriptions","organizations_url":"https://api.github.com/users/yusefnapora/orgs","repos_url":"https://api.github.com/users/yusefnapora/repos","events_url":"https://api.github.com/users/yusefnapora/events{/privacy}","received_events_url":"https://api.github.com/users/yusefnapora/received_events","type":"User","site_admin":false},"body":"Well, this was awkward.  This is a port of the `stringify_refs` function from the python client, that converts `@link` maps with binary multihash values into base58.\r\n\r\nI don't think this is possible to do in go without reflection, since the cbor decoder returns nested map structures as `map[interface{}]interface{}`.  See the first commit for a horrible implementation that traverses any kind of arbitrary structure., lifted [from here](https://gist.github.com/hvoecking/10772475).\r\n\r\nThe second commit cleans things up a bit by only descending into maps.  It's still pretty awful, but at least its easier to tell wtf is going on.","created_at":"2016-08-11T17:38:07Z","updated_at":"2016-08-16T16:45:39Z","closed_at":"2016-08-16T16:45:39Z","merged_at":null,"merge_commit_sha":"2f214af9de8f70a94bdb469843cede5a6f06c731","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mediachain/go-mediachain-client/pulls/1/commits","review_comments_url":"https://api.github.com/repos/mediachain/go-mediachain-client/pulls/1/comments","review_comment_url":"https://api.github.com/repos/mediachain/go-mediachain-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mediachain/go-mediachain-client/issues/1/comments","statuses_url":"https://api.github.com/repos/mediachain/go-mediachain-client/statuses/dd4e9bec54b25bb8524cbe3ed6ebf2aa3241431e","head":{"label":"mediachain:yn-stringify-refs","ref":"yn-stringify-refs","sha":"dd4e9bec54b25bb8524cbe3ed6ebf2aa3241431e","user":{"login":"mediachain","id":16711838,"avatar_url":"https://avatars.githubusercontent.com/u/16711838?v=3","gravatar_id":"","url":"https://api.github.com/users/mediachain","html_url":"https://github.com/mediachain","followers_url":"https://api.github.com/users/mediachain/followers","following_url":"https://api.github.com/users/mediachain/following{/other_user}","gists_url":"https://api.github.com/users/mediachain/gists{/gist_id}","starred_url":"https://api.github.com/users/mediachain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mediachain/subscriptions","organizations_url":"https://api.github.com/users/mediachain/orgs","repos_url":"https://api.github.com/users/mediachain/repos","events_url":"https://api.github.com/users/mediachain/events{/privacy}","received_events_url":"https://api.github.com/users/mediachain/received_events","type":"Organization","site_admin":false},"repo":{"id":65418185,"name":"go-mediachain-client","full_name":"mediachain/go-mediachain-client","owner":{"login":"mediachain","id":16711838,"avatar_url":"https://avatars.githubusercontent.com/u/16711838?v=3","gravatar_id":"","url":"https://api.github.com/users/mediachain","html_url":"https://github.com/mediachain","followers_url":"https://api.github.com/users/mediachain/followers","following_url":"https://api.github.com/users/mediachain/following{/other_user}","gists_url":"https://api.github.com/users/mediachain/gists{/gist_id}","starred_url":"https://api.github.com/users/mediachain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mediachain/subscriptions","organizations_url":"https://api.github.com/users/mediachain/orgs","repos_url":"https://api.github.com/users/mediachain/repos","events_url":"https://api.github.com/users/mediachain/events{/privacy}","received_events_url":"https://api.github.com/users/mediachain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mediachain/go-mediachain-client","description":"A mediachain client written in go","fork":false,"url":"https://api.github.com/repos/mediachain/go-mediachain-client","forks_url":"https://api.github.com/repos/mediachain/go-mediachain-client/forks","keys_url":"https://api.github.com/repos/mediachain/go-mediachain-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mediachain/go-mediachain-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mediachain/go-mediachain-client/teams","hooks_url":"https://api.github.com/repos/mediachain/go-mediachain-client/hooks","issue_events_url":"https://api.github.com/repos/mediachain/go-mediachain-client/issues/events{/number}","events_url":"https://api.github.com/repos/mediachain/go-mediachain-client/events","assignees_url":"https://api.github.com/repos/mediachain/go-mediachain-client/assignees{/user}","branches_url":"https://api.github.com/repos/mediachain/go-mediachain-client/branches{/branch}","tags_url":"https://api.github.com/repos/mediachain/go-mediachain-client/tags","blobs_url":"https://api.github.com/repos/mediachain/go-mediachain-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mediachain/go-mediachain-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mediachain/go-mediachain-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/mediachain/go-mediachain-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mediachain/go-mediachain-client/statuses/{sha}","languages_url":"https://api.github.com/repos/mediachain/go-mediachain-client/languages","stargazers_url":"https://api.github.com/repos/mediachain/go-mediachain-client/stargazers","contributors_url":"https://api.github.com/repos/mediachain/go-mediachain-client/contributors","subscribers_url":"https://api.github.com/repos/mediachain/go-mediachain-client/subscribers","subscription_url":"https://api.github.com/repos/mediachain/go-mediachain-client/subscription","commits_url":"https://api.github.com/repos/mediachain/go-mediachain-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/mediachain/go-mediachain-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/mediachain/go-mediachain-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/mediachain/go-mediachain-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/mediachain/go-mediachain-client/contents/{+path}","compare_url":"https://api.github.com/repos/mediachain/go-mediachain-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mediachain/go-mediachain-client/merges","archive_url":"https://api.github.com/repos/mediachain/go-mediachain-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mediachain/go-mediachain-client/downloads","issues_url":"https://api.github.com/repos/mediachain/go-mediachain-client/issues{/number}","pulls_url":"https://api.github.com/repos/mediachain/go-mediachain-client/pulls{/number}","milestones_url":"https://api.github.com/repos/mediachain/go-mediachain-client/milestones{/number}","notifications_url":"https://api.github.com/repos/mediachain/go-mediachain-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mediachain/go-mediachain-client/labels{/name}","releases_url":"https://api.github.com/repos/mediachain/go-mediachain-client/releases{/id}","deployments_url":"https://api.github.com/repos/mediachain/go-mediachain-client/deployments","created_at":"2016-08-10T21:37:50Z","updated_at":"2016-08-10T21:38:09Z","pushed_at":"2016-08-16T16:45:29Z","git_url":"git://github.com/mediachain/go-mediachain-client.git","ssh_url":"git@github.com:mediachain/go-mediachain-client.git","clone_url":"https://github.com/mediachain/go-mediachain-client.git","svn_url":"https://github.com/mediachain/go-mediachain-client","homepage":null,"size":23,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"mediachain:master","ref":"master","sha":"ecd9f6240b7d97383dfd3bec03369cc7fc141254","user":{"login":"mediachain","id":16711838,"avatar_url":"https://avatars.githubusercontent.com/u/16711838?v=3","gravatar_id":"","url":"https://api.github.com/users/mediachain","html_url":"https://github.com/mediachain","followers_url":"https://api.github.com/users/mediachain/followers","following_url":"https://api.github.com/users/mediachain/following{/other_user}","gists_url":"https://api.github.com/users/mediachain/gists{/gist_id}","starred_url":"https://api.github.com/users/mediachain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mediachain/subscriptions","organizations_url":"https://api.github.com/users/mediachain/orgs","repos_url":"https://api.github.com/users/mediachain/repos","events_url":"https://api.github.com/users/mediachain/events{/privacy}","received_events_url":"https://api.github.com/users/mediachain/received_events","type":"Organization","site_admin":false},"repo":{"id":65418185,"name":"go-mediachain-client","full_name":"mediachain/go-mediachain-client","owner":{"login":"mediachain","id":16711838,"avatar_url":"https://avatars.githubusercontent.com/u/16711838?v=3","gravatar_id":"","url":"https://api.github.com/users/mediachain","html_url":"https://github.com/mediachain","followers_url":"https://api.github.com/users/mediachain/followers","following_url":"https://api.github.com/users/mediachain/following{/other_user}","gists_url":"https://api.github.com/users/mediachain/gists{/gist_id}","starred_url":"https://api.github.com/users/mediachain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mediachain/subscriptions","organizations_url":"https://api.github.com/users/mediachain/orgs","repos_url":"https://api.github.com/users/mediachain/repos","events_url":"https://api.github.com/users/mediachain/events{/privacy}","received_events_url":"https://api.github.com/users/mediachain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mediachain/go-mediachain-client","description":"A mediachain client written in go","fork":false,"url":"https://api.github.com/repos/mediachain/go-mediachain-client","forks_url":"https://api.github.com/repos/mediachain/go-mediachain-client/forks","keys_url":"https://api.github.com/repos/mediachain/go-mediachain-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mediachain/go-mediachain-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mediachain/go-mediachain-client/teams","hooks_url":"https://api.github.com/repos/mediachain/go-mediachain-client/hooks","issue_events_url":"https://api.github.com/repos/mediachain/go-mediachain-client/issues/events{/number}","events_url":"https://api.github.com/repos/mediachain/go-mediachain-client/events","assignees_url":"https://api.github.com/repos/mediachain/go-mediachain-client/assignees{/user}","branches_url":"https://api.github.com/repos/mediachain/go-mediachain-client/branches{/branch}","tags_url":"https://api.github.com/repos/mediachain/go-mediachain-client/tags","blobs_url":"https://api.github.com/repos/mediachain/go-mediachain-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mediachain/go-mediachain-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mediachain/go-mediachain-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/mediachain/go-mediachain-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mediachain/go-mediachain-client/statuses/{sha}","languages_url":"https://api.github.com/repos/mediachain/go-mediachain-client/languages","stargazers_url":"https://api.github.com/repos/mediachain/go-mediachain-client/stargazers","contributors_url":"https://api.github.com/repos/mediachain/go-mediachain-client/contributors","subscribers_url":"https://api.github.com/repos/mediachain/go-mediachain-client/subscribers","subscription_url":"https://api.github.com/repos/mediachain/go-mediachain-client/subscription","commits_url":"https://api.github.com/repos/mediachain/go-mediachain-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/mediachain/go-mediachain-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/mediachain/go-mediachain-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/mediachain/go-mediachain-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/mediachain/go-mediachain-client/contents/{+path}","compare_url":"https://api.github.com/repos/mediachain/go-mediachain-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mediachain/go-mediachain-client/merges","archive_url":"https://api.github.com/repos/mediachain/go-mediachain-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mediachain/go-mediachain-client/downloads","issues_url":"https://api.github.com/repos/mediachain/go-mediachain-client/issues{/number}","pulls_url":"https://api.github.com/repos/mediachain/go-mediachain-client/pulls{/number}","milestones_url":"https://api.github.com/repos/mediachain/go-mediachain-client/milestones{/number}","notifications_url":"https://api.github.com/repos/mediachain/go-mediachain-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mediachain/go-mediachain-client/labels{/name}","releases_url":"https://api.github.com/repos/mediachain/go-mediachain-client/releases{/id}","deployments_url":"https://api.github.com/repos/mediachain/go-mediachain-client/deployments","created_at":"2016-08-10T21:37:50Z","updated_at":"2016-08-10T21:38:09Z","pushed_at":"2016-08-16T16:45:29Z","git_url":"git://github.com/mediachain/go-mediachain-client.git","ssh_url":"git@github.com:mediachain/go-mediachain-client.git","clone_url":"https://github.com/mediachain/go-mediachain-client.git","svn_url":"https://github.com/mediachain/go-mediachain-client","homepage":null,"size":23,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mediachain/go-mediachain-client/pulls/1"},"html":{"href":"https://github.com/mediachain/go-mediachain-client/pull/1"},"issue":{"href":"https://api.github.com/repos/mediachain/go-mediachain-client/issues/1"},"comments":{"href":"https://api.github.com/repos/mediachain/go-mediachain-client/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/mediachain/go-mediachain-client/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/mediachain/go-mediachain-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mediachain/go-mediachain-client/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/mediachain/go-mediachain-client/statuses/dd4e9bec54b25bb8524cbe3ed6ebf2aa3241431e"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":2,"review_comments":1,"commits":4,"additions":158,"deletions":7,"changed_files":3}}
{"actor":{"display_login":"yusefnapora"}}