mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 02:04:11 +01:00 
			
		
		
		
	When using API CreateRelease set created_unix to the tag commit time (#11218)
This commit is contained in:
		
							parent
							
								
									d0e7361bd9
								
							
						
					
					
						commit
						4468b0b2b2
					
				@ -53,7 +53,7 @@ func createTag(gitRepo *git.Repository, rel *models.Release) error {
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		rel.Sha1 = commit.ID.String()
 | 
			
		||||
		rel.CreatedUnix = timeutil.TimeStamp(commit.Author.When.Unix())
 | 
			
		||||
		rel.CreatedUnix = timeutil.TimeStampNow()
 | 
			
		||||
		rel.NumCommits, err = commit.CommitsCount()
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			return fmt.Errorf("CommitsCount: %v", err)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user