{"action":"created","comment":{"url":"https://api.github.com/repos/snapcore/snapd/pulls/comments/75757712","id":75757712,"diff_hunk":"@@ -0,0 +1,88 @@\n+// -*- Mode: Go; indent-tabs-mode: t -*-\n+\n+/*\n+ * Copyright (C) 2016 Canonical Ltd\n+ *\n+ * This program is free software: you can redistribute it and/or modify\n+ * it under the terms of the GNU General Public License version 3 as\n+ * published by the Free Software Foundation.\n+ *\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU General Public License\n+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n+ *\n+ */\n+\n+package main_test\n+\n+//go:generate go-bindata -pkg main_test -nocompress -o ./cmd_keys_data_test.go test-data/","path":"cmd/snap/cmd_keys_test.go","position":22,"original_position":22,"commit_id":"2646da2ad29c16fb1d7a80a874d6d3d7c455111b","original_commit_id":"2646da2ad29c16fb1d7a80a874d6d3d7c455111b","user":{"login":"niemeyer","id":378683,"avatar_url":"https://avatars.githubusercontent.com/u/378683?v=3","gravatar_id":"","url":"https://api.github.com/users/niemeyer","html_url":"https://github.com/niemeyer","followers_url":"https://api.github.com/users/niemeyer/followers","following_url":"https://api.github.com/users/niemeyer/following{/other_user}","gists_url":"https://api.github.com/users/niemeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/niemeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niemeyer/subscriptions","organizations_url":"https://api.github.com/users/niemeyer/orgs","repos_url":"https://api.github.com/users/niemeyer/repos","events_url":"https://api.github.com/users/niemeyer/events{/privacy}","received_events_url":"https://api.github.com/users/niemeyer/received_events","type":"User","site_admin":false},"body":"Why not just opening the actual file in test-data/ below?  All of the go-bindata and special handling of the magical test file can go away I believe.","created_at":"2016-08-22T20:59:56Z","updated_at":"2016-08-22T20:59:56Z","html_url":"https://github.com/snapcore/snapd/pull/1704#discussion_r75757712","pull_request_url":"https://api.github.com/repos/snapcore/snapd/pulls/1704","_links":{"self":{"href":"https://api.github.com/repos/snapcore/snapd/pulls/comments/75757712"},"html":{"href":"https://github.com/snapcore/snapd/pull/1704#discussion_r75757712"},"pull_request":{"href":"https://api.github.com/repos/snapcore/snapd/pulls/1704"}}},"pull_request":{"url":"https://api.github.com/repos/snapcore/snapd/pulls/1704","id":81969151,"html_url":"https://github.com/snapcore/snapd/pull/1704","diff_url":"https://github.com/snapcore/snapd/pull/1704.diff","patch_url":"https://github.com/snapcore/snapd/pull/1704.patch","issue_url":"https://api.github.com/repos/snapcore/snapd/issues/1704","number":1704,"state":"open","locked":false,"title":"snap: Add key management commands","user":{"login":"cjwatson","id":2429141,"avatar_url":"https://avatars.githubusercontent.com/u/2429141?v=3","gravatar_id":"","url":"https://api.github.com/users/cjwatson","html_url":"https://github.com/cjwatson","followers_url":"https://api.github.com/users/cjwatson/followers","following_url":"https://api.github.com/users/cjwatson/following{/other_user}","gists_url":"https://api.github.com/users/cjwatson/gists{/gist_id}","starred_url":"https://api.github.com/users/cjwatson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjwatson/subscriptions","organizations_url":"https://api.github.com/users/cjwatson/orgs","repos_url":"https://api.github.com/users/cjwatson/repos","events_url":"https://api.github.com/users/cjwatson/events{/privacy}","received_events_url":"https://api.github.com/users/cjwatson/received_events","type":"User","site_admin":false},"body":"This adds four new hidden commands to snap, intended mainly for use by\r\nsnapcraft as an abstraction layer over GPG that knows how to deal with\r\nSHA3-384 fingerprints: create-key, delete-key, export-key, and keys.\r\n\r\nSpecification, including rationale: https://docs.google.com/document/d/1Bkn9sLgXqkGsgV1eBWO935z5jZJiJQCL24muqw2zD7U","created_at":"2016-08-19T11:52:59Z","updated_at":"2016-08-22T20:59:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2a03d1e64ce04c459ca9d6691ae2603d6d8bbc44","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/snapcore/snapd/pulls/1704/commits","review_comments_url":"https://api.github.com/repos/snapcore/snapd/pulls/1704/comments","review_comment_url":"https://api.github.com/repos/snapcore/snapd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/snapcore/snapd/issues/1704/comments","statuses_url":"https://api.github.com/repos/snapcore/snapd/statuses/2646da2ad29c16fb1d7a80a874d6d3d7c455111b","head":{"label":"cjwatson:key-management-commands","ref":"key-management-commands","sha":"2646da2ad29c16fb1d7a80a874d6d3d7c455111b","user":{"login":"cjwatson","id":2429141,"avatar_url":"https://avatars.githubusercontent.com/u/2429141?v=3","gravatar_id":"","url":"https://api.github.com/users/cjwatson","html_url":"https://github.com/cjwatson","followers_url":"https://api.github.com/users/cjwatson/followers","following_url":"https://api.github.com/users/cjwatson/following{/other_user}","gists_url":"https://api.github.com/users/cjwatson/gists{/gist_id}","starred_url":"https://api.github.com/users/cjwatson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjwatson/subscriptions","organizations_url":"https://api.github.com/users/cjwatson/orgs","repos_url":"https://api.github.com/users/cjwatson/repos","events_url":"https://api.github.com/users/cjwatson/events{/privacy}","received_events_url":"https://api.github.com/users/cjwatson/received_events","type":"User","site_admin":false},"repo":{"id":65731738,"name":"snapd","full_name":"cjwatson/snapd","owner":{"login":"cjwatson","id":2429141,"avatar_url":"https://avatars.githubusercontent.com/u/2429141?v=3","gravatar_id":"","url":"https://api.github.com/users/cjwatson","html_url":"https://github.com/cjwatson","followers_url":"https://api.github.com/users/cjwatson/followers","following_url":"https://api.github.com/users/cjwatson/following{/other_user}","gists_url":"https://api.github.com/users/cjwatson/gists{/gist_id}","starred_url":"https://api.github.com/users/cjwatson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjwatson/subscriptions","organizations_url":"https://api.github.com/users/cjwatson/orgs","repos_url":"https://api.github.com/users/cjwatson/repos","events_url":"https://api.github.com/users/cjwatson/events{/privacy}","received_events_url":"https://api.github.com/users/cjwatson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cjwatson/snapd","description":"The snapd and snap tools enable systems to work with .snap files.","fork":true,"url":"https://api.github.com/repos/cjwatson/snapd","forks_url":"https://api.github.com/repos/cjwatson/snapd/forks","keys_url":"https://api.github.com/repos/cjwatson/snapd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cjwatson/snapd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cjwatson/snapd/teams","hooks_url":"https://api.github.com/repos/cjwatson/snapd/hooks","issue_events_url":"https://api.github.com/repos/cjwatson/snapd/issues/events{/number}","events_url":"https://api.github.com/repos/cjwatson/snapd/events","assignees_url":"https://api.github.com/repos/cjwatson/snapd/assignees{/user}","branches_url":"https://api.github.com/repos/cjwatson/snapd/branches{/branch}","tags_url":"https://api.github.com/repos/cjwatson/snapd/tags","blobs_url":"https://api.github.com/repos/cjwatson/snapd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cjwatson/snapd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cjwatson/snapd/git/refs{/sha}","trees_url":"https://api.github.com/repos/cjwatson/snapd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cjwatson/snapd/statuses/{sha}","languages_url":"https://api.github.com/repos/cjwatson/snapd/languages","stargazers_url":"https://api.github.com/repos/cjwatson/snapd/stargazers","contributors_url":"https://api.github.com/repos/cjwatson/snapd/contributors","subscribers_url":"https://api.github.com/repos/cjwatson/snapd/subscribers","subscription_url":"https://api.github.com/repos/cjwatson/snapd/subscription","commits_url":"https://api.github.com/repos/cjwatson/snapd/commits{/sha}","git_commits_url":"https://api.github.com/repos/cjwatson/snapd/git/commits{/sha}","comments_url":"https://api.github.com/repos/cjwatson/snapd/comments{/number}","issue_comment_url":"https://api.github.com/repos/cjwatson/snapd/issues/comments{/number}","contents_url":"https://api.github.com/repos/cjwatson/snapd/contents/{+path}","compare_url":"https://api.github.com/repos/cjwatson/snapd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cjwatson/snapd/merges","archive_url":"https://api.github.com/repos/cjwatson/snapd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cjwatson/snapd/downloads","issues_url":"https://api.github.com/repos/cjwatson/snapd/issues{/number}","pulls_url":"https://api.github.com/repos/cjwatson/snapd/pulls{/number}","milestones_url":"https://api.github.com/repos/cjwatson/snapd/milestones{/number}","notifications_url":"https://api.github.com/repos/cjwatson/snapd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cjwatson/snapd/labels{/name}","releases_url":"https://api.github.com/repos/cjwatson/snapd/releases{/id}","deployments_url":"https://api.github.com/repos/cjwatson/snapd/deployments","created_at":"2016-08-15T12:47:03Z","updated_at":"2016-08-15T12:47:05Z","pushed_at":"2016-08-19T12:26:18Z","git_url":"git://github.com/cjwatson/snapd.git","ssh_url":"git@github.com:cjwatson/snapd.git","clone_url":"https://github.com/cjwatson/snapd.git","svn_url":"https://github.com/cjwatson/snapd","homepage":"","size":33867,"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":"snapcore:master","ref":"master","sha":"6d0a081b8a5dd3c4b97baf68ff9e862a08044efe","user":{"login":"snapcore","id":19532717,"avatar_url":"https://avatars.githubusercontent.com/u/19532717?v=3","gravatar_id":"","url":"https://api.github.com/users/snapcore","html_url":"https://github.com/snapcore","followers_url":"https://api.github.com/users/snapcore/followers","following_url":"https://api.github.com/users/snapcore/following{/other_user}","gists_url":"https://api.github.com/users/snapcore/gists{/gist_id}","starred_url":"https://api.github.com/users/snapcore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snapcore/subscriptions","organizations_url":"https://api.github.com/users/snapcore/orgs","repos_url":"https://api.github.com/users/snapcore/repos","events_url":"https://api.github.com/users/snapcore/events{/privacy}","received_events_url":"https://api.github.com/users/snapcore/received_events","type":"Organization","site_admin":false},"repo":{"id":44672744,"name":"snapd","full_name":"snapcore/snapd","owner":{"login":"snapcore","id":19532717,"avatar_url":"https://avatars.githubusercontent.com/u/19532717?v=3","gravatar_id":"","url":"https://api.github.com/users/snapcore","html_url":"https://github.com/snapcore","followers_url":"https://api.github.com/users/snapcore/followers","following_url":"https://api.github.com/users/snapcore/following{/other_user}","gists_url":"https://api.github.com/users/snapcore/gists{/gist_id}","starred_url":"https://api.github.com/users/snapcore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snapcore/subscriptions","organizations_url":"https://api.github.com/users/snapcore/orgs","repos_url":"https://api.github.com/users/snapcore/repos","events_url":"https://api.github.com/users/snapcore/events{/privacy}","received_events_url":"https://api.github.com/users/snapcore/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/snapcore/snapd","description":"The snapd and snap tools enable systems to work with .snap files.","fork":false,"url":"https://api.github.com/repos/snapcore/snapd","forks_url":"https://api.github.com/repos/snapcore/snapd/forks","keys_url":"https://api.github.com/repos/snapcore/snapd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/snapcore/snapd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/snapcore/snapd/teams","hooks_url":"https://api.github.com/repos/snapcore/snapd/hooks","issue_events_url":"https://api.github.com/repos/snapcore/snapd/issues/events{/number}","events_url":"https://api.github.com/repos/snapcore/snapd/events","assignees_url":"https://api.github.com/repos/snapcore/snapd/assignees{/user}","branches_url":"https://api.github.com/repos/snapcore/snapd/branches{/branch}","tags_url":"https://api.github.com/repos/snapcore/snapd/tags","blobs_url":"https://api.github.com/repos/snapcore/snapd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/snapcore/snapd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/snapcore/snapd/git/refs{/sha}","trees_url":"https://api.github.com/repos/snapcore/snapd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/snapcore/snapd/statuses/{sha}","languages_url":"https://api.github.com/repos/snapcore/snapd/languages","stargazers_url":"https://api.github.com/repos/snapcore/snapd/stargazers","contributors_url":"https://api.github.com/repos/snapcore/snapd/contributors","subscribers_url":"https://api.github.com/repos/snapcore/snapd/subscribers","subscription_url":"https://api.github.com/repos/snapcore/snapd/subscription","commits_url":"https://api.github.com/repos/snapcore/snapd/commits{/sha}","git_commits_url":"https://api.github.com/repos/snapcore/snapd/git/commits{/sha}","comments_url":"https://api.github.com/repos/snapcore/snapd/comments{/number}","issue_comment_url":"https://api.github.com/repos/snapcore/snapd/issues/comments{/number}","contents_url":"https://api.github.com/repos/snapcore/snapd/contents/{+path}","compare_url":"https://api.github.com/repos/snapcore/snapd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/snapcore/snapd/merges","archive_url":"https://api.github.com/repos/snapcore/snapd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/snapcore/snapd/downloads","issues_url":"https://api.github.com/repos/snapcore/snapd/issues{/number}","pulls_url":"https://api.github.com/repos/snapcore/snapd/pulls{/number}","milestones_url":"https://api.github.com/repos/snapcore/snapd/milestones{/number}","notifications_url":"https://api.github.com/repos/snapcore/snapd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/snapcore/snapd/labels{/name}","releases_url":"https://api.github.com/repos/snapcore/snapd/releases{/id}","deployments_url":"https://api.github.com/repos/snapcore/snapd/deployments","created_at":"2015-10-21T11:51:46Z","updated_at":"2016-08-18T19:55:32Z","pushed_at":"2016-08-22T20:55:41Z","git_url":"git://github.com/snapcore/snapd.git","ssh_url":"git@github.com:snapcore/snapd.git","clone_url":"https://github.com/snapcore/snapd.git","svn_url":"https://github.com/snapcore/snapd","homepage":"","size":35887,"stargazers_count":378,"watchers_count":378,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":93,"mirror_url":null,"open_issues_count":27,"forks":93,"open_issues":27,"watchers":378,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/snapcore/snapd/pulls/1704"},"html":{"href":"https://github.com/snapcore/snapd/pull/1704"},"issue":{"href":"https://api.github.com/repos/snapcore/snapd/issues/1704"},"comments":{"href":"https://api.github.com/repos/snapcore/snapd/issues/1704/comments"},"review_comments":{"href":"https://api.github.com/repos/snapcore/snapd/pulls/1704/comments"},"review_comment":{"href":"https://api.github.com/repos/snapcore/snapd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/snapcore/snapd/pulls/1704/commits"},"statuses":{"href":"https://api.github.com/repos/snapcore/snapd/statuses/2646da2ad29c16fb1d7a80a874d6d3d7c455111b"}}}}
{"actor":{"display_login":"niemeyer"}}