{"action":"created","issue":{"url":"https://api.github.com/repos/bensie/sshkey/issues/29","repository_url":"https://api.github.com/repos/bensie/sshkey","labels_url":"https://api.github.com/repos/bensie/sshkey/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/bensie/sshkey/issues/29/comments","events_url":"https://api.github.com/repos/bensie/sshkey/issues/29/events","html_url":"https://github.com/bensie/sshkey/issues/29","id":233426737,"number":29,"title":"Split ssh public key and comment","user":{"login":"grv87","id":2035596,"avatar_url":"https://avatars3.githubusercontent.com/u/2035596?v=3","gravatar_id":"","url":"https://api.github.com/users/grv87","html_url":"https://github.com/grv87","followers_url":"https://api.github.com/users/grv87/followers","following_url":"https://api.github.com/users/grv87/following{/other_user}","gists_url":"https://api.github.com/users/grv87/gists{/gist_id}","starred_url":"https://api.github.com/users/grv87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grv87/subscriptions","organizations_url":"https://api.github.com/users/grv87/orgs","repos_url":"https://api.github.com/users/grv87/repos","events_url":"https://api.github.com/users/grv87/events{/privacy}","received_events_url":"https://api.github.com/users/grv87/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-04T11:05:29Z","updated_at":"2017-06-05T15:36:16Z","closed_at":"2017-06-05T15:36:16Z","body":"Could you add this feature: split ssh public key to key itself and the comment, so they could be processed separately?"},"comment":{"url":"https://api.github.com/repos/bensie/sshkey/issues/comments/306220553","html_url":"https://github.com/bensie/sshkey/issues/29#issuecomment-306220553","issue_url":"https://api.github.com/repos/bensie/sshkey/issues/29","id":306220553,"user":{"login":"bensie","id":4595,"avatar_url":"https://avatars3.githubusercontent.com/u/4595?v=3","gravatar_id":"","url":"https://api.github.com/users/bensie","html_url":"https://github.com/bensie","followers_url":"https://api.github.com/users/bensie/followers","following_url":"https://api.github.com/users/bensie/following{/other_user}","gists_url":"https://api.github.com/users/bensie/gists{/gist_id}","starred_url":"https://api.github.com/users/bensie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bensie/subscriptions","organizations_url":"https://api.github.com/users/bensie/orgs","repos_url":"https://api.github.com/users/bensie/repos","events_url":"https://api.github.com/users/bensie/events{/privacy}","received_events_url":"https://api.github.com/users/bensie/received_events","type":"User","site_admin":false},"created_at":"2017-06-05T15:36:16Z","updated_at":"2017-06-05T15:36:16Z","body":"@grv87 I'd recommend setting the comment to `nil` before calling `ssh_public_key`, that way you can get at the SSH public key without the comment.\r\n\r\n```ruby\r\nkey = SSHKey.generate(comment: \"bensie\")\r\n# => #<SSHKey:0x007fc989a3fed0 @passphrase=nil, @comment=\"bensie\", @directives=[], @key_object=#<OpenSSL::PKey::RSA:0x007fc989a3fd40>, @type=\"rsa\">\r\nkey.comment = nil\r\n# => nil\r\nkey.ssh_public_key\r\n# => \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDMa72cykdsZ0yyqeS+Spm/0GimN2uJ0AWY46bpEmAo2TKT3bmionSLVE1kqbTrLfeTrXsbrjnhOgFS3A3BshI4/9i4JeQ5OyqJiotG+S5qQhQsSSC8olwIes2/34cV70aPQa7PNdlfAv1H/7pUVrNu4lJU7BI1NevWpmWG7PG9cu9ifRcdCy7O3CMHiB1HnqCZ6SgSLyedopdCpR8x3fhYWxM6ca+LrUANePMbfC7yPUO4G5mSMGUXmFYCDyIlYQXR3KCzBxHN8y4H1WXMxlSdHFw/qjQtX1rqvtk0yOer/H32xInq/LkO7YtrQhqplPIainHxbnSjcJG8KNmb4brV\""}}
{"actor":{"display_login":"bensie"}}