mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	* Add is_writable checkbox to deploy keys interface * Add writable key option to deploy key form * Add support for writable ssh keys in the interface * Rename IsWritable to ReadOnly * Test: create read-only and read-write deploy keys via api * Add DeployKey access mode migration * Update gitea sdk via govendor * Fix deploykey migration * Add unittests for writable deploy keys * Move template text to locale * Remove implicit column update * Remove duplicate locales * Replace ReadOnly field with IsReadOnly method * Fix deploy_keys related integration test * Rename v54 migration with v55 * Fix migration hell
This commit is contained in:
		
							
								
								
									
										4
									
								
								vendor/code.gitea.io/sdk/gitea/repo_key.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/code.gitea.io/sdk/gitea/repo_key.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user