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

Commit 22847bc

Browse files
committed
Add ReadOnly field supporting writable deploy keys.
1 parent 24adbb0 commit 22847bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gitea/repo_key.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ type CreateKeyOption struct {
4646
// required: true
4747
// unique: true
4848
Key string `json:"key" binding:"Required"`
49+
// Describe if the key has only read access or read/write
50+
//
51+
// required: false
52+
ReadOnly bool `json:"read_only"`
4953
}
5054

5155
// CreateDeployKey options when create one deploy key

0 commit comments

Comments
 (0)