qwerty287 
								
							 
						 
						
							
							
								
							
							
	
	
	5ac857f4d4 
 
						 
						
							
							
								
								
								Add API to get commit diff/patch ( #17095 )  
							
							... 
							
							
							
							
							* Add API to get commit diff/patch
* Add Tests
Co-authored-by: 6543 <6543@obermui.de> 
							
						 
						
							2021-09-20 18:14:29 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Lunny Xiao 
								
							 
						 
						
							
							
								
							
							
	
	
	a4bfef265d 
 
						 
						
							
							
								
								
								Move db related basic functions to models/db ( #17075 )  
							
							... 
							
							
							
							
							* Move db related basic functions to models/db
* Fix lint
* Fix lint
* Fix test
* Fix lint
* Fix lint
* revert unnecessary change
* Fix test
* Fix wrong replace string
* Use *Context
* Correct committer spelling and fix wrong replaced words
Co-authored-by: zeripath <art27@cantab.net> 
							
						 
						
							2021-09-19 19:49:59 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									6543 
								
							 
						 
						
							
							
								
							
							
	
	
	cbe7f5296e 
 
						 
						
							
							
								
								
								[API] Add affected files of commits to commit struct ( #14579 )  
							
							... 
							
							
							
							
							* Add files affected by a commit to gitea API -- similar to github
* Add files affected by a commit to gitea API
* Fix stupid error
* Fix other stupid typo
* Generate swagger tmpl
* Comply with convert to git commit refacto
* update swagger docs
* extend test
* format code
* Update integrations/api_repo_git_commits_test.go
* Update modules/convert/git_commit.go
Co-authored-by: Laurent Cahour <laurent.cahour@dont-nod.com>
Co-authored-by: zeripath <art27@cantab.net> 
							
						 
						
							2021-02-07 15:43:40 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Cirno the Strongest 
								
							 
						 
						
							
							
								
							
							
	
	
	32b8172e56 
 
						 
						
							
							
								
								
								Consolidate API for getting single commit ( #11368 )  
							
							... 
							
							
							
							
							* Allow Git ref for /repos/{owner}/{repo}/git/commits/{sha}
* Consolidate API for getting single commit
* Fix tests and do it differently
Co-authored-by: zeripath <art27@cantab.net> 
							
						 
						
							2020-05-11 12:44:36 +03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									6543 
								
							 
						 
						
							
							
								
							
							
	
	
	3d63caa542 
 
						 
						
							
							
								
								
								[API] Get a single commit via Ref ( #10915 )  
							
							... 
							
							
							
							
							* GET /repos/:owner/:repo/commits/:ref
* add Validation Checks
* Fix & Extend TEST
* add two new tast cases 
							
						 
						
							2020-04-07 22:54:46 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									zeripath 
								
							 
						 
						
							
							
								
							
							
	055f6d2296  
						 
						
							
							
								
								
								Fix "data race" in testlogger ( #9159 )  
							
							... 
							
							
							
							
							* Fix data race in testlogger
* Update git_helper_for_declarative_test.go 
							
						 
						
							2019-11-26 01:21:37 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Mike Schwörer 
								
							 
						 
						
							
							
								
							
							
	042089fbaf  
						 
						
							
							
								
								
								API method to list all commits of a repository ( #6408 )  
							
							... 
							
							
							
							
							* Added API endpoint ListAllCommits (/repos/{owner}/{repo}/git/commits)
Signed-off-by: Mike Schwörer <mailport@mikescher.de>
* Fixed failing drone build
Signed-off-by: Mike Schwörer <mailport@mikescher.de>
* Implemented requested changes (PR reviews)
Signed-off-by: Mike Schwörer <mailport@mikescher.de>
* gofmt
Signed-off-by: Mike Schwörer <mailport@mikescher.de>
* Changed api route from "/repos/{owner}/{repo}/git/commits" to "/repos/{owner}/{repo}/commits"
* Removed unnecessary line
* better error message when git repo is empty
* make generate-swagger
* fixed removed return
* Update routers/api/v1/repo/commits.go
Co-Authored-By: Lauris BH <lauris@nix.lv>
* Update routers/api/v1/repo/commits.go
Co-Authored-By: Lauris BH <lauris@nix.lv>
* go fmt
* Refactored common code into ToCommit()
* made toCommit not exported
* added check for userCache == nil 
							
						 
						
							2019-08-26 16:09:10 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Lunny Xiao 
								
							 
						 
						
							
							
								
							
							
	ecefa9e724  
						 
						
							
							
								
								
								Add single commit API support ( #5843 )  
							
							... 
							
							
							
							
							* add single commit API support 
							
						 
						
							2019-02-02 22:35:17 -05:00