{"action":"created","comment":{"url":"https://api.github.com/repos/docker/docker/pulls/comments/31472080","id":31472080,"diff_hunk":"@@ -0,0 +1,13 @@\n+package ioutils\n+\n+import (\n+\t\"fmt\"\n+\t\"io\"\n+)\n+\n+// FprintfIfNotEmpty prints the string value if it's not empty\n+func FprintfIfNotEmpty(w io.Writer, format, value string) {","path":"pkg/ioutils/fmt.go","position":9,"original_position":9,"commit_id":"6e9fe7d1a60051b7348b26c73a5bed7fe0d00ac2","original_commit_id":"6e9fe7d1a60051b7348b26c73a5bed7fe0d00ac2","user":{"login":"tiborvass","id":827131,"avatar_url":"https://avatars.githubusercontent.com/u/827131?v=3","gravatar_id":"","url":"https://api.github.com/users/tiborvass","html_url":"https://github.com/tiborvass","followers_url":"https://api.github.com/users/tiborvass/followers","following_url":"https://api.github.com/users/tiborvass/following{/other_user}","gists_url":"https://api.github.com/users/tiborvass/gists{/gist_id}","starred_url":"https://api.github.com/users/tiborvass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiborvass/subscriptions","organizations_url":"https://api.github.com/users/tiborvass/orgs","repos_url":"https://api.github.com/users/tiborvass/repos","events_url":"https://api.github.com/users/tiborvass/events{/privacy}","received_events_url":"https://api.github.com/users/tiborvass/received_events","type":"User","site_admin":false},"body":"should return `(int, error)`","created_at":"2015-06-01T21:24:06Z","updated_at":"2015-06-01T21:24:06Z","html_url":"https://github.com/docker/docker/pull/13607#discussion_r31472080","pull_request_url":"https://api.github.com/repos/docker/docker/pulls/13607","_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/comments/31472080"},"html":{"href":"https://github.com/docker/docker/pull/13607#discussion_r31472080"},"pull_request":{"href":"https://api.github.com/repos/docker/docker/pulls/13607"}}},"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/13607","id":36554816,"html_url":"https://github.com/docker/docker/pull/13607","diff_url":"https://github.com/docker/docker/pull/13607.diff","patch_url":"https://github.com/docker/docker/pull/13607.patch","issue_url":"https://api.github.com/repos/docker/docker/issues/13607","number":13607,"state":"open","locked":false,"title":"do not print empty values in docker info","user":{"login":"vieux","id":1032519,"avatar_url":"https://avatars.githubusercontent.com/u/1032519?v=3","gravatar_id":"","url":"https://api.github.com/users/vieux","html_url":"https://github.com/vieux","followers_url":"https://api.github.com/users/vieux/followers","following_url":"https://api.github.com/users/vieux/following{/other_user}","gists_url":"https://api.github.com/users/vieux/gists{/gist_id}","starred_url":"https://api.github.com/users/vieux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vieux/subscriptions","organizations_url":"https://api.github.com/users/vieux/orgs","repos_url":"https://api.github.com/users/vieux/repos","events_url":"https://api.github.com/users/vieux/events{/privacy}","received_events_url":"https://api.github.com/users/vieux/received_events","type":"User","site_admin":false},"body":"When jobs where removed in https://github.com/docker/docker/pull/12266 some \r\n\r\n`if value != \"\"` where omitted. It makes the docker info agains a swarm daemon looks bad.\r\nThis is my attempt to fix this.","created_at":"2015-05-29T23:52:26Z","updated_at":"2015-06-01T21:24:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"456154c08e01a2427bb0164aaad15bcd790e3104","assignee":null,"milestone":{"url":"https://api.github.com/repos/docker/docker/milestones/38","html_url":"https://github.com/docker/docker/milestones/1.7.0","labels_url":"https://api.github.com/repos/docker/docker/milestones/38/labels","id":1010239,"number":38,"title":"1.7.0","description":"Freeze May 26\r\nRelease  June 16","creator":{"login":"dmcgowan","id":169601,"avatar_url":"https://avatars.githubusercontent.com/u/169601?v=3","gravatar_id":"","url":"https://api.github.com/users/dmcgowan","html_url":"https://github.com/dmcgowan","followers_url":"https://api.github.com/users/dmcgowan/followers","following_url":"https://api.github.com/users/dmcgowan/following{/other_user}","gists_url":"https://api.github.com/users/dmcgowan/gists{/gist_id}","starred_url":"https://api.github.com/users/dmcgowan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmcgowan/subscriptions","organizations_url":"https://api.github.com/users/dmcgowan/orgs","repos_url":"https://api.github.com/users/dmcgowan/repos","events_url":"https://api.github.com/users/dmcgowan/events{/privacy}","received_events_url":"https://api.github.com/users/dmcgowan/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":59,"state":"open","created_at":"2015-03-07T01:54:49Z","updated_at":"2015-06-01T21:23:42Z","due_on":"2015-05-26T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/docker/docker/pulls/13607/commits","review_comments_url":"https://api.github.com/repos/docker/docker/pulls/13607/comments","review_comment_url":"https://api.github.com/repos/docker/docker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/docker/issues/13607/comments","statuses_url":"https://api.github.com/repos/docker/docker/statuses/6e9fe7d1a60051b7348b26c73a5bed7fe0d00ac2","head":{"label":"vieux:PrintfIfNotEmpty","ref":"PrintfIfNotEmpty","sha":"6e9fe7d1a60051b7348b26c73a5bed7fe0d00ac2","user":{"login":"vieux","id":1032519,"avatar_url":"https://avatars.githubusercontent.com/u/1032519?v=3","gravatar_id":"","url":"https://api.github.com/users/vieux","html_url":"https://github.com/vieux","followers_url":"https://api.github.com/users/vieux/followers","following_url":"https://api.github.com/users/vieux/following{/other_user}","gists_url":"https://api.github.com/users/vieux/gists{/gist_id}","starred_url":"https://api.github.com/users/vieux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vieux/subscriptions","organizations_url":"https://api.github.com/users/vieux/orgs","repos_url":"https://api.github.com/users/vieux/repos","events_url":"https://api.github.com/users/vieux/events{/privacy}","received_events_url":"https://api.github.com/users/vieux/received_events","type":"User","site_admin":false},"repo":{"id":9343231,"name":"docker","full_name":"vieux/docker","owner":{"login":"vieux","id":1032519,"avatar_url":"https://avatars.githubusercontent.com/u/1032519?v=3","gravatar_id":"","url":"https://api.github.com/users/vieux","html_url":"https://github.com/vieux","followers_url":"https://api.github.com/users/vieux/followers","following_url":"https://api.github.com/users/vieux/following{/other_user}","gists_url":"https://api.github.com/users/vieux/gists{/gist_id}","starred_url":"https://api.github.com/users/vieux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vieux/subscriptions","organizations_url":"https://api.github.com/users/vieux/orgs","repos_url":"https://api.github.com/users/vieux/repos","events_url":"https://api.github.com/users/vieux/events{/privacy}","received_events_url":"https://api.github.com/users/vieux/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vieux/docker","description":"Docker - the Linux container runtime","fork":true,"url":"https://api.github.com/repos/vieux/docker","forks_url":"https://api.github.com/repos/vieux/docker/forks","keys_url":"https://api.github.com/repos/vieux/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vieux/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vieux/docker/teams","hooks_url":"https://api.github.com/repos/vieux/docker/hooks","issue_events_url":"https://api.github.com/repos/vieux/docker/issues/events{/number}","events_url":"https://api.github.com/repos/vieux/docker/events","assignees_url":"https://api.github.com/repos/vieux/docker/assignees{/user}","branches_url":"https://api.github.com/repos/vieux/docker/branches{/branch}","tags_url":"https://api.github.com/repos/vieux/docker/tags","blobs_url":"https://api.github.com/repos/vieux/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vieux/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vieux/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/vieux/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vieux/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/vieux/docker/languages","stargazers_url":"https://api.github.com/repos/vieux/docker/stargazers","contributors_url":"https://api.github.com/repos/vieux/docker/contributors","subscribers_url":"https://api.github.com/repos/vieux/docker/subscribers","subscription_url":"https://api.github.com/repos/vieux/docker/subscription","commits_url":"https://api.github.com/repos/vieux/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/vieux/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/vieux/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/vieux/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/vieux/docker/contents/{+path}","compare_url":"https://api.github.com/repos/vieux/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vieux/docker/merges","archive_url":"https://api.github.com/repos/vieux/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vieux/docker/downloads","issues_url":"https://api.github.com/repos/vieux/docker/issues{/number}","pulls_url":"https://api.github.com/repos/vieux/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/vieux/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/vieux/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vieux/docker/labels{/name}","releases_url":"https://api.github.com/repos/vieux/docker/releases{/id}","created_at":"2013-04-10T09:57:14Z","updated_at":"2014-07-24T21:22:20Z","pushed_at":"2015-06-01T20:30:34Z","git_url":"git://github.com/vieux/docker.git","ssh_url":"git@github.com:vieux/docker.git","clone_url":"https://github.com/vieux/docker.git","svn_url":"https://github.com/vieux/docker","homepage":"http://docker.io","size":62375,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"docker:master","ref":"master","sha":"64a74316634b75dd406673ebaba15eb2bbd96d11","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":7691631,"name":"docker","full_name":"docker/docker","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/docker","description":"Docker - the open-source application container engine","fork":false,"url":"https://api.github.com/repos/docker/docker","forks_url":"https://api.github.com/repos/docker/docker/forks","keys_url":"https://api.github.com/repos/docker/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/docker/teams","hooks_url":"https://api.github.com/repos/docker/docker/hooks","issue_events_url":"https://api.github.com/repos/docker/docker/issues/events{/number}","events_url":"https://api.github.com/repos/docker/docker/events","assignees_url":"https://api.github.com/repos/docker/docker/assignees{/user}","branches_url":"https://api.github.com/repos/docker/docker/branches{/branch}","tags_url":"https://api.github.com/repos/docker/docker/tags","blobs_url":"https://api.github.com/repos/docker/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/docker/languages","stargazers_url":"https://api.github.com/repos/docker/docker/stargazers","contributors_url":"https://api.github.com/repos/docker/docker/contributors","subscribers_url":"https://api.github.com/repos/docker/docker/subscribers","subscription_url":"https://api.github.com/repos/docker/docker/subscription","commits_url":"https://api.github.com/repos/docker/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/docker/contents/{+path}","compare_url":"https://api.github.com/repos/docker/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/docker/merges","archive_url":"https://api.github.com/repos/docker/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/docker/downloads","issues_url":"https://api.github.com/repos/docker/docker/issues{/number}","pulls_url":"https://api.github.com/repos/docker/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/docker/labels{/name}","releases_url":"https://api.github.com/repos/docker/docker/releases{/id}","created_at":"2013-01-18T18:10:57Z","updated_at":"2015-06-01T20:31:49Z","pushed_at":"2015-06-01T21:11:54Z","git_url":"git://github.com/docker/docker.git","ssh_url":"git@github.com:docker/docker.git","clone_url":"https://github.com/docker/docker.git","svn_url":"https://github.com/docker/docker","homepage":"http://www.docker.com","size":222453,"stargazers_count":22060,"watchers_count":22060,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5248,"mirror_url":null,"open_issues_count":1027,"forks":5248,"open_issues":1027,"watchers":22060,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/13607"},"html":{"href":"https://github.com/docker/docker/pull/13607"},"issue":{"href":"https://api.github.com/repos/docker/docker/issues/13607"},"comments":{"href":"https://api.github.com/repos/docker/docker/issues/13607/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/docker/pulls/13607/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/docker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/docker/pulls/13607/commits"},"statuses":{"href":"https://api.github.com/repos/docker/docker/statuses/6e9fe7d1a60051b7348b26c73a5bed7fe0d00ac2"}}}}