wxiaoguang 
							
						 
					 
					
						
						
							
						
						0cbaa0b662 
					 
					
						
						
							
							Remove incorrect "db.DefaultContext" usages ( #35366 )  
						
						
						
						
					 
					
						2025-08-28 03:52:43 +00:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						709535c506 
					 
					
						
						
							
							Fix some overflows in test ( #35315 )  
						
						... 
						
						
						
						Fix  #35311  
					
						2025-08-20 15:20:22 +00:00 
						 
				 
			
				
					
						
							
							
								TheFox0x7 
							
						 
					 
					
						
						
							
						
						0fde8ecd55 
					 
					
						
						
							
							Enable testifylint rules ( #34075 )  
						
						... 
						
						
						
						enable testifylint rules disabled in:
https://github.com/go-gitea/gitea/pull/34054  
						
						
					 
					
						2025-03-31 01:53:48 -04:00 
						 
				 
			
				
					
						
							
							
								KN4CK3R 
							
						 
					 
					
						
						
							
						
						c337ff0ec7 
					 
					
						
						
							
							Add user blocking ( #29028 )  
						
						... 
						
						
						
						Fixes  #17453 
This PR adds the abbility to block a user from a personal account or
organization to restrict how the blocked user can interact with the
blocker. The docs explain what's the consequence of blocking a user.
Screenshots:



---------
Co-authored-by: Lauris BH <lauris@nix.lv > 
					
						2024-03-04 08:16:03 +00:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						70c4aad8e1 
					 
					
						
						
							
							Move more functions to db.Find ( #28419 )  
						
						... 
						
						
						
						Following #28220 
This PR move more functions to use `db.Find`.
---------
Co-authored-by: delvh <dev.lh@web.de > 
						
						
					 
					
						2024-01-15 02:19:25 +00:00 
						 
				 
			
				
					
						
							
							
								JakobDev 
							
						 
					 
					
						
						
							
						
						cf0df023be 
					 
					
						
						
							
							More db.DefaultContext refactor ( #27265 )  
						
						... 
						
						
						
						Part of #27065 
This PR touches functions used in templates. As templates are not static
typed, errors are harder to find, but I hope I catch it all. I think
some tests from other persons do not hurt. 
						
						
					 
					
						2023-09-29 12:12:54 +00:00 
						 
				 
			
				
					
						
							
							
								Earl Warren 
							
						 
					 
					
						
						
							
						
						ad57be04b8 
					 
					
						
						
							
							Add unit test for repository collaboration ( #25640 )  
						
						... 
						
						
						
						Add a few extra test cases and test functions for the collaboration
model to get everything covered by tests (except for error handling, as
we cannot suddenly mock errors from the database).
Co-authored-by: Gusted <postmaster@gusted.xyz >
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/825 
Co-authored-by: Gusted <gusted@noreply.codeberg.org >
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: Giteabot <teabot@gitea.io > 
						
						
					 
					
						2023-07-03 21:41:14 +00:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						68704532c2 
					 
					
						
						
							
							Rename almost all Ctx functions ( #22071 )  
						
						
						
						
					 
					
						2022-12-10 10:46:31 +08:00 
						 
				 
			
				
					
						
							
							
								flynnnnnnnnnn 
							
						 
					 
					
						
						
							
						
						e81ccc406b 
					 
					
						
						
							
							Implement FSFE REUSE for golang files ( #21840 )  
						
						... 
						
						
						
						Change all license headers to comply with REUSE specification.
Fix  #16132 
Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github>
Co-authored-by: John Olheiser <john.olheiser@gmail.com > 
						
						
					 
					
						2022-11-27 18:20:29 +00:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						86c85c19b6 
					 
					
						
						
							
							Refactor AssertExistsAndLoadBean to use generics ( #20797 )  
						
						... 
						
						
						
						* Refactor AssertExistsAndLoadBean to use generics
* Fix tests
Co-authored-by: zeripath <art27@cantab.net > 
						
						
					 
					
						2022-08-16 10:22:25 +08:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						d91d4db344 
					 
					
						
						
							
							Move tests as seperate sub packages to reduce duplicated file names ( #19951 )  
						
						
						
						
					 
					
						2022-06-15 09:02:00 +02:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						26095115f4 
					 
					
						
						
							
							Move some repository related code into sub package ( #19711 )  
						
						... 
						
						
						
						* Move some repository related code into sub package
* Move more repository functions out of models
* Fix lint
* Some performance optimization for webhooks and others
* some refactors
* Fix lint
* Fix
* Update modules/repository/delete.go
Co-authored-by: delvh <dev.lh@web.de >
* Fix test
* Merge
* Fix test
* Fix test
* Fix test
* Fix test
Co-authored-by: delvh <dev.lh@web.de > 
						
						
					 
					
						2022-06-06 16:01:49 +08:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						cbd45471b1 
					 
					
						
						
							
							Move access and repo permission to models/perm/access ( #19350 )  
						
						... 
						
						
						
						* Move access and repo permission to models/perm/access
* Remove unnecessary code 
						
						
					 
					
						2022-05-11 12:09:36 +02:00