{"action":"created","comment":{"url":"https://api.github.com/repos/cloudflare/cfssl/pulls/comments/43270196","id":43270196,"diff_hunk":"@@ -189,6 +187,17 @@ func NewSuccessResponse(result interface{}) Response {\n \t}\n }\n \n+// NewSuccessResponseWithMessage is a shortcut for creating new successul API\n+// responses that include messages.","path":"api/api.go","position":25,"original_position":25,"commit_id":"60e46ecc8a5156c1d9089da69d4a3c24662454f8","original_commit_id":"60e46ecc8a5156c1d9089da69d4a3c24662454f8","user":{"login":"kisom","id":175578,"avatar_url":"https://avatars.githubusercontent.com/u/175578?v=3","gravatar_id":"","url":"https://api.github.com/users/kisom","html_url":"https://github.com/kisom","followers_url":"https://api.github.com/users/kisom/followers","following_url":"https://api.github.com/users/kisom/following{/other_user}","gists_url":"https://api.github.com/users/kisom/gists{/gist_id}","starred_url":"https://api.github.com/users/kisom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kisom/subscriptions","organizations_url":"https://api.github.com/users/kisom/orgs","repos_url":"https://api.github.com/users/kisom/repos","events_url":"https://api.github.com/users/kisom/events{/privacy}","received_events_url":"https://api.github.com/users/kisom/received_events","type":"User","site_admin":false},"body":"The comment should be \"includes a message.\"","created_at":"2015-10-28T15:23:54Z","updated_at":"2015-10-28T15:23:54Z","html_url":"https://github.com/cloudflare/cfssl/pull/377#discussion_r43270196","pull_request_url":"https://api.github.com/repos/cloudflare/cfssl/pulls/377","_links":{"self":{"href":"https://api.github.com/repos/cloudflare/cfssl/pulls/comments/43270196"},"html":{"href":"https://github.com/cloudflare/cfssl/pull/377#discussion_r43270196"},"pull_request":{"href":"https://api.github.com/repos/cloudflare/cfssl/pulls/377"}}},"pull_request":{"url":"https://api.github.com/repos/cloudflare/cfssl/pulls/377","id":47329201,"html_url":"https://github.com/cloudflare/cfssl/pull/377","diff_url":"https://github.com/cloudflare/cfssl/pull/377.diff","patch_url":"https://github.com/cloudflare/cfssl/pull/377.patch","issue_url":"https://api.github.com/repos/cloudflare/cfssl/issues/377","number":377,"state":"open","locked":false,"title":"Allow for CSRs with no hosts, but gives a warning if that occurs.","user":{"login":"j-delaney","id":3589480,"avatar_url":"https://avatars.githubusercontent.com/u/3589480?v=3","gravatar_id":"","url":"https://api.github.com/users/j-delaney","html_url":"https://github.com/j-delaney","followers_url":"https://api.github.com/users/j-delaney/followers","following_url":"https://api.github.com/users/j-delaney/following{/other_user}","gists_url":"https://api.github.com/users/j-delaney/gists{/gist_id}","starred_url":"https://api.github.com/users/j-delaney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j-delaney/subscriptions","organizations_url":"https://api.github.com/users/j-delaney/orgs","repos_url":"https://api.github.com/users/j-delaney/repos","events_url":"https://api.github.com/users/j-delaney/events{/privacy}","received_events_url":"https://api.github.com/users/j-delaney/received_events","type":"User","site_admin":false},"body":"Resolves https://github.com/cloudflare/cfssl/issues/353","created_at":"2015-10-09T23:08:13Z","updated_at":"2015-10-28T15:23:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b09346a90866ff52e8d6a6ed3b6e127c6dc30382","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cloudflare/cfssl/pulls/377/commits","review_comments_url":"https://api.github.com/repos/cloudflare/cfssl/pulls/377/comments","review_comment_url":"https://api.github.com/repos/cloudflare/cfssl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudflare/cfssl/issues/377/comments","statuses_url":"https://api.github.com/repos/cloudflare/cfssl/statuses/60e46ecc8a5156c1d9089da69d4a3c24662454f8","head":{"label":"j-delaney:hosts-optional","ref":"hosts-optional","sha":"60e46ecc8a5156c1d9089da69d4a3c24662454f8","user":{"login":"j-delaney","id":3589480,"avatar_url":"https://avatars.githubusercontent.com/u/3589480?v=3","gravatar_id":"","url":"https://api.github.com/users/j-delaney","html_url":"https://github.com/j-delaney","followers_url":"https://api.github.com/users/j-delaney/followers","following_url":"https://api.github.com/users/j-delaney/following{/other_user}","gists_url":"https://api.github.com/users/j-delaney/gists{/gist_id}","starred_url":"https://api.github.com/users/j-delaney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j-delaney/subscriptions","organizations_url":"https://api.github.com/users/j-delaney/orgs","repos_url":"https://api.github.com/users/j-delaney/repos","events_url":"https://api.github.com/users/j-delaney/events{/privacy}","received_events_url":"https://api.github.com/users/j-delaney/received_events","type":"User","site_admin":false},"repo":{"id":42228727,"name":"cfssl","full_name":"j-delaney/cfssl","owner":{"login":"j-delaney","id":3589480,"avatar_url":"https://avatars.githubusercontent.com/u/3589480?v=3","gravatar_id":"","url":"https://api.github.com/users/j-delaney","html_url":"https://github.com/j-delaney","followers_url":"https://api.github.com/users/j-delaney/followers","following_url":"https://api.github.com/users/j-delaney/following{/other_user}","gists_url":"https://api.github.com/users/j-delaney/gists{/gist_id}","starred_url":"https://api.github.com/users/j-delaney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j-delaney/subscriptions","organizations_url":"https://api.github.com/users/j-delaney/orgs","repos_url":"https://api.github.com/users/j-delaney/repos","events_url":"https://api.github.com/users/j-delaney/events{/privacy}","received_events_url":"https://api.github.com/users/j-delaney/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/j-delaney/cfssl","description":"CFSSL: CloudFlare's PKI toolkit","fork":true,"url":"https://api.github.com/repos/j-delaney/cfssl","forks_url":"https://api.github.com/repos/j-delaney/cfssl/forks","keys_url":"https://api.github.com/repos/j-delaney/cfssl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/j-delaney/cfssl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/j-delaney/cfssl/teams","hooks_url":"https://api.github.com/repos/j-delaney/cfssl/hooks","issue_events_url":"https://api.github.com/repos/j-delaney/cfssl/issues/events{/number}","events_url":"https://api.github.com/repos/j-delaney/cfssl/events","assignees_url":"https://api.github.com/repos/j-delaney/cfssl/assignees{/user}","branches_url":"https://api.github.com/repos/j-delaney/cfssl/branches{/branch}","tags_url":"https://api.github.com/repos/j-delaney/cfssl/tags","blobs_url":"https://api.github.com/repos/j-delaney/cfssl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/j-delaney/cfssl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/j-delaney/cfssl/git/refs{/sha}","trees_url":"https://api.github.com/repos/j-delaney/cfssl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/j-delaney/cfssl/statuses/{sha}","languages_url":"https://api.github.com/repos/j-delaney/cfssl/languages","stargazers_url":"https://api.github.com/repos/j-delaney/cfssl/stargazers","contributors_url":"https://api.github.com/repos/j-delaney/cfssl/contributors","subscribers_url":"https://api.github.com/repos/j-delaney/cfssl/subscribers","subscription_url":"https://api.github.com/repos/j-delaney/cfssl/subscription","commits_url":"https://api.github.com/repos/j-delaney/cfssl/commits{/sha}","git_commits_url":"https://api.github.com/repos/j-delaney/cfssl/git/commits{/sha}","comments_url":"https://api.github.com/repos/j-delaney/cfssl/comments{/number}","issue_comment_url":"https://api.github.com/repos/j-delaney/cfssl/issues/comments{/number}","contents_url":"https://api.github.com/repos/j-delaney/cfssl/contents/{+path}","compare_url":"https://api.github.com/repos/j-delaney/cfssl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/j-delaney/cfssl/merges","archive_url":"https://api.github.com/repos/j-delaney/cfssl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/j-delaney/cfssl/downloads","issues_url":"https://api.github.com/repos/j-delaney/cfssl/issues{/number}","pulls_url":"https://api.github.com/repos/j-delaney/cfssl/pulls{/number}","milestones_url":"https://api.github.com/repos/j-delaney/cfssl/milestones{/number}","notifications_url":"https://api.github.com/repos/j-delaney/cfssl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/j-delaney/cfssl/labels{/name}","releases_url":"https://api.github.com/repos/j-delaney/cfssl/releases{/id}","created_at":"2015-09-10T07:12:10Z","updated_at":"2015-09-10T07:12:11Z","pushed_at":"2015-10-10T19:18:09Z","git_url":"git://github.com/j-delaney/cfssl.git","ssh_url":"git@github.com:j-delaney/cfssl.git","clone_url":"https://github.com/j-delaney/cfssl.git","svn_url":"https://github.com/j-delaney/cfssl","homepage":"https://blog.cloudflare.com/introducing-cfssl","size":2323,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cloudflare:master","ref":"master","sha":"b7dd189e4405359d1df4630109daaae8b1f41302","user":{"login":"cloudflare","id":314135,"avatar_url":"https://avatars.githubusercontent.com/u/314135?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudflare","html_url":"https://github.com/cloudflare","followers_url":"https://api.github.com/users/cloudflare/followers","following_url":"https://api.github.com/users/cloudflare/following{/other_user}","gists_url":"https://api.github.com/users/cloudflare/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudflare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudflare/subscriptions","organizations_url":"https://api.github.com/users/cloudflare/orgs","repos_url":"https://api.github.com/users/cloudflare/repos","events_url":"https://api.github.com/users/cloudflare/events{/privacy}","received_events_url":"https://api.github.com/users/cloudflare/received_events","type":"Organization","site_admin":false},"repo":{"id":21591001,"name":"cfssl","full_name":"cloudflare/cfssl","owner":{"login":"cloudflare","id":314135,"avatar_url":"https://avatars.githubusercontent.com/u/314135?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudflare","html_url":"https://github.com/cloudflare","followers_url":"https://api.github.com/users/cloudflare/followers","following_url":"https://api.github.com/users/cloudflare/following{/other_user}","gists_url":"https://api.github.com/users/cloudflare/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudflare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudflare/subscriptions","organizations_url":"https://api.github.com/users/cloudflare/orgs","repos_url":"https://api.github.com/users/cloudflare/repos","events_url":"https://api.github.com/users/cloudflare/events{/privacy}","received_events_url":"https://api.github.com/users/cloudflare/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudflare/cfssl","description":"CFSSL: CloudFlare's PKI toolkit","fork":false,"url":"https://api.github.com/repos/cloudflare/cfssl","forks_url":"https://api.github.com/repos/cloudflare/cfssl/forks","keys_url":"https://api.github.com/repos/cloudflare/cfssl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudflare/cfssl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudflare/cfssl/teams","hooks_url":"https://api.github.com/repos/cloudflare/cfssl/hooks","issue_events_url":"https://api.github.com/repos/cloudflare/cfssl/issues/events{/number}","events_url":"https://api.github.com/repos/cloudflare/cfssl/events","assignees_url":"https://api.github.com/repos/cloudflare/cfssl/assignees{/user}","branches_url":"https://api.github.com/repos/cloudflare/cfssl/branches{/branch}","tags_url":"https://api.github.com/repos/cloudflare/cfssl/tags","blobs_url":"https://api.github.com/repos/cloudflare/cfssl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudflare/cfssl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudflare/cfssl/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudflare/cfssl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudflare/cfssl/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudflare/cfssl/languages","stargazers_url":"https://api.github.com/repos/cloudflare/cfssl/stargazers","contributors_url":"https://api.github.com/repos/cloudflare/cfssl/contributors","subscribers_url":"https://api.github.com/repos/cloudflare/cfssl/subscribers","subscription_url":"https://api.github.com/repos/cloudflare/cfssl/subscription","commits_url":"https://api.github.com/repos/cloudflare/cfssl/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudflare/cfssl/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudflare/cfssl/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudflare/cfssl/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudflare/cfssl/contents/{+path}","compare_url":"https://api.github.com/repos/cloudflare/cfssl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudflare/cfssl/merges","archive_url":"https://api.github.com/repos/cloudflare/cfssl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudflare/cfssl/downloads","issues_url":"https://api.github.com/repos/cloudflare/cfssl/issues{/number}","pulls_url":"https://api.github.com/repos/cloudflare/cfssl/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudflare/cfssl/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudflare/cfssl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudflare/cfssl/labels{/name}","releases_url":"https://api.github.com/repos/cloudflare/cfssl/releases{/id}","created_at":"2014-07-07T23:49:12Z","updated_at":"2015-10-28T14:56:56Z","pushed_at":"2015-10-28T07:09:54Z","git_url":"git://github.com/cloudflare/cfssl.git","ssh_url":"git@github.com:cloudflare/cfssl.git","clone_url":"https://github.com/cloudflare/cfssl.git","svn_url":"https://github.com/cloudflare/cfssl","homepage":"https://cfssl.org/","size":5986,"stargazers_count":880,"watchers_count":880,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":98,"mirror_url":null,"open_issues_count":55,"forks":98,"open_issues":55,"watchers":880,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudflare/cfssl/pulls/377"},"html":{"href":"https://github.com/cloudflare/cfssl/pull/377"},"issue":{"href":"https://api.github.com/repos/cloudflare/cfssl/issues/377"},"comments":{"href":"https://api.github.com/repos/cloudflare/cfssl/issues/377/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudflare/cfssl/pulls/377/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudflare/cfssl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudflare/cfssl/pulls/377/commits"},"statuses":{"href":"https://api.github.com/repos/cloudflare/cfssl/statuses/60e46ecc8a5156c1d9089da69d4a3c24662454f8"}}}}