From 79eee8f12c7fc1cc5b802c5cdc5b494ef3733866 Mon Sep 17 00:00:00 2001 From: Vlad Temian Date: Wed, 20 Dec 2017 08:57:50 +0200 Subject: [PATCH] Add ReadOnly field supporting writable deploy keys. (#84) --- gitea/repo_key.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gitea/repo_key.go b/gitea/repo_key.go index 03f626c..f2f1038 100644 --- a/gitea/repo_key.go +++ b/gitea/repo_key.go @@ -46,6 +46,10 @@ type CreateKeyOption struct { // required: true // unique: true Key string `json:"key" binding:"Required"` + // Describe if the key has only read access or read/write + // + // required: false + ReadOnly bool `json:"read_only"` } // CreateDeployKey options when create one deploy key