Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Add ReadOnly field supporting writable deploy keys. #84

Merged
merged 1 commit into from
Dec 20, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions gitea/repo_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down