mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	Add permission description for API to add repo collaborator (#31744)
Fix #31552.
This commit is contained in:
		@@ -5,6 +5,7 @@ package structs
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// AddCollaboratorOption options when adding a user as a collaborator of a repository
 | 
					// AddCollaboratorOption options when adding a user as a collaborator of a repository
 | 
				
			||||||
type AddCollaboratorOption struct {
 | 
					type AddCollaboratorOption struct {
 | 
				
			||||||
 | 
						// enum: read,write,admin
 | 
				
			||||||
	Permission *string `json:"permission"`
 | 
						Permission *string `json:"permission"`
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										5
									
								
								templates/swagger/v1_json.tmpl
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										5
									
								
								templates/swagger/v1_json.tmpl
									
									
									
										generated
									
									
									
								
							@@ -18484,6 +18484,11 @@
 | 
				
			|||||||
      "properties": {
 | 
					      "properties": {
 | 
				
			||||||
        "permission": {
 | 
					        "permission": {
 | 
				
			||||||
          "type": "string",
 | 
					          "type": "string",
 | 
				
			||||||
 | 
					          "enum": [
 | 
				
			||||||
 | 
					            "read",
 | 
				
			||||||
 | 
					            "write",
 | 
				
			||||||
 | 
					            "admin"
 | 
				
			||||||
 | 
					          ],
 | 
				
			||||||
          "x-go-name": "Permission"
 | 
					          "x-go-name": "Permission"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user