mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	Add allow_rebase_update, default_delete_branch_after_merge to repository api response (#20079)
`PATCH /repos/{owner}/{repo}` API allows users to update `allow_rebase_update`, `default_delete_branch_after_merge`, but `GET /repos/{owner}/{repo}` API does not return these two options, and API users has no other ways to find the state of these two options.
This PR add `allow_rebase_update`, `default_delete_branch_after_merge` to repository query api response.
			
			
This commit is contained in:
		@@ -17713,6 +17713,10 @@
 | 
			
		||||
          "type": "boolean",
 | 
			
		||||
          "x-go-name": "AllowRebaseMerge"
 | 
			
		||||
        },
 | 
			
		||||
        "allow_rebase_update": {
 | 
			
		||||
          "type": "boolean",
 | 
			
		||||
          "x-go-name": "AllowRebaseUpdate"
 | 
			
		||||
        },
 | 
			
		||||
        "allow_squash_merge": {
 | 
			
		||||
          "type": "boolean",
 | 
			
		||||
          "x-go-name": "AllowSquash"
 | 
			
		||||
@@ -17738,6 +17742,10 @@
 | 
			
		||||
          "type": "string",
 | 
			
		||||
          "x-go-name": "DefaultBranch"
 | 
			
		||||
        },
 | 
			
		||||
        "default_delete_branch_after_merge": {
 | 
			
		||||
          "type": "boolean",
 | 
			
		||||
          "x-go-name": "DefaultDeleteBranchAfterMerge"
 | 
			
		||||
        },
 | 
			
		||||
        "default_merge_style": {
 | 
			
		||||
          "type": "string",
 | 
			
		||||
          "x-go-name": "DefaultMergeStyle"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user