From 8468db8b746699c51bb4b228ecfd498634c69088 Mon Sep 17 00:00:00 2001 From: Yannick Utard Date: Wed, 29 Jun 2016 13:58:07 +0200 Subject: [PATCH] Add ReadOnly boolean field to deploy keys Closes #391. Change-Id: Ie5bca9e80c5d1a1348f640a1a75063bac63f539a --- github/users_keys.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/github/users_keys.go b/github/users_keys.go index 6a663f5..e4c255f 100644 --- a/github/users_keys.go +++ b/github/users_keys.go @@ -9,10 +9,11 @@ import "fmt" // Key represents a public SSH key used to authenticate a user or deploy script. type Key struct { - ID *int `json:"id,omitempty"` - Key *string `json:"key,omitempty"` - URL *string `json:"url,omitempty"` - Title *string `json:"title,omitempty"` + ID *int `json:"id,omitempty"` + Key *string `json:"key,omitempty"` + URL *string `json:"url,omitempty"` + Title *string `json:"title,omitempty"` + ReadOnly *bool `json:"read_only,omitempty"` } func (k Key) String() string {