You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

commit.go 509B

1234567891011121314151617181920
  1. // Copyright 2021 Gitea. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package models
  5. import (
  6. "code.gitea.io/gitea/modules/git"
  7. )
  8. // ConvertFromGitCommit converts git commits into SignCommitWithStatuses
  9. func ConvertFromGitCommit(commits []*git.Commit, repo *Repository) []*SignCommitWithStatuses {
  10. return ParseCommitsWithStatus(
  11. ParseCommitsWithSignature(
  12. ValidateCommitsWithEmails(commits),
  13. repo,
  14. ),
  15. repo,
  16. )
  17. }