From 2d00f9f4d45d015aff61a25ffdb9eaab21984ff8 Mon Sep 17 00:00:00 2001 From: zeripath Date: Wed, 24 Oct 2018 15:58:56 +0100 Subject: [PATCH] Add deploy key changes (#125) --- gitea/repo_key.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/gitea/repo_key.go b/gitea/repo_key.go index f973799..a1ae458 100644 --- a/gitea/repo_key.go +++ b/gitea/repo_key.go @@ -13,14 +13,16 @@ import ( // DeployKey a deploy key type DeployKey struct { - ID int64 `json:"id"` - KeyID int64 `json:"key_id"` - Key string `json:"key"` - URL string `json:"url"` - Title string `json:"title"` + ID int64 `json:"id"` + KeyID int64 `json:"key_id"` + Key string `json:"key"` + URL string `json:"url"` + Title string `json:"title"` + Fingerprint string `json:"fingerprint"` // swagger:strfmt date-time - Created time.Time `json:"created_at"` - ReadOnly bool `json:"read_only"` + Created time.Time `json:"created_at"` + ReadOnly bool `json:"read_only"` + Repository *Repository `json:"repository,omitempty"` } // ListDeployKeys list all the deploy keys of one repository