mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 19:06:18 +01:00 
			
		
		
		
	Move keys to models/asymkey (#17917)
* Move keys to models/keys * Rename models/keys -> models/asymkey * change the missed package name * Fix package alias * Fix test * Fix docs * Fix test * Fix test * merge
This commit is contained in:
		| @@ -12,6 +12,7 @@ import ( | ||||
| 	"strings" | ||||
| 	"time" | ||||
|  | ||||
| 	asymkey_model "code.gitea.io/gitea/models/asymkey" | ||||
| 	"code.gitea.io/gitea/models/db" | ||||
| 	repo_model "code.gitea.io/gitea/models/repo" | ||||
| 	user_model "code.gitea.io/gitea/models/user" | ||||
| @@ -328,11 +329,11 @@ func NewCommitStatus(opts NewCommitStatusOptions) error { | ||||
| type SignCommitWithStatuses struct { | ||||
| 	Status   *CommitStatus | ||||
| 	Statuses []*CommitStatus | ||||
| 	*SignCommit | ||||
| 	*asymkey_model.SignCommit | ||||
| } | ||||
|  | ||||
| // ParseCommitsWithStatus checks commits latest statuses and calculates its worst status state | ||||
| func ParseCommitsWithStatus(oldCommits []*SignCommit, repo *repo_model.Repository) []*SignCommitWithStatuses { | ||||
| func ParseCommitsWithStatus(oldCommits []*asymkey_model.SignCommit, repo *repo_model.Repository) []*SignCommitWithStatuses { | ||||
| 	newCommits := make([]*SignCommitWithStatuses, 0, len(oldCommits)) | ||||
|  | ||||
| 	for _, c := range oldCommits { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user