{"action":"created","comment":{"url":"https://api.github.com/repos/ipfs/go-ipfs-api/pulls/comments/198574913","pull_request_review_id":132528474,"id":198574913,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5ODU3NDkxMw==","diff_hunk":"@@ -0,0 +1,37 @@\n+package shell_test\n+\n+import (\n+\t\"fmt\"\n+\t\"testing\"\n+\t\"time\"\n+\n+\tipfsapi \"github.com/RTradeLtd/go-ipfs-api\"\n+)\n+\n+var examplesHash = \"/ipfs/Qmbu7x6gJbsKDcseQv66pSbUcAA3Au6f7MfTYVXwvBxN2K\"\n+\n+func TestPublishDetailsWithKey(t *testing.T) {\n+\tshell := ipfsapi.NewShell(\"localhost:5001\")","path":"ipns_test.go","position":14,"original_position":14,"commit_id":"18615a8c158a7d64746e6cf59d38c188168db248","original_commit_id":"18615a8c158a7d64746e6cf59d38c188168db248","user":{"login":"magik6k","id":3867941,"node_id":"MDQ6VXNlcjM4Njc5NDE=","avatar_url":"https://avatars0.githubusercontent.com/u/3867941?v=4","gravatar_id":"","url":"https://api.github.com/users/magik6k","html_url":"https://github.com/magik6k","followers_url":"https://api.github.com/users/magik6k/followers","following_url":"https://api.github.com/users/magik6k/following{/other_user}","gists_url":"https://api.github.com/users/magik6k/gists{/gist_id}","starred_url":"https://api.github.com/users/magik6k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magik6k/subscriptions","organizations_url":"https://api.github.com/users/magik6k/orgs","repos_url":"https://api.github.com/users/magik6k/repos","events_url":"https://api.github.com/users/magik6k/events{/privacy}","received_events_url":"https://api.github.com/users/magik6k/received_events","type":"User","site_admin":false},"body":"(Note that you'll need to change the package to just `shell`)","created_at":"2018-06-27T17:19:35Z","updated_at":"2018-06-27T17:30:39Z","html_url":"https://github.com/ipfs/go-ipfs-api/pull/91#discussion_r198574913","pull_request_url":"https://api.github.com/repos/ipfs/go-ipfs-api/pulls/91","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/ipfs/go-ipfs-api/pulls/comments/198574913"},"html":{"href":"https://github.com/ipfs/go-ipfs-api/pull/91#discussion_r198574913"},"pull_request":{"href":"https://api.github.com/repos/ipfs/go-ipfs-api/pulls/91"}},"in_reply_to_id":198574703},"pull_request":{"url":"https://api.github.com/repos/ipfs/go-ipfs-api/pulls/91","id":196874853,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2ODc0ODUz","html_url":"https://github.com/ipfs/go-ipfs-api/pull/91","diff_url":"https://github.com/ipfs/go-ipfs-api/pull/91.diff","patch_url":"https://github.com/ipfs/go-ipfs-api/pull/91.patch","issue_url":"https://api.github.com/repos/ipfs/go-ipfs-api/issues/91","number":91,"state":"open","locked":false,"title":"Add additional publish function for more fine grained control of IPNS record publishing","user":{"login":"postables","id":17089485,"node_id":"MDQ6VXNlcjE3MDg5NDg1","avatar_url":"https://avatars1.githubusercontent.com/u/17089485?v=4","gravatar_id":"","url":"https://api.github.com/users/postables","html_url":"https://github.com/postables","followers_url":"https://api.github.com/users/postables/followers","following_url":"https://api.github.com/users/postables/following{/other_user}","gists_url":"https://api.github.com/users/postables/gists{/gist_id}","starred_url":"https://api.github.com/users/postables/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postables/subscriptions","organizations_url":"https://api.github.com/users/postables/orgs","repos_url":"https://api.github.com/users/postables/repos","events_url":"https://api.github.com/users/postables/events{/privacy}","received_events_url":"https://api.github.com/users/postables/received_events","type":"User","site_admin":false},"body":"Hello,\r\n\r\nI recently ran into an issue with go-ipfs-api where I wanted additional control over IPNS record publishing (key specification, ttl, etc..., retrieving the response) so I have created an additional function `PublishWithDetails`, which returns the response from the IPFS daemon as well as allows for manipulation of the api parameters.","created_at":"2018-06-23T02:01:00Z","updated_at":"2018-06-27T17:30:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8f1527a91bc08322b7efe6de975a44ff81536ce6","assignee":null,"assignees":[],"requested_reviewers":[{"login":"lgierth","id":19248,"node_id":"MDQ6VXNlcjE5MjQ4","avatar_url":"https://avatars0.githubusercontent.com/u/19248?v=4","gravatar_id":"","url":"https://api.github.com/users/lgierth","html_url":"https://github.com/lgierth","followers_url":"https://api.github.com/users/lgierth/followers","following_url":"https://api.github.com/users/lgierth/following{/other_user}","gists_url":"https://api.github.com/users/lgierth/gists{/gist_id}","starred_url":"https://api.github.com/users/lgierth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgierth/subscriptions","organizations_url":"https://api.github.com/users/lgierth/orgs","repos_url":"https://api.github.com/users/lgierth/repos","events_url":"https://api.github.com/users/lgierth/events{/privacy}","received_events_url":"https://api.github.com/users/lgierth/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ipfs/go-ipfs-api/pulls/91/commits","review_comments_url":"https://api.github.com/repos/ipfs/go-ipfs-api/pulls/91/comments","review_comment_url":"https://api.github.com/repos/ipfs/go-ipfs-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ipfs/go-ipfs-api/issues/91/comments","statuses_url":"https://api.github.com/repos/ipfs/go-ipfs-api/statuses/18615a8c158a7d64746e6cf59d38c188168db248","head":{"label":"RTradeLtd:master","ref":"master","sha":"18615a8c158a7d64746e6cf59d38c188168db248","user":{"login":"RTradeLtd","id":34983363,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0OTgzMzYz","avatar_url":"https://avatars3.githubusercontent.com/u/34983363?v=4","gravatar_id":"","url":"https://api.github.com/users/RTradeLtd","html_url":"https://github.com/RTradeLtd","followers_url":"https://api.github.com/users/RTradeLtd/followers","following_url":"https://api.github.com/users/RTradeLtd/following{/other_user}","gists_url":"https://api.github.com/users/RTradeLtd/gists{/gist_id}","starred_url":"https://api.github.com/users/RTradeLtd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RTradeLtd/subscriptions","organizations_url":"https://api.github.com/users/RTradeLtd/orgs","repos_url":"https://api.github.com/users/RTradeLtd/repos","events_url":"https://api.github.com/users/RTradeLtd/events{/privacy}","received_events_url":"https://api.github.com/users/RTradeLtd/received_events","type":"Organization","site_admin":false},"repo":{"id":137631181,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc2MzExODE=","name":"go-ipfs-api","full_name":"RTradeLtd/go-ipfs-api","owner":{"login":"RTradeLtd","id":34983363,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0OTgzMzYz","avatar_url":"https://avatars3.githubusercontent.com/u/34983363?v=4","gravatar_id":"","url":"https://api.github.com/users/RTradeLtd","html_url":"https://github.com/RTradeLtd","followers_url":"https://api.github.com/users/RTradeLtd/followers","following_url":"https://api.github.com/users/RTradeLtd/following{/other_user}","gists_url":"https://api.github.com/users/RTradeLtd/gists{/gist_id}","starred_url":"https://api.github.com/users/RTradeLtd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RTradeLtd/subscriptions","organizations_url":"https://api.github.com/users/RTradeLtd/orgs","repos_url":"https://api.github.com/users/RTradeLtd/repos","events_url":"https://api.github.com/users/RTradeLtd/events{/privacy}","received_events_url":"https://api.github.com/users/RTradeLtd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RTradeLtd/go-ipfs-api","description":"An unofficial go interface to ipfs's HTTP API","fork":true,"url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api","forks_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/forks","keys_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/teams","hooks_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/hooks","issue_events_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/issues/events{/number}","events_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/events","assignees_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/assignees{/user}","branches_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/branches{/branch}","tags_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/tags","blobs_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/statuses/{sha}","languages_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/languages","stargazers_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/stargazers","contributors_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/contributors","subscribers_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/subscribers","subscription_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/subscription","commits_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/contents/{+path}","compare_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/merges","archive_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/downloads","issues_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/issues{/number}","pulls_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/pulls{/number}","milestones_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/milestones{/number}","notifications_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/labels{/name}","releases_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/releases{/id}","deployments_url":"https://api.github.com/repos/RTradeLtd/go-ipfs-api/deployments","created_at":"2018-06-17T05:25:45Z","updated_at":"2018-06-27T16:56:22Z","pushed_at":"2018-06-27T16:56:21Z","git_url":"git://github.com/RTradeLtd/go-ipfs-api.git","ssh_url":"git@github.com:RTradeLtd/go-ipfs-api.git","clone_url":"https://github.com/RTradeLtd/go-ipfs-api.git","svn_url":"https://github.com/RTradeLtd/go-ipfs-api","homepage":"","size":142,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ipfs:master","ref":"master","sha":"de157cafdf393f0c43f49351aeb42c5f528778b8","user":{"login":"ipfs","id":10536621,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNTM2NjIx","avatar_url":"https://avatars0.githubusercontent.com/u/10536621?v=4","gravatar_id":"","url":"https://api.github.com/users/ipfs","html_url":"https://github.com/ipfs","followers_url":"https://api.github.com/users/ipfs/followers","following_url":"https://api.github.com/users/ipfs/following{/other_user}","gists_url":"https://api.github.com/users/ipfs/gists{/gist_id}","starred_url":"https://api.github.com/users/ipfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipfs/subscriptions","organizations_url":"https://api.github.com/users/ipfs/orgs","repos_url":"https://api.github.com/users/ipfs/repos","events_url":"https://api.github.com/users/ipfs/events{/privacy}","received_events_url":"https://api.github.com/users/ipfs/received_events","type":"Organization","site_admin":false},"repo":{"id":35529429,"node_id":"MDEwOlJlcG9zaXRvcnkzNTUyOTQyOQ==","name":"go-ipfs-api","full_name":"ipfs/go-ipfs-api","owner":{"login":"ipfs","id":10536621,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNTM2NjIx","avatar_url":"https://avatars0.githubusercontent.com/u/10536621?v=4","gravatar_id":"","url":"https://api.github.com/users/ipfs","html_url":"https://github.com/ipfs","followers_url":"https://api.github.com/users/ipfs/followers","following_url":"https://api.github.com/users/ipfs/following{/other_user}","gists_url":"https://api.github.com/users/ipfs/gists{/gist_id}","starred_url":"https://api.github.com/users/ipfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipfs/subscriptions","organizations_url":"https://api.github.com/users/ipfs/orgs","repos_url":"https://api.github.com/users/ipfs/repos","events_url":"https://api.github.com/users/ipfs/events{/privacy}","received_events_url":"https://api.github.com/users/ipfs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ipfs/go-ipfs-api","description":"An unofficial go interface to ipfs's HTTP API","fork":false,"url":"https://api.github.com/repos/ipfs/go-ipfs-api","forks_url":"https://api.github.com/repos/ipfs/go-ipfs-api/forks","keys_url":"https://api.github.com/repos/ipfs/go-ipfs-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ipfs/go-ipfs-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ipfs/go-ipfs-api/teams","hooks_url":"https://api.github.com/repos/ipfs/go-ipfs-api/hooks","issue_events_url":"https://api.github.com/repos/ipfs/go-ipfs-api/issues/events{/number}","events_url":"https://api.github.com/repos/ipfs/go-ipfs-api/events","assignees_url":"https://api.github.com/repos/ipfs/go-ipfs-api/assignees{/user}","branches_url":"https://api.github.com/repos/ipfs/go-ipfs-api/branches{/branch}","tags_url":"https://api.github.com/repos/ipfs/go-ipfs-api/tags","blobs_url":"https://api.github.com/repos/ipfs/go-ipfs-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ipfs/go-ipfs-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ipfs/go-ipfs-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/ipfs/go-ipfs-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ipfs/go-ipfs-api/statuses/{sha}","languages_url":"https://api.github.com/repos/ipfs/go-ipfs-api/languages","stargazers_url":"https://api.github.com/repos/ipfs/go-ipfs-api/stargazers","contributors_url":"https://api.github.com/repos/ipfs/go-ipfs-api/contributors","subscribers_url":"https://api.github.com/repos/ipfs/go-ipfs-api/subscribers","subscription_url":"https://api.github.com/repos/ipfs/go-ipfs-api/subscription","commits_url":"https://api.github.com/repos/ipfs/go-ipfs-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/ipfs/go-ipfs-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/ipfs/go-ipfs-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/ipfs/go-ipfs-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/ipfs/go-ipfs-api/contents/{+path}","compare_url":"https://api.github.com/repos/ipfs/go-ipfs-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ipfs/go-ipfs-api/merges","archive_url":"https://api.github.com/repos/ipfs/go-ipfs-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ipfs/go-ipfs-api/downloads","issues_url":"https://api.github.com/repos/ipfs/go-ipfs-api/issues{/number}","pulls_url":"https://api.github.com/repos/ipfs/go-ipfs-api/pulls{/number}","milestones_url":"https://api.github.com/repos/ipfs/go-ipfs-api/milestones{/number}","notifications_url":"https://api.github.com/repos/ipfs/go-ipfs-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ipfs/go-ipfs-api/labels{/name}","releases_url":"https://api.github.com/repos/ipfs/go-ipfs-api/releases{/id}","deployments_url":"https://api.github.com/repos/ipfs/go-ipfs-api/deployments","created_at":"2015-05-13T05:09:55Z","updated_at":"2018-06-23T07:28:15Z","pushed_at":"2018-06-27T16:56:22Z","git_url":"git://github.com/ipfs/go-ipfs-api.git","ssh_url":"git@github.com:ipfs/go-ipfs-api.git","clone_url":"https://github.com/ipfs/go-ipfs-api.git","svn_url":"https://github.com/ipfs/go-ipfs-api","homepage":"","size":135,"stargazers_count":102,"watchers_count":102,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":53,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":53,"open_issues":21,"watchers":102,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ipfs/go-ipfs-api/pulls/91"},"html":{"href":"https://github.com/ipfs/go-ipfs-api/pull/91"},"issue":{"href":"https://api.github.com/repos/ipfs/go-ipfs-api/issues/91"},"comments":{"href":"https://api.github.com/repos/ipfs/go-ipfs-api/issues/91/comments"},"review_comments":{"href":"https://api.github.com/repos/ipfs/go-ipfs-api/pulls/91/comments"},"review_comment":{"href":"https://api.github.com/repos/ipfs/go-ipfs-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ipfs/go-ipfs-api/pulls/91/commits"},"statuses":{"href":"https://api.github.com/repos/ipfs/go-ipfs-api/statuses/18615a8c158a7d64746e6cf59d38c188168db248"}},"author_association":"NONE"}}
{"actor":{"display_login":"magik6k"}}