pat-s 
								
							 
						 
						
							
							
								
							
							
	63a80bf2b9  
						 
						
							
							
								
								
								feat: use XORM EngineGroup instead of single Engine connection ( #7212 )  
							
							... 
							
							
							
							
							Resolves  #7207 
Add new configuration to make XORM work with a main and replicas database instances. The follow configuration parameters were added:
- `HOST_PRIMARY`
- `HOST_REPLICAS`
- `LOAD_BALANCE_POLICY`. Options:
    - `"WeightRandom"` -> `xorm.WeightRandomPolicy`
    - `"WeightRoundRobin`  -> `WeightRoundRobinPolicy`
    - `"LeastCon"` -> `LeastConnPolicy`
    - `"RoundRobin"` -> `xorm.RoundRobinPolicy()`
    - default: `xorm.RandomPolicy()`
- `LOAD_BALANCE_WEIGHTS`
Co-authored-by: pat-s <patrick.schratz@gmail.com@>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7212 
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com> 
						
							2025-03-30 11:34:02 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Renovate Bot 
								
							 
						 
						
							
							
								
							
							
	fed2d81c44  
						 
						
							
							
								
								
								Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) ( #7367 )  
							
							... 
							
							
							
							
							Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org>
Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org> 
							
						 
						
							2025-03-28 22:22:21 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Gusted 
								
							 
						 
						
							
							
								
							
							
	2457f5ff22  
						 
						
							
							
								
								
								chore: branding import path ( #7337 )  
							
							... 
							
							
							
							
							- Massive replacement of changing `code.gitea.io/gitea` to `forgejo.org`.
- Resolves  forgejo/discussions#258 
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7337 
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-by: Beowulf <beowulf@beocode.eu>
Reviewed-by: Panagiotis "Ivory" Vasilopoulos <git@n0toose.net>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz> 
							
						 
						
							2025-03-27 19:40:14 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									TheFox0x7 
								
							 
						 
						
							
							
								
							
							
	4de909747b  
						 
						
							
							
								
								
								Add testifylint to lint checks ( #4535 )  
							
							... 
							
							
							
							
							go-require lint is ignored for now
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4535 
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: TheFox0x7 <thefox0x7@gmail.com>
Co-committed-by: TheFox0x7 <thefox0x7@gmail.com> 
							
						 
						
							2024-07-30 19:41:10 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Lunny Xiao 
								
							 
						 
						
							
							
								
							
							
	
	
	df1e7d0067 
 
						 
						
							
							
								
								
								Use db.Find instead of writing methods for every object ( #28084 )  
							
							... 
							
							
							
							
							For those simple objects, it's unnecessary to write the find and count
methods again and again. 
							
						 
						
							2023-11-24 03:49:41 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									KN4CK3R 
								
							 
						 
						
							
							
								
							
							
	
	
	f1173d6879 
 
						 
						
							
							
								
								
								Use more specific test methods ( #24265 )  
							
							... 
							
							
							
							
							Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-04-22 17:56:27 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	e422342eeb 
 
						 
						
							
							
								
								
								Allow adding new files to an empty repo ( #24164 )  
							
							... 
							
							
							
							
							 
							
						 
						
							2023-04-19 21:40:42 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	
	
	bb2783860b 
 
						 
						
							
							
								
								
								fix calReleaseNumCommitsBehind ( #24148 )  
							
							... 
							
							
							
							
							`repoCtx.CommitsCount` is not reliably the commit count of the default
branch (Repository.GetCommitsCount depends on what is currently
displayed).
For instance on the releases page the commit count is correct:
https://codeberg.org/Codeberg/pages-server/releases 

However it is not on the single page:
https://codeberg.org/Codeberg/pages-server/releases/tag/v4.6.2 

This PR fixes this by removing a "fast branch" which was using this
field (I think this field should be removed, since it is a bit
unpredictable - but this would mean a larger refactoring PR).
_contributed in the context of @forgejo_
---------
Co-authored-by: Giteabot <teabot@gitea.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> 
							
						 
						
							2023-04-18 21:11:17 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Nick 
								
							 
						 
						
							
							
								
							
							
	
	
	52e24167e5 
 
						 
						
							
							
								
								
								Test renderReadmeFile ( #23185 )  
							
							... 
							
							
							
							
							Add test coverage to the important features of
[`routers.web.repo.renderReadmeFile`](067b0c2664/routers/web/repo/view.go (L273) 
							
						 
						
							2023-03-09 09:24:23 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Lunny Xiao 
								
							 
						 
						
							
							
								
							
							
	
	
	a8c4f8cebc 
 
						 
						
							
							
								
								
								Fix db.Find bug ( #23115 )  
							
							... 
							
							
							
							
							Caused by #20821  
Fix  #23110  
							
						 
						
							2023-02-24 21:17:09 +08:00