mirror of
				https://github.com/woodpecker-ci/woodpecker.git
				synced 2025-11-04 01:22:40 +00:00 
			
		
		
		
	Fix Gitea version constraint to get files changed on PR (#1805)
This commit is contained in:
		@@ -605,7 +605,7 @@ func (c *Gitea) getChangedFilesForPR(ctx context.Context, repo *model.Repo, inde
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if client.CheckServerVersionConstraint("1.18.0") != nil {
 | 
			
		||||
	if client.CheckServerVersionConstraint(">= 1.18.0") != nil {
 | 
			
		||||
		// version too low
 | 
			
		||||
		log.Debug().Msg("Gitea version does not support getting changed files for PRs")
 | 
			
		||||
		return []string{}, nil
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user