{"action":"closed","number":710,"pull_request":{"url":"https://api.github.com/repos/go-gitea/gitea/pulls/710","id":102493878,"html_url":"https://github.com/go-gitea/gitea/pull/710","diff_url":"https://github.com/go-gitea/gitea/pull/710.diff","patch_url":"https://github.com/go-gitea/gitea/pull/710.patch","issue_url":"https://api.github.com/repos/go-gitea/gitea/issues/710","number":710,"state":"closed","locked":false,"title":"Implement GPG api","user":{"login":"sapk","id":4052400,"avatar_url":"https://avatars3.githubusercontent.com/u/4052400?v=3","gravatar_id":"","url":"https://api.github.com/users/sapk","html_url":"https://github.com/sapk","followers_url":"https://api.github.com/users/sapk/followers","following_url":"https://api.github.com/users/sapk/following{/other_user}","gists_url":"https://api.github.com/users/sapk/gists{/gist_id}","starred_url":"https://api.github.com/users/sapk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sapk/subscriptions","organizations_url":"https://api.github.com/users/sapk/orgs","repos_url":"https://api.github.com/users/sapk/repos","events_url":"https://api.github.com/users/sapk/events{/privacy}","received_events_url":"https://api.github.com/users/sapk/received_events","type":"User","site_admin":false},"body":"In order to implement go-gitea/gitea#425.\r\n\r\nI added all the api call that gitea should implement. \r\nThis is this a WIP. I will change the db format to extract all data and registrer sub-keys in db in order to not have to rely on parsing again the armored key after. For the moment the armored key is stored in db and parse at presentation.\r\n\r\nFor the last part (validation of commit ), I will do it in a separate PR.\r\n\r\nRelated to go-gitea/go-sdk#36\r\n\r\n- [x] GET /users/:username/gpg_keys\r\n- [X] GET /user/gpg_keys\r\n- [X] GET /user/gpg_keys/:id\r\n- [X] POST /user/gpg_keys\r\n- [X] DELETE /user/gpg_keys/:id\r\n\r\nBug : ~~The public_key part in the respond is not in the good format.~~","created_at":"2017-01-20T16:30:42Z","updated_at":"2017-03-08T01:35:12Z","closed_at":"2017-03-08T01:35:12Z","merged_at":null,"merge_commit_sha":"472fad2d6cf96340fe64621d941b24a08086dd52","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/go-gitea/gitea/milestones/3","html_url":"https://github.com/go-gitea/gitea/milestone/3","labels_url":"https://api.github.com/repos/go-gitea/gitea/milestones/3/labels","id":2111551,"number":3,"title":"1.2.0","description":"","creator":{"login":"tboerger","id":156964,"avatar_url":"https://avatars0.githubusercontent.com/u/156964?v=3","gravatar_id":"","url":"https://api.github.com/users/tboerger","html_url":"https://github.com/tboerger","followers_url":"https://api.github.com/users/tboerger/followers","following_url":"https://api.github.com/users/tboerger/following{/other_user}","gists_url":"https://api.github.com/users/tboerger/gists{/gist_id}","starred_url":"https://api.github.com/users/tboerger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tboerger/subscriptions","organizations_url":"https://api.github.com/users/tboerger/orgs","repos_url":"https://api.github.com/users/tboerger/repos","events_url":"https://api.github.com/users/tboerger/events{/privacy}","received_events_url":"https://api.github.com/users/tboerger/received_events","type":"User","site_admin":false},"open_issues":91,"closed_issues":1,"state":"open","created_at":"2016-11-03T08:40:15Z","updated_at":"2017-03-08T01:35:12Z","due_on":"2017-04-24T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/go-gitea/gitea/pulls/710/commits","review_comments_url":"https://api.github.com/repos/go-gitea/gitea/pulls/710/comments","review_comment_url":"https://api.github.com/repos/go-gitea/gitea/pulls/comments{/number}","comments_url":"https://api.github.com/repos/go-gitea/gitea/issues/710/comments","statuses_url":"https://api.github.com/repos/go-gitea/gitea/statuses/7ed00b6e8d571ab8efc99aa69d545cce609dd900","head":{"label":"sapk-fork:add-gpg-api","ref":"add-gpg-api","sha":"7ed00b6e8d571ab8efc99aa69d545cce609dd900","user":{"login":"sapk-fork","id":25036942,"avatar_url":"https://avatars1.githubusercontent.com/u/25036942?v=3","gravatar_id":"","url":"https://api.github.com/users/sapk-fork","html_url":"https://github.com/sapk-fork","followers_url":"https://api.github.com/users/sapk-fork/followers","following_url":"https://api.github.com/users/sapk-fork/following{/other_user}","gists_url":"https://api.github.com/users/sapk-fork/gists{/gist_id}","starred_url":"https://api.github.com/users/sapk-fork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sapk-fork/subscriptions","organizations_url":"https://api.github.com/users/sapk-fork/orgs","repos_url":"https://api.github.com/users/sapk-fork/repos","events_url":"https://api.github.com/users/sapk-fork/events{/privacy}","received_events_url":"https://api.github.com/users/sapk-fork/received_events","type":"Organization","site_admin":false},"repo":{"id":79208804,"name":"gitea","full_name":"sapk-fork/gitea","owner":{"login":"sapk-fork","id":25036942,"avatar_url":"https://avatars1.githubusercontent.com/u/25036942?v=3","gravatar_id":"","url":"https://api.github.com/users/sapk-fork","html_url":"https://github.com/sapk-fork","followers_url":"https://api.github.com/users/sapk-fork/followers","following_url":"https://api.github.com/users/sapk-fork/following{/other_user}","gists_url":"https://api.github.com/users/sapk-fork/gists{/gist_id}","starred_url":"https://api.github.com/users/sapk-fork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sapk-fork/subscriptions","organizations_url":"https://api.github.com/users/sapk-fork/orgs","repos_url":"https://api.github.com/users/sapk-fork/repos","events_url":"https://api.github.com/users/sapk-fork/events{/privacy}","received_events_url":"https://api.github.com/users/sapk-fork/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sapk-fork/gitea","description":"Gitea: Git with a cup of tea","fork":true,"url":"https://api.github.com/repos/sapk-fork/gitea","forks_url":"https://api.github.com/repos/sapk-fork/gitea/forks","keys_url":"https://api.github.com/repos/sapk-fork/gitea/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sapk-fork/gitea/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sapk-fork/gitea/teams","hooks_url":"https://api.github.com/repos/sapk-fork/gitea/hooks","issue_events_url":"https://api.github.com/repos/sapk-fork/gitea/issues/events{/number}","events_url":"https://api.github.com/repos/sapk-fork/gitea/events","assignees_url":"https://api.github.com/repos/sapk-fork/gitea/assignees{/user}","branches_url":"https://api.github.com/repos/sapk-fork/gitea/branches{/branch}","tags_url":"https://api.github.com/repos/sapk-fork/gitea/tags","blobs_url":"https://api.github.com/repos/sapk-fork/gitea/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sapk-fork/gitea/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sapk-fork/gitea/git/refs{/sha}","trees_url":"https://api.github.com/repos/sapk-fork/gitea/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sapk-fork/gitea/statuses/{sha}","languages_url":"https://api.github.com/repos/sapk-fork/gitea/languages","stargazers_url":"https://api.github.com/repos/sapk-fork/gitea/stargazers","contributors_url":"https://api.github.com/repos/sapk-fork/gitea/contributors","subscribers_url":"https://api.github.com/repos/sapk-fork/gitea/subscribers","subscription_url":"https://api.github.com/repos/sapk-fork/gitea/subscription","commits_url":"https://api.github.com/repos/sapk-fork/gitea/commits{/sha}","git_commits_url":"https://api.github.com/repos/sapk-fork/gitea/git/commits{/sha}","comments_url":"https://api.github.com/repos/sapk-fork/gitea/comments{/number}","issue_comment_url":"https://api.github.com/repos/sapk-fork/gitea/issues/comments{/number}","contents_url":"https://api.github.com/repos/sapk-fork/gitea/contents/{+path}","compare_url":"https://api.github.com/repos/sapk-fork/gitea/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sapk-fork/gitea/merges","archive_url":"https://api.github.com/repos/sapk-fork/gitea/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sapk-fork/gitea/downloads","issues_url":"https://api.github.com/repos/sapk-fork/gitea/issues{/number}","pulls_url":"https://api.github.com/repos/sapk-fork/gitea/pulls{/number}","milestones_url":"https://api.github.com/repos/sapk-fork/gitea/milestones{/number}","notifications_url":"https://api.github.com/repos/sapk-fork/gitea/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sapk-fork/gitea/labels{/name}","releases_url":"https://api.github.com/repos/sapk-fork/gitea/releases{/id}","deployments_url":"https://api.github.com/repos/sapk-fork/gitea/deployments","created_at":"2017-01-17T09:04:58Z","updated_at":"2017-01-17T09:05:00Z","pushed_at":"2017-03-08T01:35:12Z","git_url":"git://github.com/sapk-fork/gitea.git","ssh_url":"git@github.com:sapk-fork/gitea.git","clone_url":"https://github.com/sapk-fork/gitea.git","svn_url":"https://github.com/sapk-fork/gitea","homepage":"http://gitea.io","size":99500,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"go-gitea:master","ref":"master","sha":"af9998b8a7b1db3d41783a115a2d0506bcba09d3","user":{"login":"go-gitea","id":12724356,"avatar_url":"https://avatars2.githubusercontent.com/u/12724356?v=3","gravatar_id":"","url":"https://api.github.com/users/go-gitea","html_url":"https://github.com/go-gitea","followers_url":"https://api.github.com/users/go-gitea/followers","following_url":"https://api.github.com/users/go-gitea/following{/other_user}","gists_url":"https://api.github.com/users/go-gitea/gists{/gist_id}","starred_url":"https://api.github.com/users/go-gitea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-gitea/subscriptions","organizations_url":"https://api.github.com/users/go-gitea/orgs","repos_url":"https://api.github.com/users/go-gitea/repos","events_url":"https://api.github.com/users/go-gitea/events{/privacy}","received_events_url":"https://api.github.com/users/go-gitea/received_events","type":"Organization","site_admin":false},"repo":{"id":72495579,"name":"gitea","full_name":"go-gitea/gitea","owner":{"login":"go-gitea","id":12724356,"avatar_url":"https://avatars2.githubusercontent.com/u/12724356?v=3","gravatar_id":"","url":"https://api.github.com/users/go-gitea","html_url":"https://github.com/go-gitea","followers_url":"https://api.github.com/users/go-gitea/followers","following_url":"https://api.github.com/users/go-gitea/following{/other_user}","gists_url":"https://api.github.com/users/go-gitea/gists{/gist_id}","starred_url":"https://api.github.com/users/go-gitea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-gitea/subscriptions","organizations_url":"https://api.github.com/users/go-gitea/orgs","repos_url":"https://api.github.com/users/go-gitea/repos","events_url":"https://api.github.com/users/go-gitea/events{/privacy}","received_events_url":"https://api.github.com/users/go-gitea/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/go-gitea/gitea","description":"Gitea: Git with a cup of tea","fork":false,"url":"https://api.github.com/repos/go-gitea/gitea","forks_url":"https://api.github.com/repos/go-gitea/gitea/forks","keys_url":"https://api.github.com/repos/go-gitea/gitea/keys{/key_id}","collaborators_url":"https://api.github.com/repos/go-gitea/gitea/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/go-gitea/gitea/teams","hooks_url":"https://api.github.com/repos/go-gitea/gitea/hooks","issue_events_url":"https://api.github.com/repos/go-gitea/gitea/issues/events{/number}","events_url":"https://api.github.com/repos/go-gitea/gitea/events","assignees_url":"https://api.github.com/repos/go-gitea/gitea/assignees{/user}","branches_url":"https://api.github.com/repos/go-gitea/gitea/branches{/branch}","tags_url":"https://api.github.com/repos/go-gitea/gitea/tags","blobs_url":"https://api.github.com/repos/go-gitea/gitea/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/go-gitea/gitea/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/go-gitea/gitea/git/refs{/sha}","trees_url":"https://api.github.com/repos/go-gitea/gitea/git/trees{/sha}","statuses_url":"https://api.github.com/repos/go-gitea/gitea/statuses/{sha}","languages_url":"https://api.github.com/repos/go-gitea/gitea/languages","stargazers_url":"https://api.github.com/repos/go-gitea/gitea/stargazers","contributors_url":"https://api.github.com/repos/go-gitea/gitea/contributors","subscribers_url":"https://api.github.com/repos/go-gitea/gitea/subscribers","subscription_url":"https://api.github.com/repos/go-gitea/gitea/subscription","commits_url":"https://api.github.com/repos/go-gitea/gitea/commits{/sha}","git_commits_url":"https://api.github.com/repos/go-gitea/gitea/git/commits{/sha}","comments_url":"https://api.github.com/repos/go-gitea/gitea/comments{/number}","issue_comment_url":"https://api.github.com/repos/go-gitea/gitea/issues/comments{/number}","contents_url":"https://api.github.com/repos/go-gitea/gitea/contents/{+path}","compare_url":"https://api.github.com/repos/go-gitea/gitea/compare/{base}...{head}","merges_url":"https://api.github.com/repos/go-gitea/gitea/merges","archive_url":"https://api.github.com/repos/go-gitea/gitea/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/go-gitea/gitea/downloads","issues_url":"https://api.github.com/repos/go-gitea/gitea/issues{/number}","pulls_url":"https://api.github.com/repos/go-gitea/gitea/pulls{/number}","milestones_url":"https://api.github.com/repos/go-gitea/gitea/milestones{/number}","notifications_url":"https://api.github.com/repos/go-gitea/gitea/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/go-gitea/gitea/labels{/name}","releases_url":"https://api.github.com/repos/go-gitea/gitea/releases{/id}","deployments_url":"https://api.github.com/repos/go-gitea/gitea/deployments","created_at":"2016-11-01T02:13:26Z","updated_at":"2017-03-08T00:41:30Z","pushed_at":"2017-03-08T01:11:32Z","git_url":"git://github.com/go-gitea/gitea.git","ssh_url":"git@github.com:go-gitea/gitea.git","clone_url":"https://github.com/go-gitea/gitea.git","svn_url":"https://github.com/go-gitea/gitea","homepage":"http://gitea.io","size":99391,"stargazers_count":2384,"watchers_count":2384,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":208,"mirror_url":null,"open_issues_count":208,"forks":208,"open_issues":208,"watchers":2384,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/710"},"html":{"href":"https://github.com/go-gitea/gitea/pull/710"},"issue":{"href":"https://api.github.com/repos/go-gitea/gitea/issues/710"},"comments":{"href":"https://api.github.com/repos/go-gitea/gitea/issues/710/comments"},"review_comments":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/710/comments"},"review_comment":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/710/commits"},"statuses":{"href":"https://api.github.com/repos/go-gitea/gitea/statuses/7ed00b6e8d571ab8efc99aa69d545cce609dd900"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":7,"review_comments":11,"maintainer_can_modify":false,"commits":0,"additions":0,"deletions":0,"changed_files":0}}
{"actor":{"display_login":"sapk"}}