Lunny Xiao 
							
						 
					 
					
						
						
							
						
						ad271444e9 
					 
					
						
						
							
							Fix a bug when uploading file via lfs ssh command ( #34408 )  
						
						... 
						
						
						
						Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2025-05-09 16:17:08 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						e1c2d05bde 
					 
					
						
						
							
							Fix markdown render behaviors ( #34122 )  
						
						... 
						
						
						
						* Fix  #27645 
* Add config options `MATH_CODE_BLOCK_DETECTION`, problematic syntaxes
are disabled by default
* Fix  #33639 
    * Add config options `RENDER_OPTIONS_*`, old behaviors are kept 
						
						
					 
					
						2025-04-05 11:56:48 +08:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						2c1ff8701a 
					 
					
						
						
							
							Refactor context flash msg and global variables ( #33375 )  
						
						... 
						
						
						
						1. add `GetSiteCookieFlashMessage` to help to parse flash message
2. clarify `handleRepoHomeFeed` logic
3. remove unnecessary global variables, use `sync.OnceValue` instead
4. add some tests for `IsUsableUsername` and `IsUsableRepoName` 
						
						
					 
					
						2025-01-25 14:36:47 +00:00 
						 
				 
			
				
					
						
							
							
								Rowan Bohde 
							
						 
					 
					
						
						
							
						
						a8e7caedfa 
					 
					
						
						
							
							add submodule diff links ( #33097 )  
						
						... 
						
						
						
						This adds links to submodules in diffs, similar to the existing link
when viewing a repo at a specific commit. It does this by expanding diff
parsing to recognize changes to submodules, and find the specific refs
that are added, deleted or changed.
Related #25888 
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2025-01-08 01:38:30 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						34dfc25b83 
					 
					
						
						
							
							Make git clone URL could use current signed-in user ( #33091 )  
						
						... 
						
						
						
						close  #33086 
* Add a special value for "SSH_USER" setting: `(DOER_USERNAME)`
* Improve parseRepositoryURL and add tests (now it doesn't have hard
dependency on some setting values)
Many changes are just adding "ctx" and "doer" argument to functions.
By the way, improve app.example.ini, remove all `%(key)s` syntax, it
only makes messy and no user really cares about it.
Document: https://gitea.com/gitea/docs/pulls/138  
					
						2025-01-07 13:17:44 +08:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						a0853e2278 
					 
					
						
						
							
							Fix unittest and repo create bug ( #33061 )  
						
						... 
						
						
						
						1. `StatDir` was not right, fix the FIXME
2. Clarify the test cases for `IsUsableRepoName`
3. Fix regression bug in `repo-new.ts`
Fix  #33060  
						
						
					 
					
						2024-12-31 18:45:05 +08:00 
						 
				 
			
				
					
						
							
							
								TheFox0x7 
							
						 
					 
					
						
						
							
						
						33e8e82c4b 
					 
					
						
						
							
							Enable tenv and testifylint rules ( #32852 )  
						
						... 
						
						
						
						Enables tenv and testifylint linters
closes: https://github.com/go-gitea/gitea/issues/32842  
						
						
					 
					
						2024-12-15 10:41:29 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						5eebe1dc5f 
					 
					
						
						
							
							Fix and refactor markdown rendering ( #32522 )  
						
						
						
						
					 
					
						2024-11-16 08:41:44 +00: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 
						 
				 
			
				
					
						
							
							
								6543 
							
						 
					 
					
						
						
							
						
						a3f05d0d98 
					 
					
						
						
							
							remove util.OptionalBool and related functions ( #29513 )  
						
						... 
						
						
						
						and migrate affected code
_last refactoring bits to replace **util.OptionalBool** with
**optional.Option[bool]**_ 
						
						
					 
					
						2024-03-02 16:42:31 +01:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						4f04ab2586 
					 
					
						
						
							
							Refactor SSH clone URL generation code ( #28421 )  
						
						... 
						
						
						
						Refactor the code and add tests, keep the old logic. 
						
						
					 
					
						2023-12-15 06:18:12 +00:00 
						 
				 
			
				
					
						
							
							
								JakobDev 
							
						 
					 
					
						
						
							
						
						ebe803e514 
					 
					
						
						
							
							Penultimate round of db.DefaultContext refactor ( #27414 )  
						
						... 
						
						
						
						Part of #27065 
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com > 
						
						
					 
					
						2023-10-11 04:24:07 +00:00 
						 
				 
			
				
					
						
							
							
								Nanguan Lin 
							
						 
					 
					
						
						
							
						
						da50be7360 
					 
					
						
						
							
							Replace 'userxx' with 'orgxx' in all test files when the user type is org  ( #27052 )  
						
						... 
						
						
						
						Currently 'userxx' and 'orgxx' are both used as username in test files
when the user type is org, which is confusing. This PR replaces all
'userxx' with 'orgxx' when the user type is org(`user.type==1`).
Some non-trivial changes
1. Rename `user3` dir to `org3` in `tests/git-repositories-meta` 
2. Change `end` in `issue reference` because 'org3' is one char shorter
than 'user3'

3. Change the search result number of `user/repo2` because
`user3/repo21` can't be searched now

4. Change the first org name getting from API because the result is
ordered by alphabet asc and now `org 17` is before `org25`


Other modifications are just find all and replace all.
Unit tests with SQLite are all passed.
---------
Co-authored-by: caicandong <1290147055@qq.com > 
						
						
					 
					
						2023-09-14 02:59:53 +00:00 
						 
				 
			
				
					
						
							
							
								Mai-Lapyst 
							
						 
					 
					
						
						
							
						
						5cd1d6c93b 
					 
					
						
						
							
							Set repository link based on the url in package.json for npm packages ( #20379 )  
						
						... 
						
						
						
						automatically set repository link for package based on the repository
url present inside package.json
closes  #20146  
						
						
					 
					
						2023-03-28 13:55:03 -04:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						0a7d3ff786 
					 
					
						
						
							
							refactor some functions to support ctx as first parameter ( #21878 )  
						
						... 
						
						
						
						Co-authored-by: KN4CK3R <admin@oldschoolhack.me >
Co-authored-by: Lauris BH <lauris@nix.lv > 
						
						
					 
					
						2022-12-03 10:48:26 +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 
							
						 
					 
					
						
						
							
						
						fd7d83ace6 
					 
					
						
						
							
							Move almost all functions' parameter db.Engine to context.Context ( #19748 )  
						
						... 
						
						
						
						* Move almost all functions' parameter db.Engine to context.Context
* remove some unnecessary wrap functions 
						
						
					 
					
						2022-05-20 22:08:52 +08:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						5723240490 
					 
					
						
						
							
							Some repository refactors ( #17950 )  
						
						... 
						
						
						
						* some repository refactors
* remove unnecessary code
* Fix test
* Remove unnecessary banner 
						
						
					 
					
						2021-12-12 23:48:20 +08:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						719bddcd76 
					 
					
						
						
							
							Move repository model into models/repo ( #17933 )  
						
						... 
						
						
						
						* Some refactors related repository model
* Move more methods out of repository
* Move repository into models/repo
* Fix test
* Fix test
* some improvements
* Remove unnecessary function 
						
						
					 
					
						2021-12-10 09:27:50 +08:00