mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Fix branch api canPush and canMerge (#10776)
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
		| @@ -28,6 +28,8 @@ func testAPIGetBranch(t *testing.T, branchName string, exists bool) { | ||||
| 	var branch api.Branch | ||||
| 	DecodeJSON(t, resp, &branch) | ||||
| 	assert.EqualValues(t, branchName, branch.Name) | ||||
| 	assert.True(t, branch.UserCanPush) | ||||
| 	assert.True(t, branch.UserCanMerge) | ||||
| } | ||||
|  | ||||
| func testAPIGetBranchProtection(t *testing.T, branchName string, expectedHTTPStatus int) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user