mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Move unit into models/unit/ (#17576)
* Move unit into models/unit/ * Rename unit.UnitType as unit.Type
This commit is contained in:
		| @@ -14,6 +14,7 @@ import ( | ||||
| 	"strings" | ||||
|  | ||||
| 	"code.gitea.io/gitea/models" | ||||
| 	"code.gitea.io/gitea/models/unit" | ||||
| 	"code.gitea.io/gitea/modules/git" | ||||
| 	"code.gitea.io/gitea/modules/log" | ||||
| 	"code.gitea.io/gitea/modules/util" | ||||
| @@ -142,7 +143,7 @@ func checkConflicts(pr *models.PullRequest, gitRepo *git.Repository, tmpBasePath | ||||
| 	} | ||||
|  | ||||
| 	// 4. Now get the pull request configuration to check if we need to ignore whitespace | ||||
| 	prUnit, err := pr.BaseRepo.GetUnit(models.UnitTypePullRequests) | ||||
| 	prUnit, err := pr.BaseRepo.GetUnit(unit.TypePullRequests) | ||||
| 	if err != nil { | ||||
| 		return false, err | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user