{"action":"created","issue":{"url":"https://api.github.com/repos/drone/drone/issues/860","labels_url":"https://api.github.com/repos/drone/drone/issues/860/labels{/name}","comments_url":"https://api.github.com/repos/drone/drone/issues/860/comments","events_url":"https://api.github.com/repos/drone/drone/issues/860/events","html_url":"https://github.com/drone/drone/issues/860","id":55866141,"number":860,"title":"Gogs Private Repos","user":{"login":"bradrydzewski","id":817538,"avatar_url":"https://avatars.githubusercontent.com/u/817538?v=3","gravatar_id":"","url":"https://api.github.com/users/bradrydzewski","html_url":"https://github.com/bradrydzewski","followers_url":"https://api.github.com/users/bradrydzewski/followers","following_url":"https://api.github.com/users/bradrydzewski/following{/other_user}","gists_url":"https://api.github.com/users/bradrydzewski/gists{/gist_id}","starred_url":"https://api.github.com/users/bradrydzewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradrydzewski/subscriptions","organizations_url":"https://api.github.com/users/bradrydzewski/orgs","repos_url":"https://api.github.com/users/bradrydzewski/repos","events_url":"https://api.github.com/users/bradrydzewski/events{/privacy}","received_events_url":"https://api.github.com/users/bradrydzewski/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/drone/drone/labels/help%20wanted","name":"help wanted","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/drone/drone/milestones/8","html_url":"https://github.com/drone/drone/milestones/Unplanned","labels_url":"https://api.github.com/repos/drone/drone/milestones/8/labels","id":1261089,"number":8,"title":"Unplanned","description":"No plan to fix in any specific release. Note that this doesn't mean we `wontfix`, just that it isn't scheduled for an upcoming release.","creator":{"login":"bradrydzewski","id":817538,"avatar_url":"https://avatars.githubusercontent.com/u/817538?v=3","gravatar_id":"","url":"https://api.github.com/users/bradrydzewski","html_url":"https://github.com/bradrydzewski","followers_url":"https://api.github.com/users/bradrydzewski/followers","following_url":"https://api.github.com/users/bradrydzewski/following{/other_user}","gists_url":"https://api.github.com/users/bradrydzewski/gists{/gist_id}","starred_url":"https://api.github.com/users/bradrydzewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradrydzewski/subscriptions","organizations_url":"https://api.github.com/users/bradrydzewski/orgs","repos_url":"https://api.github.com/users/bradrydzewski/repos","events_url":"https://api.github.com/users/bradrydzewski/events{/privacy}","received_events_url":"https://api.github.com/users/bradrydzewski/received_events","type":"User","site_admin":false},"open_issues":70,"closed_issues":0,"state":"open","created_at":"2015-08-18T17:49:47Z","updated_at":"2015-08-27T15:47:00Z","due_on":null,"closed_at":null},"comments":12,"created_at":"2015-01-29T07:29:53Z","updated_at":"2015-09-02T16:14:10Z","closed_at":null,"body":"The current Gogs implementation works for public (open source) repositories only. We need a way to upload ssh keys to the repository in order to clone. Ideally we would also have a way to see if the key already exists, and either update or delete and re-upload.\r\n\r\nWe'll need the Gogs team to expose this functionality.\r\n\r\nFor reference, this is the code we use for GitHub:\r\nhttps://github.com/drone/drone/blob/master/plugin/remote/github/helper.go#L233:L255\r\n\r\n@compressed thoughts?"},"comment":{"url":"https://api.github.com/repos/drone/drone/issues/comments/137148706","html_url":"https://github.com/drone/drone/issues/860#issuecomment-137148706","issue_url":"https://api.github.com/repos/drone/drone/issues/860","id":137148706,"user":{"login":"bradrydzewski","id":817538,"avatar_url":"https://avatars.githubusercontent.com/u/817538?v=3","gravatar_id":"","url":"https://api.github.com/users/bradrydzewski","html_url":"https://github.com/bradrydzewski","followers_url":"https://api.github.com/users/bradrydzewski/followers","following_url":"https://api.github.com/users/bradrydzewski/following{/other_user}","gists_url":"https://api.github.com/users/bradrydzewski/gists{/gist_id}","starred_url":"https://api.github.com/users/bradrydzewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradrydzewski/subscriptions","organizations_url":"https://api.github.com/users/bradrydzewski/orgs","repos_url":"https://api.github.com/users/bradrydzewski/repos","events_url":"https://api.github.com/users/bradrydzewski/events{/privacy}","received_events_url":"https://api.github.com/users/bradrydzewski/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T16:14:10Z","updated_at":"2015-09-02T16:14:10Z","body":"@Ant59 I agree this is important, however, I'm a bit oversubscribed at the moment. I'm looking for someone from the community to step up and implement Gogs private repository support. I've labeled the issue accordingly.\r\n\r\nTo complete this issue we need Gogs to support deploy-keys. I'm not sure if this feature is available yet, however, it is not yet available in the Gogs Go client:\r\nhttps://github.com/gogits/go-gogs-client\r\n\r\nOnce the above feature is available in the Gogs Go client, hooking everything up to Drone shouldn't be too difficult."}}